Description: make an area that you dont lose items when you die
difficulty: 3/10
Classes modified : Client this is straight forward.
Search
Code
// If killed apply dead
Then Delete everything under it make sure you stop before the "//update correct hp in stat screen"
then paste this.
Code
// If killed apply dead
if ((absX >= xxxx && absX <= xxxx && absY >= xxxx && absY <= xxxx && 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 = yyyy;
teleportToY = yyyy;
sendMessage("whatever death message you want..");
}
else if (IsDead == true && NewHP <= 1) {
refreshSkills();
ApplyDead();
}
OK...
look at this for a moment
Code
if ((absX >= xxxx && absX <= xxxx && absY >= xxxx && absY <= xxxx
What this does, is determins the co-ords of where the fun zone is.
its done the way that wilderness levels are.
it kind of..draws a box.
heres what you do
Code
if ((absX >= southwest X && absX <= Northeast x && absY >= Southwest Y && absY <= Northeast Y
Then after you have done that, look at
Code
teleportToX = yyyy;
teleportToY = yyyy;
Change those to where you go when you die.