Description: To make sure that you do not lose things in a pk area where you do not lose things. This is something you cannot code yourself so I will giving you an easier getaway code to get this.
Client Modified: Client.Java
First look for this code
// If killed apply dead
Under That There Should Be Codes like this:
// If killed apply dead
if ((absX >= 2368 && absX <= 2431 && absY >= 3072 && absY <= 3135 && IsDead == true && NewHP <= 1)) {
NewHP = getLevelForXP(playerXP[3]);
setSkillLevel(3, getLevelForXP(playerXP[3]),
playerXP[playerHitpoints]);
playerLevel[3] = getLevelForXP(playerXP[3]);
refreshSkills();
updateRequired = true;
appearanceUpdateRequired = true;
teleportToX = 2209;
teleportToY = 4956;
sendMessage("U died at cwars, u still keep ur stuff, log in log out after ded so u can move!");
}
(If you want, you can use this code to make your Clan Wars FunPk Area)
Ok to make other areas FunPk, I will explain you this code:
// If killed apply dead
if ((absX >= xxxx1 && absX <= xxxx2 && absY >= yyyy2 && absY <= yyyy1 && IsDead == true && NewHP <= 1)) {
NewHP = getLevelForXP(playerXP[3]);
setSkillLevel(3, getLevelForXP(playerXP[3]),
playerXP[playerHitpoints]);
playerLevel[3] = getLevelForXP(playerXP[3]);
refreshSkills();
updateRequired = true;
appearanceUpdateRequired = true;
teleportToX = xxxx;
teleportToY = yyyy;
sendMessage("After they die, you insert text here.");
}
else if (IsDead == true && NewHP <= 1) {
refreshSkills();
ApplyDead();
}
(You can copy and paste this if you want)
if ((absX >= xxxx1 && absX <= xxxx2 && absY >= yyyy2 && absY <= yyyy1 && IsDead == true && NewHP <= 1)) {
xxxx1 and yyyy1 Northeast cords, xxxx2 and yyyy2 are the southeast
teleportToX = xxxx;
teleportToY = yyyy;
The place they go after they die, I suggest your home cords
sendMessage("Danny put here ur text when people die.");
Insert a message after they die here
These are the basic things you have to change for a FunPK area
Credits
Me
Hope this helped