matsamilla

Auto Provoke

Oct 23rd, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. //Clear Mobs
  2. unsetalias 'provoke1'
  3. unsetalias 'provoke2'
  4. //Get first mob
  5. if getenemy 'gray' 'criminal' 'enemy' 'nearest'
  6. @setalias 'provoke1' 'enemy'
  7. else
  8. sysmsg 'No Mobs within range to provoke'
  9. stop
  10. endif
  11. //Get Second mob - because 'nearest' is used, it will not select the same mob as above as nearest cycles through the two closest mobs
  12. if getenemy 'gray' 'criminal' 'enemy' 'nearest'
  13. @setalias 'provoke2' 'enemy'
  14. else
  15. sysmsg 'No Mobs within range to provoke'
  16. stop
  17. endif
  18. if getenemy 'murderer' 'humanoid'
  19. setalias 'asshat' 'enemy'
  20. // headmsg 'Found Murderer'
  21. endif
  22. // Target protection in case you have cure/heal casted it won't make you gray
  23. // unless you cast directly after hitting macro
  24. if not targetexists
  25. useskill 'Provocation'
  26. pause 600
  27. waitfortarget 1500
  28. target! 'provoke1'
  29. waitfortarget 1500
  30. if findalias 'asshat'
  31. target! 'asshat'
  32. pause 600
  33. // msg 'all kill'
  34. waitfortarget 1500
  35. target! 'asshat'
  36. unsetalias 'asshat'
  37. else
  38. target! 'provoke2'
  39. endif
  40. endif
Advertisement
Add Comment
Please, Sign In to add comment