Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. //
  2. //better cure/heal + refresh drinker
  3. //by baddie
  4. //1.0
  5. //
  6. @cancelautotarget
  7. @canceltarget
  8. @cleartargetqueue
  9. @clearuseonce
  10. @clearusequeue
  11. if @findlayer 'self' 2
  12. @setalias 'hot weapon' 'found'
  13. while @findlayer 'self' 2
  14. @clearusequeue
  15. @clearuseonce
  16. @moveitem! 'hot weapon' 'backpack'
  17. pause 700
  18. endwhile
  19. //
  20. if poisoned 'self'
  21. while poisoned 'self'
  22. if @findtype 0xf07 0 'backpack'
  23. @clearusequeue
  24. @clearuseonce
  25. msg '[drink GreaterCurePotion'
  26. pause 700
  27. else
  28. headmsg 'OUT!!! of Cure potions' 33
  29. break
  30. endif
  31. endwhile
  32. else
  33. if @findtype 0xf0c 0 'backpack'
  34. @clearusequeue
  35. @clearuseonce
  36. msg '[drink GreaterHealPotion'
  37. pause 700
  38. else
  39. headmsg 'OUT!!! of Heal potions' 33
  40. break
  41. endif
  42. endif
  43. //
  44. //optional refresh drinker because you might as well anyway
  45. //delete or // the lines to disable
  46. // \/ \/ \/
  47. while stam < maxstam
  48. if @findtype 0xf0b 0 'backpack'
  49. @clearusequeue
  50. @clearuseonce
  51. msg '[drink TotalRefreshPotion'
  52. pause 700
  53. else
  54. headmsg 'OUT!!! of Stamina potions' 33
  55. break
  56. endif
  57. endwhile
  58. // /\ /\ /\
  59. //
  60. while not @findlayer 'self' 2
  61. @clearusequeue
  62. @clearuseonce
  63. equipitem 'hot weapon' 2
  64. pause 700
  65. endwhile
  66. else
  67. if poisoned 'self'
  68. while poisoned 'self'
  69. if @findtype 0xf07 0 'backpack'
  70. @clearusequeue
  71. @clearuseonce
  72. msg '[drink GreaterCurePotion'
  73. pause 700
  74. else
  75. headmsg 'OUT!!! of Cure potions' 33
  76. break
  77. endif
  78. endwhile
  79. else
  80. if @findtype 0xf0c 0 'backpack'
  81. @clearusequeue
  82. @clearuseonce
  83. msg '[drink GreaterHealPotion'
  84. pause 700
  85. else
  86. headmsg 'OUT!!! of Heal potions' 33
  87. break
  88. endif
  89. endif
  90. //
  91. //optional refresh drinker because you might as well anyway
  92. //delete or // the lines to disable
  93. // \/ \/ \/
  94. while stam < maxstam
  95. if @findtype 0xf0b 0 'backpack'
  96. @clearusequeue
  97. @clearuseonce
  98. msg '[drink TotalRefreshPotion'
  99. pause 700
  100. else
  101. headmsg 'OUT!!! of Stamina potions' 33
  102. break
  103. endif
  104. endwhile
  105. // /\ /\ /\
  106. //
  107. //
  108. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement