|
It's very simple,
Go to Wilderness.java,
Then search the following :
Code:player.getPackets().sendGameMessage("Oh dear, you have died.");
Then add this below it :
And this under sendDeath(player); :Code:if (player.getHitpoints() == 0) sendDeath(player);
Code:player.setNextWorldTile(new WorldTile(Settings.RESPAWN_PLAYER_LOCATION));
And it should be fixed.
Enjoy.. - MIKE
I'm guessing this is a fix to where a player stays at 0 hp after being killed.
Wrong section. Should be under "Snippets".
He stated that it fixes a problem in the Wilderness that resolves around having 0 HP. It's pretty self explanatory and is actually a Tutorial because he tells you where to put the code.
1.
In the Wilderness.java class find where it sends:
2.Code:player.getPackets().sendGameMessage("Oh dear, you have died.");
Then, add the following method that means if the player hit points are 0 it sends the death event.
3.Code:if (player.getHitpoints() == 0) player.sendDeath(player);
The final bit is simply sending the player to the death location, if you don't have it it's not hard to add to settings.java, just coordinates.
Hating on people for trying to help others is pointless unless they are just doing it for their own benefit.Code:player.setNextWorldTile(new WorldTile(Settings.RESPAWN_PLAYER_LOCATION));
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |