Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. if not listexists 'unstuck'
  2. @createlist 'unstuck'
  3. endif
  4. if list 'unstuck' == 0
  5. pushlist 'unstuck' 'east'
  6. pushlist 'unstuck' 'west'
  7. pushlist 'unstuck' 'south'
  8. pushlist 'unstuck' 'north'
  9. endif
  10. while not @inrange 'enemy' 10
  11. @settimer 'stuck' 0
  12. @getenemy 'criminal' 'enemy' 'gray' 'murderer' 'closest'
  13. if @property 'summoned' 'enemy' or @property 'bonded' 'enemy'
  14. @unsetalias 'enemy'
  15. continue
  16. endif
  17. endwhile
  18. @settimer 'pathfind' 0
  19. while @inrange 'enemy' 10
  20. if hits 'enemy' != maxhits 'enemy' and not @inrange 'enemy' 1
  21. @unsetalias 'enemy'
  22. @getenemy 'criminal' 'enemy' 'gray' 'murderer' 'closest'
  23. endif
  24. while @findobject 'enemy' and not @inrange 'enemy' 1
  25. if @property 'summoned' 'enemy' or @property 'bonded' 'enemy'
  26. @unsetalias 'enemy'
  27. continue
  28. endif
  29. if dead
  30. break
  31. elseif @timer 'pathfind' >= 3000
  32. // Diverge
  33. if direction == 0
  34. @poplist 'unstuck' 'north'
  35. elseif direction == 2
  36. @poplist 'unstuck' 'east'
  37. elseif direction == 4
  38. @poplist 'unstuck' 'south'
  39. elseif direction == 6
  40. @poplist 'unstuck' 'west'
  41. endif
  42. // Unstuck
  43. if list 'unstuck' != 0
  44. for 5
  45. run 'unstuck[0]'
  46. pause 100
  47. endfor
  48. poplist 'unstuck' 'front'
  49. endif
  50. break
  51. elseif @x 'enemy' > x 'self' and @y 'enemy' > y 'self'
  52. run 'southeast'
  53. elseif @x 'enemy' < x 'self' and @y 'enemy' > y 'self'
  54. run 'southwest'
  55. elseif @x 'enemy' > x 'self' and @y 'enemy' < y 'self'
  56. run 'northeast'
  57. elseif @x 'enemy' < x 'self' and @y 'enemy' < y 'self'
  58. run 'northwest'
  59. elseif @x 'enemy' > x 'self' and @y 'enemy' == y 'self'
  60. run 'east'
  61. elseif @x 'enemy' < x 'self' and @y 'enemy' == y 'self'
  62. run 'west'
  63. elseif @x 'enemy' == x 'self' and @y 'enemy' > y 'self'
  64. run 'south'
  65. elseif @x 'enemy' == x 'self' and @y 'enemy' < y 'self'
  66. run 'north'
  67. endif
  68. pause 100
  69. endwhile
  70. if not @inrange 'enemy' 1
  71. @settimer 'stuck' 0
  72. @getenemy 'criminal' 'enemy' 'gray' 'murderer' 'closest'
  73. if @property 'summoned' 'enemy' or @property 'bonded' 'enemy'
  74. @unsetalias 'enemy'
  75. continue
  76. endif
  77. else
  78. @attack 'enemy'
  79. @setability 'secondary' 'on'
  80. //Spells
  81. if stam < 135 and mana 'self' >= 13
  82. cast "Divine Fury"
  83. pause 2000
  84. endif
  85. if not timerexists 'consecrateweapon'
  86. settimer 'consecrateweapon' 4000
  87. endif
  88. if timer 'consecrateweapon' >= 4000
  89. @clearjournal
  90. cast 'consecrate weapon'
  91. pause 2000
  92. waitforjournal 'disturbed' 500
  93. if not @injournal 'disturbed' 'system'
  94. @settimer 'consecrateweapon' 0
  95. endif
  96. endif
  97. if not @injournal 'next blocked blow' 'system'
  98. cast 'Counter Attack'
  99. endif
  100. if stam < 130 and mana 'self' >= 13
  101. cast "Divine Fury"
  102. pause 2000
  103. endif
  104. endif
  105. endwhile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement