Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. //v2 NO CURE
  2. @clearusequeue
  3. @cleartargetqueue
  4. //pause 50
  5. headmsg '*Auto Bandage Self*' 67
  6. if not @listexists 'boolBandage'
  7. @createlist 'boolBandage'
  8. endif
  9. createtimer 'actionCD'
  10. //changed actionCD from 600 to 650
  11. settimer 'actionCD' 650
  12. if not timerexists 'failSafe'
  13. createtimer 'failSafe'
  14. endif
  15. if not timerexists 'bandageMacro'
  16. createtimer 'bandageMacro'
  17. endif
  18. while not dead
  19. if @injournal 'the bandages' 'system'
  20. @clearlist 'boolBandage'
  21. elseif @injournal 'you heal what little' 'system' or @injournal 'you have failed to cure your target' 'system'
  22. @clearlist 'boolBandage'
  23. endif
  24. if timer 'failSafe' >= 15000
  25. @clearlist 'boolBandage'
  26. settimer 'failSafe' 0
  27. endif
  28. settimer 'bandageMacro' 12000
  29. if @findobject 'lefthand'
  30. @setalias 'currentWeapon' 'found'
  31. endif
  32. if not @inlist 'boolBandage' 'true'
  33. if targetexists
  34. canceltarget
  35. pause 25
  36. endif
  37. if hits < maxhits or poisoned
  38. @clearjournal
  39. if @findtype 0xe21 'any' 'backpack'
  40. settimer 'bandageMacro' 0
  41. useobject 'found'
  42. settimer 'actionCD' 0
  43. while not targetexists 'beneficial'
  44. if @injournal 'you must wait to perform another action' 'system'
  45. replay
  46. endif
  47. endwhile
  48. target! 'self'
  49. headmsg '***Bandaging***' 33
  50. waitforjournal 'you begin' 500
  51. //original value 300
  52. else
  53. headmsg '*Out of bandages!*' 50
  54. pause 4000
  55. endif
  56. if @injournal 'you begin' 'system'
  57. clearjournal
  58. settimer 'failSafe' 0
  59. pushlist 'boolBandage' 'true'
  60. while not @injournal 'the bandages' 'system' and not @injournal 'you have been cured of all poisons' 'system'
  61. if @injournal 'you heal what little' 'system' or @injournal 'you have failed to cure your target' 'system'
  62. break
  63. else
  64. endif
  65. endwhile
  66. //pause 50
  67. if @injournal 'you have been cured of all poisons' 'system'
  68. playsound 884
  69. //doesnt always work. possibly because of no pause + ping
  70. headmsg '*Bandage Cured!*' 56
  71. endif
  72. endwhile
  73. @clearlist 'boolBandage'
  74. endif
  75. endif
  76. endif
  77. endwhile
  78. @clearusequeue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement