Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void DragonFire(Player p, NPC n) {
- try {
- if(n.combatDelay == 0) {
- if(n.getId() == 941 || n.getId() == 55 || n.getId() == 50 || n.getId() == 53 || n.getId() == 5363 || n.getId() == 742) {
- n.turnTo(p);
- n.combatDelay =+ n.getAttackSpeed();
- n.animate(81);
- n.graphics(1);
- p.animate(p.getEquipment().getDefenceAnimation());
- if(p.getEquipment().get(5).getId() == 11284 || p.getEquipment().get(5).getId() == 11283) {
- p.hit(Misc.random(17));
- p.animate(403);
- int charge = Misc.random(5);
- if (charge == 5 && p.DFSCharges <= 50) {
- p.DFSCharges += 1;
- p.animate(6696);
- p.graphics(1165);
- }
- } else if(p.getEquipment().get(5).getId() == 1540) {
- p.hit(Misc.random(17));
- p.animate(403);
- } else {
- p.hit(Misc.random(50));
- p.animate(403);
- }
- }
- }
- } catch(Exception e) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement