Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. public static void revertOnIdle(NPC npc) {
  2. if(npc == null npc.originalType == npc.npcType npc.lastHit + 5000 >= System.currentTimeMillis())
  3. return;
  4. switch(npc.originalType) {
  5. case 493:
  6. if(npc.transformDelay == 0 && npc.lastHit + 120000 >= System.currentTimeMillis()) {
  7. //npc.startAnimation(8269);
  8. npc.transformDelay = 4;
  9. } else if(npc.transformDelay == 1) {
  10. npc.requestTransform(493);
  11. //npc.startAnimation(8266);
  12. npc.transformDelay = 0;
  13. } else {
  14. npc.transformDelay--;
  15. }
  16. break;
  17. case 496:
  18. if(npc.transformDelay == 0 && npc.lastHit + 120000 >= System.currentTimeMillis()) {
  19. //npc.startAnimation(8269);
  20. npc.transformDelay = 4;
  21. } else if(npc.transformDelay == 1) {
  22. npc.requestTransform(496);
  23. //npc.startAnimation(8266);
  24. npc.transformDelay = 0;
  25. } else {
  26. npc.transformDelay--;
  27. }
  28. break;
  29.  
  30. case 5534:
  31. if(npc.transformDelay == 0 && npc.lastHit + 120000 >= System.currentTimeMillis()) {
  32. //npc.startAnimation(8269);
  33. npc.transformDelay = 4;
  34. } else if(npc.transformDelay == 1) {
  35. npc.requestTransform(5534);
  36. setAmountOfTentacles(getAmountOfTentacles() - 1);
  37. //npc.startAnimation(8266);
  38. npc.transformDelay = 0;
  39. } else {
  40. @@ -2184,6 +2229,13 @@ public void stop() {
  41. }
  42. }, 5);
  43. }
  44. if (npcs[i].npcType == 494) { //Kraken & Tentacles Death Handling
  45. //kills disturbed tentacles
  46. kill(5535, 0);
  47. kill(5534, 0);
  48. //resets disturbed tentacles
  49. NPCHandler.setAmountOfTentacles(0);
  50. }
  51. }
  52.  
  53.  
  54. public static void transformOnAttack(NPC npc) {
  55. if(npc == null)
  56. return;
  57. switch(npc.npcType) {
  58. case 493:
  59. npc.attackTimer = 3;
  60. npc.requestTransform(492);
  61. //npc.startAnimation(8268);
  62. //npc.gfx100(1582);
  63. break;
  64. case 496:
  65. npc.attackTimer = 3;
  66. npc.requestTransform(494);
  67. //npc.startAnimation(8268);
  68. //npc.gfx100(1582);
  69. break;
  70. case 5534:
  71. npc.attackTimer = 3;
  72. setAmountOfTentacles(getAmountOfTentacles() + 1);
  73. npc.requestTransform(5535);
  74. //npc.startAnimation(8268);
  75. //npc.gfx100(1582);
  76. break;
  77. }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement