Purpose: To make a certain area allow you to keep your items when you die.
Difficulty: 3/10
Req Knowledge: Copy and Paste. Basic Java.
Server Used: Byty Isle V.2, but will work on any.
Step 1:
Open up Client.java and find...
Code:
public boolean ApplyDead() {
Underneath that, add this void.
Code:
if (actionTimer == 0 && IsDeadTimer == true && (absX >= XXXX && absX <= XXXX && absY >= XXXX && absY <= XXXX)) {
teleportToX = XXXX;
teleportToY = XXXX;
IsDeadTeleporting = true;
frame1();
updateRequired = true;
appearanceUpdateRequired = true;
NewHP = getLevelForXP(playerXP[3]);
setSkillLevel(3, getLevelForXP(playerXP[3]), playerXP[playerHitpoints]);
playerLevel[3] = getLevelForXP(playerXP[3]);
refreshSkills();
PoisonDelay = 9999999;
KillerId = playerId;
Change the XXXX to the X and Y coords of the area you want to be able to die and keep your items.
Then, change the XXXX to the X and Y coords of where you want you to spawn where you die.
Enjoy!
POST IF YOU VIEWED/USED