Advertisement
Guest User

Untitled

a guest
Feb 7th, 2020
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. unsetalias 'frombag'
  2. unsetalias 'lightningbag'
  3. unsetalias 'ghealbag'
  4. unsetalias 'drainbag'
  5. unsetalias 'restbag'
  6.  
  7. if not @findobject 'frombag'
  8. headmsg 'Select From Bag'
  9. promptalias 'frombag'
  10. endif
  11. pause 700
  12.  
  13. if not @findobject 'lightningbag'
  14. headmsg 'Select lightning Bag'
  15. promptalias 'lightningbag'
  16. endif
  17. pause 700
  18.  
  19. if not @findobject 'ghealbag'
  20. headmsg 'Select gheal Bag'
  21. promptalias 'ghealbag'
  22. endif
  23. pause 700
  24.  
  25. if not @findobject 'drainbag'
  26. headmsg 'Select drain Bag'
  27. promptalias 'drainbag'
  28. endif
  29. pause 700
  30.  
  31. if not @findobject 'restbag'
  32. headmsg 'Select rest Bag'
  33. promptalias 'restbag'
  34. endif
  35. pause 700
  36.  
  37. useobject 'frombag'
  38. useobject 'restbag'
  39. useobject 'lightningbag'
  40. useobject 'ghealbag'
  41. useobject 'drainbag'
  42. clearignorelist
  43.  
  44. if not listexists 'lightning'
  45. createlist 'lightning'
  46. @pushlist 'lightning' 'Lightning'
  47. endif
  48.  
  49. if not listexists 'gheal'
  50. createlist 'gheal'
  51. @pushlist 'gheal' 'Greater'
  52. endif
  53.  
  54. if not listexists 'drain'
  55. createlist 'drain'
  56. @pushlist 'drain' 'Drain'
  57. endif
  58.  
  59.  
  60. if not listexists 'ItemTypes'
  61. createlist 'ItemTypes'
  62. @pushlist 'ItemTypes' 0xdf2
  63. @pushlist 'ItemTypes' 0xdf3
  64. @pushlist 'ItemTypes' 0xdf4
  65. @pushlist 'ItemTypes' 0xdf5
  66. endif
  67.  
  68.  
  69. for 0 to 'ItemTypes'
  70. while @findtype 'ItemTypes[]' 'restbag' 'frombag' 'lightningbag' 'ghealbag' 'drainbag'
  71. @setalias 'currentlyid' 'found'
  72. pause 300
  73. @clearjournal
  74.  
  75. while not targetexists 'any'
  76. pause 100
  77. if findtype 0xdf2 0 'frombag' or if findtype 0xdf3 0 'frombag' or if findtype 0xdf4 0 'frombag' or if findtype 0xdf5 0 'frombag'
  78. clickobject 'found'
  79. pause 10000
  80. endif
  81. endwhile
  82.  
  83. target! 'currentlyid'
  84. pause 300
  85.  
  86. for 0 to 'lightning'
  87. if @injournal 'ItemQuality[]' 'system'
  88. moveitem 'currentlyid' 'lightning'
  89. headmsg ItemQuality[] 22
  90. @unsetalias 'currentlyid'
  91. ignoreobject 'currentlyid'
  92. endif
  93. endfor
  94.  
  95. for 0 to 'gheal'
  96. if @injournal 'ItemQuality[]' 'system'
  97. moveitem 'currentlyid' 'gheal'
  98. headmsg ItemQuality[] 22
  99. @unsetalias 'currentlyid'
  100. ignoreobject 'currentlyid'
  101. endif
  102. endfor
  103.  
  104. for 0 to 'drain'
  105. if @injournal 'ItemQuality[]' 'system'
  106. moveitem 'currentlyid' 'drain'
  107. headmsg ItemQuality[] 22
  108. @unsetalias 'currentlyid'
  109. ignoreobject 'currentlyid'
  110. endif
  111. endfor
  112.  
  113. if @findobject 'currentlyid' 'frombag' and not @injournal 'You are not certain' 'system'
  114. moveitem 'currentlyid' 'restbag'
  115. headmsg 'Item not in list'
  116. @unsetalias 'currentlyid'
  117. ignoreobject 'currentlyid'
  118. endif
  119.  
  120. if @injournal 'You are not certain' 'system'
  121. headmsg 'skill failed'
  122. endif
  123.  
  124. if weight >= maxweight
  125. headmsg 'Go and sell this crap'
  126. stop
  127. endif
  128.  
  129. @clearjournal
  130.  
  131. endwhile
  132. endfor
  133. headmsg 'completed!'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement