Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1. package com.rs.game.npc.combat.impl;
  2.  
  3. import com.rs.game.Animation;
  4. import com.rs.game.Entity;
  5. import com.rs.game.ForceTalk;
  6. import com.rs.game.Hit;
  7. import com.rs.game.Hit.HitLook;
  8. import com.rs.game.Graphics;
  9. import com.rs.game.npc.NPC;
  10. import com.rs.game.npc.combat.CombatScript;
  11. import com.rs.game.npc.combat.NPCCombatDefinitions;
  12. import com.rs.game.tasks.WorldTask;
  13. import com.rs.game.tasks.WorldTasksManager;
  14. import com.rs.game.player.Player;
  15. import com.rs.game.player.Skills;
  16. import com.rs.utils.Utils;
  17. import com.rs.game.player.Appearence;
  18. import com.rs.cores.CoresManager;
  19. import com.rs.game.World;
  20. import com.rs.game.player.content.Magic;
  21. import com.rs.game.WorldTile;
  22. import java.util.ArrayList;
  23. import java.util.List;
  24. import java.util.concurrent.TimeUnit;
  25.  
  26.  
  27. public class NewplayerMeleeCombat extends CombatScript {
  28.  
  29. int Extradelay = 0;
  30.  
  31. @Override
  32. public Object[] getKeys() {
  33. return new Object[] { 18668 };
  34. }
  35.  
  36. @Override
  37. public int attack(final NPC npc, final Entity target) {
  38. final NPCCombatDefinitions defs = npc.getCombatDefinitions();
  39.  
  40. switch (Utils.getRandom(1)) {
  41. case 0:
  42. Extradelay = 4;
  43. npc.setNextForceTalk(new ForceTalk("Get crushed by my Maul!"));
  44. npc.setNextAnimation(new Animation(2661));
  45. delayHit(npc,1,target,getMeleeHit(npc, Utils.random(10,30)));
  46. break;
  47. case 1:
  48. Extradelay = 0;
  49. switch (Utils.getRandom(19)) {
  50. case 0:
  51. npc.setNextForceTalk(new ForceTalk("Taste my DDS!"));
  52. npc.transformIntoNPC(18675);
  53. break;
  54. case 1:
  55. npc.setNextForceTalk(new ForceTalk("Get burned by dragonfire!"));
  56. npc.transformIntoNPC(18678);
  57. break;
  58. case 2:
  59. npc.setNextForceTalk(new ForceTalk("Taste the power of Armadyl!"));
  60. npc.transformIntoNPC(18670);
  61. break;
  62. case 3:
  63. npc.setNextForceTalk(new ForceTalk("Lend me your strength god of war!"));
  64. npc.transformIntoNPC(18669);
  65. break;
  66. case 4:
  67. npc.setNextForceTalk(new ForceTalk("Saradomin heal me!"));
  68. npc.transformIntoNPC(18671);
  69. break;
  70. case 5:
  71. npc.setNextForceTalk(new ForceTalk("Zamorak freeze my opponent!"));
  72. npc.transformIntoNPC(18672);
  73. break;
  74. case 6:
  75. npc.setNextForceTalk(new ForceTalk("Lightning fast speed with granite solid strength!"));
  76. npc.transformIntoNPC(18673);
  77. break;
  78. case 7:
  79. npc.setNextForceTalk(new ForceTalk("Claws of fury!"));
  80. npc.transformIntoNPC(18674);
  81. break;
  82. case 8:
  83. npc.setNextForceTalk(new ForceTalk("Saradomin smite my opponent!"));
  84. npc.transformIntoNPC(18679);
  85. break;
  86. case 9:
  87. npc.setNextForceTalk(new ForceTalk("Hehe... Prayer won't save you!"));
  88. npc.transformIntoNPC(18676);
  89. break;
  90. case 10:
  91. npc.setNextForceTalk(new ForceTalk("You stand no chance against the dark powers!"));
  92. npc.transformIntoNPC(18685);
  93. break;
  94. case 11:
  95. npc.setNextForceTalk(new ForceTalk("Get sliced in half!"));
  96. npc.transformIntoNPC(18686);
  97. break;
  98. case 12:
  99. npc.setNextForceTalk(new ForceTalk("Get crushed by my anchor!"));
  100. npc.transformIntoNPC(18687);
  101. break;
  102. case 13:
  103. npc.setNextForceTalk(new ForceTalk("You're helpness now!"));
  104. npc.transformIntoNPC(18688);
  105. break;
  106. case 14:
  107. npc.setNextForceTalk(new ForceTalk("Spike ball of DOOOOOM!"));
  108. npc.transformIntoNPC(18680);
  109. break;
  110. case 15:
  111. npc.setNextForceTalk(new ForceTalk("Taste the power of the void knights!"));
  112. npc.transformIntoNPC(18682);
  113. break;
  114. case 16:
  115. npc.setNextForceTalk(new ForceTalk("Lend me your strength Vesta to spear my opponent!"));
  116. npc.transformIntoNPC(18689);
  117. break;
  118. case 17:
  119. npc.setNextForceTalk(new ForceTalk("Lend me your strength Vesta to stab my opponent!"));
  120. npc.transformIntoNPC(18684);
  121. break;
  122. case 18:
  123. npc.setNextForceTalk(new ForceTalk("Statius crush through his defences!"));
  124. npc.transformIntoNPC(18683);
  125. break;
  126. case 19:
  127. npc.setNextForceTalk(new ForceTalk("Empowered slash!"));
  128. npc.transformIntoNPC(18681);
  129. break;
  130.  
  131. }
  132.  
  133. }
  134. return 1 + Extradelay;
  135. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement