Advertisement
sorvani

assist.mac

Feb 27th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1.  
  2. #include ninjadvloot.inc
  3.  
  4. Sub Main
  5. /call SetupAdvLootVars
  6. /declare DoLoot int local 1
  7. /declare i int local
  8.  
  9. :Mainloop
  10. /doevents
  11. | Check for a target to fight
  12. /if (!${Me.Combat}) {
  13. | if there is any NPC in our xtarget assist the tank
  14. /for i 1 to 10
  15. | ${Me.XTarget[1].Type.Equal[NPC]}
  16. /if (${Me.XTarget[${i}].Type.Equal[NPC]}) {
  17. /echo Something found on XTarget, attempting to target tank
  18. /target ID ${Group.MainTank.ID}
  19. /delay 1s
  20. /if (${Target.ID}==${Group.MainTank.ID}) {
  21. /echo Group Tank targeted, assisting
  22. /assist
  23. /delay 1s
  24. }
  25. /if (${Target.Type.Equal[NPC]} && !${Target.Type.Equal[Mercenary]}) {
  26. /killthis
  27. /casting "Festering Darkness" gem5 -maxtries|3
  28. /delay 5s
  29. /goto :MainLoop
  30. }
  31. } else {
  32. | - nothing found to assist check for loot.
  33. /if (${i} == 10 && ${DoLoot} && !${Me.Moving}) {
  34. /call LootMobs
  35. } else {
  36. /if (${Me.Standing} && !${Me.Moving}) /sit
  37. }
  38. }
  39. /delay 5
  40. /next i
  41. }
  42. /delay 1s
  43. /goto :Mainloop
  44. /return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement