Advertisement
Guest User

ID Wand Sorting Improved

a guest
Mar 19th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.73 KB | None | 0 0
  1. unsetalias 'frombag'
  2. unsetalias 'toawesomebag'
  3. if not @findobject 'frombag'
  4. headmsg 'Select From Bag'
  5. promptalias 'frombag'
  6. endif
  7. pause 700
  8. if not @findobject 'toawesomebag'
  9. headmsg 'Select Awesome Bag'
  10. promptalias 'toawesomebag'
  11. endif
  12. pause 700
  13. if not listexists 'ItemTypes'
  14. createlist 'ItemTypes'
  15. endif
  16. useobject 'frombag'
  17. useobject 'toawesomebag'
  18. clearlist 'ItemTypes'
  19. //Shields
  20. @pushlist 'ItemTypes' 0x1b72 //BronzeShields
  21. @pushlist 'ItemTypes' 0x1b73 //Buckler
  22. @pushlist 'ItemTypes' 0x1b7b //MetalShield
  23. @pushlist 'ItemTypes' 0x1b74 //Metal Kite Shield
  24. @pushlist 'ItemTypes' 0x1b79 //Tear Kite Shield
  25. @pushlist 'ItemTypes' 0x1b7a //WoodenShield
  26. @pushlist 'ItemTypes' 0x1b76 //HeaterShield
  27. //Platemail
  28. @pushlist 'ItemTypes' 0x1408 //Close Helmet
  29. @pushlist 'ItemTypes' 0x1410 //Platemail Arms
  30. @pushlist 'ItemTypes' 0x1411 //Platemail Legs
  31. @pushlist 'ItemTypes' 0x1412 //Plate Helm
  32. @pushlist 'ItemTypes' 0x1413 //Plate Gorget
  33. @pushlist 'ItemTypes' 0x1414 //Platemail Gloves
  34. @pushlist 'ItemTypes' 0x1415 //Plate Chest
  35. @pushlist 'ItemTypes' 0x140a //Helmet
  36. @pushlist 'ItemTypes' 0x140c //Bascinet
  37. @pushlist 'ItemTypes' 0x140e //Norse Helm
  38. //Chainmail
  39. @pushlist 'ItemTypes' 0x13bb //Chainmail Coif
  40. @pushlist 'ItemTypes' 0x13be //Chainmail Leggins
  41. @pushlist 'ItemTypes' 0x13bf //Chainmail Tunic
  42. //Ringmail
  43. @pushlist 'ItemTypes' 0x13ee //Ringmail Sleeves
  44. @pushlist 'ItemTypes' 0x13eb //Ringmail Gloves
  45. @pushlist 'ItemTypes' 0x13ec //Ringmail Tunic
  46. @pushlist 'ItemTypes' 0x13f0 //Ringmail Leggins
  47. //Studded
  48. @pushlist 'ItemTypes' 0x13da //Studded Leggings
  49. @pushlist 'ItemTypes' 0x13db //Studded Tunic
  50. @pushlist 'ItemTypes' 0x13d5 //Studded Gloves
  51. @pushlist 'ItemTypes' 0x13d6 //Studded Gorget
  52. @pushlist 'ItemTypes' 0x13dc //Studded Sleeves
  53. //Leather
  54. @pushlist 'ItemTypes' 0x13c6 //Leather Gloves
  55. @pushlist 'ItemTypes' 0x13cd //Leather Sleeves
  56. @pushlist 'ItemTypes' 0x13cc //Leather Tunic
  57. @pushlist 'ItemTypes' 0x13cb //Leather Pants
  58. @pushlist 'ItemTypes' 0x13c7 //Leather Gorget
  59. @pushlist 'ItemTypes' 0x1db9 //Leather Cap
  60. //Female Armor
  61. @pushlist 'ItemTypes' 0x1c04 //Female Plate
  62. @pushlist 'ItemTypes' 0x1c0c //Female Studded Bustier
  63. @pushlist 'ItemTypes' 0x1c02 //Female Studded Armor
  64. @pushlist 'ItemTypes' 0x1c00 //Female Leather Shorts
  65. @pushlist 'ItemTypes' 0x1c08 //Female Leather Skirt
  66. @pushlist 'ItemTypes' 0x1c06 //Female Leather Armor
  67. @pushlist 'ItemTypes' 0x1c0a //Female Leather Bustier
  68. //Fencing
  69. @pushlist 'ItemTypes' 0xf62 //Spear
  70. @pushlist 'ItemTypes' 0x1403 //Short Spear
  71. @pushlist 'ItemTypes' 0xe87 //Pitchfork
  72. @pushlist 'ItemTypes' 0x1405 //Warfork
  73. @pushlist 'ItemTypes' 0x1401 //Kryss
  74. @pushlist 'ItemTypes' 0xf52 //Dagger
  75. //Macing
  76. @pushlist 'ItemTypes' 0x13b0 //War axe
  77. @pushlist 'ItemTypes' 0xdf0 //Black Staff
  78. @pushlist 'ItemTypes' 0x1439 //War Hammer
  79. @pushlist 'ItemTypes' 0x1407 //War Mace
  80. @pushlist 'ItemTypes' 0xe89 //Quarter Staff
  81. @pushlist 'ItemTypes' 0x143d //Hammer Pick
  82. @pushlist 'ItemTypes' 0x13b4 //Club
  83. @pushlist 'ItemTypes' 0xe81 //Shepherds Crook
  84. @pushlist 'ItemTypes' 0x13f8 //Gnarled Staff
  85. @pushlist 'ItemTypes' 0xf5c //Mace
  86. @pushlist 'ItemTypes' 0x143b //Maul
  87. //Swords
  88. @pushlist 'ItemTypes' 0x13b9 //Viking Sword
  89. @pushlist 'ItemTypes' 0xf61 //Longsword
  90. @pushlist 'ItemTypes' 0x1441 //Cutlass
  91. @pushlist 'ItemTypes' 0x13b6 //Scimitar
  92. @pushlist 'ItemTypes' 0xec4 //Skinning Knife
  93. @pushlist 'ItemTypes' 0x13f6 //Butcher Knife
  94. @pushlist 'ItemTypes' 0xf5e //Broadsword
  95. @pushlist 'ItemTypes' 0x13ff //Katana
  96. @pushlist 'ItemTypes' 0xec3 //Cleaver
  97. //Axes
  98. @pushlist 'ItemTypes' 0xf43 //Hatchet
  99. @pushlist 'ItemTypes' 0xf45 //Executioner's Axe
  100. @pushlist 'ItemTypes' 0xf4d //Bardiche
  101. @pushlist 'ItemTypes' 0xf4b //Double Axe
  102. @pushlist 'ItemTypes' 0x143e //Halberd
  103. @pushlist 'ItemTypes' 0x13fb //Large Battle Axe
  104. @pushlist 'ItemTypes' 0x1443 //Two Handed Axe
  105. @pushlist 'ItemTypes' 0xf47 //Battle Axe
  106. @pushlist 'ItemTypes' 0xf49 //Axe
  107. @pushlist 'ItemTypes' 0xe85 //Pickaxe
  108. @pushlist 'ItemTypes' 0xe86 //Pickaxe
  109. //Bows
  110. @pushlist 'ItemTypes' 0x13fd //HeavyXbow
  111. @pushlist 'ItemTypes' 0xf50 //Xbow
  112. @pushlist 'ItemTypes' 0x13b2 //bow
  113. for 0 to 'ItemTypes'
  114. while @findtype 'ItemTypes[]' 'any' 'frombag'
  115. @clearjournal
  116. //note: I had to move items to the tobag id'ing else it id's twice
  117. moveitem found 'backpack'
  118. //note I tried to use clickobject and injournal to see if the object was [Unidentified] and it doesn't seem to work.. dunno why?
  119. useobject 'righthand'
  120. pause 1500
  121. if @injournal 'This item is out of charges.' 'system'
  122. moveitem found 'frombag'
  123. sysmsg 'I need a new wand!'
  124. headmsg 'I need a new wand!'
  125. stop
  126. elseif @injournal 'not found' 'system'
  127. sysmsg 'I need a wand!'
  128. headmsg 'I need a wand!'
  129. stop
  130. else
  131. waitfortarget 15000
  132. target! found
  133. endif
  134. pause 1500
  135. if @injournal 'Silver' 'system'
  136. if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  137. moveitem found 'toawesomebag'
  138. headmsg 'Silver'
  139. @clearjournal
  140. elseif @injournal 'Vanquishing' 'system'
  141. moveitem found 'toawesomebag'
  142. headmsg 'Vanquishing'
  143. @clearjournal
  144. elseif @injournal 'Exorcism' 'system'
  145. if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  146. moveitem found 'toawesomebag'
  147. headmsg 'Exorcism'
  148. @clearjournal
  149. elseif @injournal 'Fey' 'system'
  150. if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  151. moveitem found 'toawesomebag'
  152. headmsg 'Fey'
  153. @clearjournal
  154. elseif @injournal 'Repond' 'system'
  155. if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  156. moveitem found 'toawesomebag'
  157. headmsg 'Respond'
  158. @clearjournal
  159. elseif @injournal 'Elemental' 'system'
  160. if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  161. moveitem found 'toawesomebag'
  162. headmsg 'Elemental'
  163. @clearjournal
  164. elseif @injournal 'Arachnid' 'system'
  165. if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  166. moveitem found 'toawesomebag'
  167. headmsg 'Arachnid'
  168. @clearjournal
  169. elseif @injournal 'Terathan' 'system'
  170. if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  171. moveitem found 'toawesomebag'
  172. headmsg 'Terathan'
  173. @clearjournal
  174. elseif @injournal 'Reptilian' 'system'
  175. if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  176. moveitem found 'toawesomebag'
  177. headmsg 'Reptile'
  178. @clearjournal
  179. elseif @injournal 'Ophidian' 'system'
  180. if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  181. moveitem found 'toawesomebag'
  182. headmsg 'Ophidan'
  183. @clearjournal
  184. elseif @injournal 'Invulnerability' 'system'
  185. if @injournal 'Fortification' 'system' or @injournal 'Indestructible' 'system'
  186. moveitem found 'toawesomebag'
  187. headmsg 'Invulnerability'
  188. @clearjournal
  189. endif
  190. @clearjournal
  191. if weight >= maxweight
  192. headmsg 'Go and sell this crap'
  193. stop
  194. endif
  195. endwhile
  196. endfor
  197. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement