Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. public void DragonFire(Player p, NPC n) {
  2. try {
  3. if(n.combatDelay == 0) {
  4. if(n.getId() == 941 || n.getId() == 55 || n.getId() == 50 || n.getId() == 53 || n.getId() == 5363 || n.getId() == 742) {
  5. n.turnTo(p);
  6. n.combatDelay =+ n.getAttackSpeed();
  7. n.animate(81);
  8. n.graphics(1);
  9. p.animate(p.getEquipment().getDefenceAnimation());
  10. if(p.getEquipment().get(5).getId() == 11284 || p.getEquipment().get(5).getId() == 11283) {
  11. p.hit(Misc.random(17));
  12. p.animate(403);
  13. int charge = Misc.random(5);
  14. if (charge == 5 && p.DFSCharges <= 50) {
  15. p.DFSCharges += 1;
  16. p.animate(6696);
  17. p.graphics(1165);
  18. }
  19. } else if(p.getEquipment().get(5).getId() == 1540) {
  20. p.hit(Misc.random(17));
  21. p.animate(403);
  22. } else {
  23. p.hit(Misc.random(50));
  24. p.animate(403);
  25. }
  26. }
  27. }
  28. } catch(Exception e) {
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement