int pointsToGive = 1;
if (!o.isDonator == 1) {
o.pkPoints += pointsToGive;
} else {
o.pkPoints += pointsToGive * 2;
}
|
Ok so i was wondering if i could make it so Regular playres get 1 pkp a kill like it is now
But make donators get 2x pkp per kill
if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) {
o.pkPoints = (o.pkPoints + 1);
o.sendMessage("You recieved 1 PKP.");
o.sendMessage("You have defeated " +Misc.optimizeText(c.playerName)+ "!");
o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom;
o.getPA().addSkillXP(20000, 23);
//c.getPA().addSkillXP(-4000, 23);
if (o.earningPotential >= 85) {
o.earningPotential -= 40 + Misc.random(50);
int random = (int)(Math.random() * (xEP.length - 1));
Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY,
xEP[random][1], o.playerId);
o.sendMessage("You recieved an EP drop.");
o.sendMessage("Your EP decreased to: "+c.earningPotential+".");
}
} else {
//c.getPA().addSkillXP(-4000, 23);
o.sendMessage("You do not recieve PKP because you have killed " +c.playerName+ " twice in a row.");
if (o.earningPotential >= 85) {
o.earningPotential -= 40 + Misc.random(50);
int random = (int)(Math.random() * (xEP.length - 1));
Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY,
xEP[random][1], c.playerId);
o.sendMessage("Your EP decreased to: "+c.earningPotential+".");
}
}
}
}
int pointsToGive = 1;
if (!o.isDonator == 1) {
o.pkPoints += pointsToGive;
} else {
o.pkPoints += pointsToGive * 2;
}
Where do i add that? can u add it in soz man im zoning. can u copy that code add it in the original post and paste it soz
Please try using the code option when posting a code; makes it alot easier to most people.. And if you're having trouble finding the symbol on the editor, well.. your simply retarded - here is what the symbol looks like: #
Thank you, now please edit this.
that one doesnt even work. plus i want a message.
"You recieved 2 PKP becuase your're a donator"
And if your having trouble editing this if needed; please follow these instructions below:Code:c.sendMessage("You've received "+amount+" PKP Points"); break;
- Get a baseball bat of some kind, or something really sturdy but liable.
- Unplug all connections to your computer.
- Simple line the baseball bat or whatever your using, line it up.
- Then simple enjoy smashing.
- Then your completely finished! No more having to worry about bugs or anything; your server is 100% Coded.
Maybe because your supposed to? Or maybe because I'm used to writing Project Insanity code.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |