Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. if listexists 'Dist'
  2. if not listexists 'Targets'
  3. createlist 'Targets'
  4. else
  5. @clearlist 'Targets'
  6. endif
  7. if not listexists 'Queue'
  8. createlist 'Queue'
  9. else
  10. @clearlist 'Queue'
  11. endif
  12. if not listexists 'Players'
  13. createlist 'Players'
  14. else
  15. @clearlist 'Players'
  16. endif
  17. while @getenemy 'murderer' 'criminal' 'grey' 'humanoid' 'transformation' 'next'
  18. //'innocent'
  19. if not @inrange 'enemy' 18
  20. break
  21. endif
  22. @setalias 'current' 'enemy'
  23. if @inlist 'Players' 'current'
  24. break
  25. endif
  26. if @inparty 'current' or @infriendlist 'current'
  27. pushlist 'Players' 'current'
  28. continue
  29. endif
  30. if @name 'current' == 'Barracoon'
  31. pushlist 'Players' 'current'
  32. continue
  33. endif
  34. waitforproperties 'current' 500
  35. if property 'The Priest Of Mondain' 'current' or property 'The Wandering Healer' 'current'
  36. pushlist 'Players' 'current'
  37. continue
  38. endif
  39. //==HP==:
  40. if @diffhits 'current' > 0
  41. if list 'Queue' > 0
  42. if @diffhits 'current' > diffhits Queue[0]
  43. pushlist 'Queue' 'current' 'front'
  44. endif
  45. else
  46. pushlist 'Queue' 'current' 'front'
  47. endif
  48. endif
  49. //======
  50. if yellowhits 'current'
  51. headmsg "Yellowhits" 42 'current'
  52. endif
  53. if paralyzed 'current'
  54. headmsg "Paralyzed" 85 'current'
  55. endif
  56. pushlist 'Targets' 'current'
  57. pushlist 'Players' 'current'
  58. endwhile
  59. if list 'Queue' > 0
  60. @setalias 'enemy' Queue[0]
  61. @setalias 'last' Queue[0]
  62. headmsg "Low HP Enemy" 33 'enemy'
  63. else
  64. if list 'Targets' > 0
  65. for 0 to 'Dist'
  66. for 0 to 'Targets'
  67. if @findobject Targets[] 'any' 'ground' 0 Dist[]
  68. @setalias 'enemy' 'found'
  69. @setalias 'last' 'found'
  70. headmsg "Closest Enemy" 33 'found'
  71. stop
  72. endif
  73. endfor
  74. endfor
  75. else
  76. headmsg "No Enemy" 33 'self'
  77. endif
  78. endif
  79. else
  80. if not listexists 'Dist'
  81. createlist 'Dist'
  82. pushlist 'Dist' 0
  83. pushlist 'Dist' 1
  84. pushlist 'Dist' 2
  85. pushlist 'Dist' 3
  86. pushlist 'Dist' 4
  87. pushlist 'Dist' 5
  88. pushlist 'Dist' 6
  89. pushlist 'Dist' 7
  90. pushlist 'Dist' 8
  91. pushlist 'Dist' 9
  92. pushlist 'Dist' 10
  93. pushlist 'Dist' 11
  94. pushlist 'Dist' 12
  95. pushlist 'Dist' 13
  96. pushlist 'Dist' 14
  97. pushlist 'Dist' 15
  98. pushlist 'Dist' 16
  99. pushlist 'Dist' 17
  100. pushlist 'Dist' 18
  101. endif
  102. replay
  103. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement