Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. if (deathStage == 0 && currentHealth <= 0) {
  2. followThisPlayer = -1;
  3. deathStage = 1;
  4. }
  5. if (deathStage == 1) {
  6. WalkTo(0,0);
  7. deathStage = 2;
  8. delayDeath = System.currentTimeMillis();
  9. }
  10. if (deathStage == 2) {
  11. if (System.currentTimeMillis() - delayDeath > 1500) {
  12. updateRequired = true;
  13. appearanceUpdateRequired = true;
  14. startAnimation(2304);
  15. updateRequired = true;
  16. appearanceUpdateRequired = true;
  17. deathStage = 3;
  18. }
  19. }
  20. if (deathStage == 3) {
  21. if (System.currentTimeMillis() - delayDeath > 1000) {
  22. youdied();
  23. deathStage = 4;
  24. sendMessage("Oh dear, you've died!.");
  25. currentHealth = playerLevel[playerHitpoints];
  26. teleportToX = 3094;
  27. teleportToY = 3480;
  28. isFrozen = false;
  29. isPoisoned = false;
  30. refreshhps();
  31. specialAmount = 100;
  32. resetWalkingQueue();
  33. server.PrayerHandler.resetPrayer(playerId);
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement