Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (deathStage == 0 && currentHealth <= 0) {
- followThisPlayer = -1;
- deathStage = 1;
- }
- if (deathStage == 1) {
- WalkTo(0,0);
- deathStage = 2;
- delayDeath = System.currentTimeMillis();
- }
- if (deathStage == 2) {
- if (System.currentTimeMillis() - delayDeath > 1500) {
- updateRequired = true;
- appearanceUpdateRequired = true;
- startAnimation(2304);
- updateRequired = true;
- appearanceUpdateRequired = true;
- deathStage = 3;
- }
- }
- if (deathStage == 3) {
- if (System.currentTimeMillis() - delayDeath > 1000) {
- youdied();
- deathStage = 4;
- sendMessage("Oh dear, you've died!.");
- currentHealth = playerLevel[playerHitpoints];
- teleportToX = 3094;
- teleportToY = 3480;
- isFrozen = false;
- isPoisoned = false;
- refreshhps();
- specialAmount = 100;
- resetWalkingQueue();
- server.PrayerHandler.resetPrayer(playerId);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement