Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.56 KB | None | 0 0
  1. //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  2. //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  3. //$$ Sort Yer Shit
  4. //$$ By: Amonseti
  5. //$$ V 2.5
  6. //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  7. //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  8. //
  9. //?????????????????????????????????????????????????????????????????????
  10. //??? USAGE GUIDE LINES:
  11. //??? This macro requires the character to have Item Identification
  12. //??? skill, it is recomended to be 100. not haveing guranteed id's
  13. //??? could be costly ..
  14. //???
  15. //??? Macro will sort thru all items of one container and separate
  16. //??? all weapons and armor into 2 bags. A Junk bag and a Keeper Bag.
  17. //???
  18. //??? have ready 3 bags the first bag is the source bag containing all
  19. //??? the items you want sorted. the 2nd bag is the junk bag, any
  20. //??? weapons or armor that is id'ed and not meeting the keep requirments
  21. //??? is placed into this bag to be sold or trashed what ever you want
  22. //??? to do with it.
  23. //???
  24. //??? and finally the 3rd bag is the keeper bag.. items placed into
  25. //??? this bag must meet any 1 of the following conditions:
  26. //??? A) Any weapons that are Vanquishing.
  27. //??? B) Any Weapons that are Power.
  28. //??? C) Any Weapons with a Slayer attribute.
  29. //??? D) Any armor or shield of Invulnerability.
  30. //??? E) All leather or studded armor reguardless of quality.
  31. //???
  32. //??? Run the Macro and follow the prompting instructions.
  33. //???
  34. //?????????????????????????????????????????????????????????????????????
  35. // !!*** Init Data ***!!
  36. @clearjournal
  37. unsetalias 'bagtosort'
  38. unsetalias 'stufftosell'
  39. unsetalias 'stufftokeep'
  40. // !! user Input
  41. if not @findobject 'bagtosort'
  42. headmsg 'Select From Bag' '2124'
  43. promptalias 'bagtosort'
  44. endif
  45. pause 700
  46. // !! user Input
  47. if not @findobject 'stufftosell'
  48. headmsg 'Select Junk Bag' '38'
  49. promptalias 'stufftosell'
  50. endif
  51. pause 700
  52. // !! user Input
  53. if not @findobject 'stufftokeep'
  54. headmsg 'Select Keeper Bag' '58'
  55. promptalias 'stufftokeep'
  56. endif
  57. pause 700
  58. //
  59. // !! Static Data
  60. if not listexists 'ItemTypes'
  61. createlist 'ItemTypes'
  62. endif
  63. useobject 'bagtosort'
  64. useobject 'stufftosell'
  65. useobject 'stufftokeep'
  66. clearlist 'ItemTypes'
  67. //Shields
  68. @pushlist 'ItemTypes' 0x1b72 //BronzeShields
  69. @pushlist 'ItemTypes' 0x1b73 //Buckler
  70. @pushlist 'ItemTypes' 0x1b7b //MetalShield
  71. @pushlist 'ItemTypes' 0x1b74 //Metal Kite Shield
  72. @pushlist 'ItemTypes' 0x1b79 //Tear Kite Shield
  73. @pushlist 'ItemTypes' 0x1b7a //WoodenShield
  74. @pushlist 'ItemTypes' 0x1b76 //HeaterShield
  75. //Bone Armor
  76. @pushlist 'ItemTypes' 0x1451 //Bone Helmet
  77. @pushlist 'ItemTypes' 0x144f //Bone Armor
  78. @pushlist 'ItemTypes' 0x1452 //Bone Leggings
  79. @pushlist 'ItemTypes' 0x144e //Bone Arms
  80. @pushlist 'ItemTypes' 0x1450 //Bone Gloves
  81. @pushlist 'ItemTypes' 0x1f0b //Orc Helm
  82. //Platemail
  83. @pushlist 'ItemTypes' 0x1408 //Close Helmet
  84. @pushlist 'ItemTypes' 0x1410 //Platemail Arms
  85. @pushlist 'ItemTypes' 0x1411 //Platemail Legs
  86. @pushlist 'ItemTypes' 0x1412 //Plate Helm
  87. @pushlist 'ItemTypes' 0x1413 //Plate Gorget
  88. @pushlist 'ItemTypes' 0x1414 //Platemail Gloves
  89. @pushlist 'ItemTypes' 0x1415 //Plate Chest
  90. @pushlist 'ItemTypes' 0x140a //Helmet
  91. @pushlist 'ItemTypes' 0x140c //Bascinet
  92. @pushlist 'ItemTypes' 0x140e //Norse Helm
  93. //Chainmail
  94. @pushlist 'ItemTypes' 0x13bb //Chainmail Coif
  95. @pushlist 'ItemTypes' 0x13be //Chainmail Leggins
  96. @pushlist 'ItemTypes' 0x13bf //Chainmail Tunic
  97. //Ringmail
  98. @pushlist 'ItemTypes' 0x13ee //Ringmail Sleeves
  99. @pushlist 'ItemTypes' 0x13eb //Ringmail Gloves
  100. @pushlist 'ItemTypes' 0x13ec //Ringmail Tunic
  101. @pushlist 'ItemTypes' 0x13f0 //Ringmail Leggins
  102. //Studded
  103. @pushlist 'ItemTypes' 0x13da //Studded Leggings
  104. @pushlist 'ItemTypes' 0x13db //Studded Tunic
  105. @pushlist 'ItemTypes' 0x13d5 //Studded Gloves
  106. @pushlist 'ItemTypes' 0x13d6 //Studded Gorget
  107. @pushlist 'ItemTypes' 0x13dc //Studded Sleeves
  108. //Leather
  109. @pushlist 'ItemTypes' 0x13c6 //Leather Gloves
  110. @pushlist 'ItemTypes' 0x13cd //Leather Sleeves
  111. @pushlist 'ItemTypes' 0x13cc //Leather Tunic
  112. @pushlist 'ItemTypes' 0x13cb //Leather Pants
  113. @pushlist 'ItemTypes' 0x13c7 //Leather Gorget
  114. @pushlist 'ItemTypes' 0x1db9 //Leather Cap
  115. //Female Armor
  116. @pushlist 'ItemTypes' 0x1c04 //Female Plate
  117. @pushlist 'ItemTypes' 0x1c0c //Female Studded Bustier
  118. @pushlist 'ItemTypes' 0x1c02 //Female Studded Armor
  119. @pushlist 'ItemTypes' 0x1c00 //Female Leather Shorts
  120. @pushlist 'ItemTypes' 0x1c08 //Female Leather Skirt
  121. @pushlist 'ItemTypes' 0x1c06 //Female Leather Armor
  122. @pushlist 'ItemTypes' 0x1c0a //Female Leather Bustier
  123. //Fencing
  124. @pushlist 'ItemTypes' 0xf62 //Spear
  125. @pushlist 'ItemTypes' 0x1403 //Short Spear
  126. @pushlist 'ItemTypes' 0xe87 //Pitchfork
  127. @pushlist 'ItemTypes' 0x1405 //Warfork
  128. @pushlist 'ItemTypes' 0x1401 //Kryss
  129. @pushlist 'ItemTypes' 0xf52 //Dagger
  130. //Macing
  131. @pushlist 'ItemTypes' 0x13b0 //War axe
  132. @pushlist 'ItemTypes' 0xdf0 //Black Staff
  133. @pushlist 'ItemTypes' 0x1439 //War Hammer
  134. @pushlist 'ItemTypes' 0x1407 //War Mace
  135. @pushlist 'ItemTypes' 0xe89 //Quarter Staff
  136. @pushlist 'ItemTypes' 0x143d //Hammer Pick
  137. @pushlist 'ItemTypes' 0x13b4 //Club
  138. @pushlist 'ItemTypes' 0xe81 //Shepherds Crook
  139. @pushlist 'ItemTypes' 0x13f8 //Gnarled Staff
  140. @pushlist 'ItemTypes' 0xf5c //Mace
  141. @pushlist 'ItemTypes' 0x143b //Maul
  142. //Swords
  143. @pushlist 'ItemTypes' 0x13b9 //Viking Sword
  144. @pushlist 'ItemTypes' 0xf61 //Longsword
  145. @pushlist 'ItemTypes' 0x1441 //Cutlass
  146. @pushlist 'ItemTypes' 0x13b6 //Scimitar
  147. @pushlist 'ItemTypes' 0xec4 //Skinning Knife
  148. @pushlist 'ItemTypes' 0x13f6 //Butcher Knife
  149. @pushlist 'ItemTypes' 0xf5e //Broadsword
  150. @pushlist 'ItemTypes' 0x13ff //Katana
  151. @pushlist 'ItemTypes' 0xec3 //Cleaver
  152. //Axes
  153. @pushlist 'ItemTypes' 0xf43 //Hatchet
  154. @pushlist 'ItemTypes' 0xf45 //Executioner's Axe
  155. @pushlist 'ItemTypes' 0xf4d //Bardiche
  156. @pushlist 'ItemTypes' 0xf4b //Double Axe
  157. @pushlist 'ItemTypes' 0x143e //Halberd
  158. @pushlist 'ItemTypes' 0x13fb //Large Battle Axe
  159. @pushlist 'ItemTypes' 0x1443 //Two Handed Axe
  160. @pushlist 'ItemTypes' 0xf47 //Battle Axe
  161. @pushlist 'ItemTypes' 0xf49 //Axe
  162. @pushlist 'ItemTypes' 0xe85 //Pickaxe
  163. @pushlist 'ItemTypes' 0xe86 //Pickaxe
  164. //Bows
  165. @pushlist 'ItemTypes' 0x13fd //HeavyXbow
  166. @pushlist 'ItemTypes' 0xf50 //Xbow
  167. @pushlist 'ItemTypes' 0x13b2 //bow
  168. // !!*** End of Data Init ***!!
  169. //
  170. //
  171. //
  172. // !! cycle all items listed in var ItemTypes
  173. for 0 to 'ItemTypes'
  174. // !! Process all items found of current cyucled ItemType
  175. while @findtype 'ItemTypes[]' 'any' 'bagtosort'
  176. @clearjournal
  177. moveitem found 'stufftosell'
  178. // !! Id the item using Item ID Skill
  179. useskill "Item Identification"
  180. //useobject 'righthand'
  181. waitfortarget 15000
  182. target! found
  183. pause 3000
  184. //
  185. // !!*** Item to do conditionals ***!!
  186. // !!*** If any of these conditions are true
  187. // !!*** The Item is a keeper , (Sure wish we
  188. // !!*** Could use switchs bleh )
  189. // !!*****************************************!!
  190. if @injournal 'Silver' 'system'
  191. moveitem found 'stufftokeep'
  192. headmsg 'Silver' '2213'
  193. @clearjournal
  194. elseif @injournal 'Vanquishing' 'system'
  195. moveitem found 'stufftokeep'
  196. headmsg 'Vanquishing' '2213'
  197. @clearjournal
  198. elseif @injournal 'Power' 'system'
  199. moveitem found 'stufftokeep'
  200. headmsg 'Power' '2213'
  201. @clearjournal
  202. elseif @injournal 'Exorcism' 'system'
  203. moveitem found 'stufftokeep'
  204. headmsg 'Exorcisim' '2213'
  205. @clearjournal
  206. elseif @injournal 'Air' 'system'
  207. moveitem found 'stufftokeep'
  208. headmsg 'Air' '2213'
  209. @clearjournal
  210. elseif @injournal 'Daemon' 'system'
  211. moveitem found 'stufftokeep'
  212. headmsg 'Daemon' '2213'
  213. @clearjournal
  214. elseif @injournal 'Gargoyle' 'system'
  215. moveitem found 'stufftokeep'
  216. headmsg 'Gargoyle' '2213'
  217. @clearjournal
  218. elseif @injournal 'Fey' 'system'
  219. moveitem found 'stufftokeep'
  220. headmsg 'Fey' '2213'
  221. @clearjournal
  222. elseif @injournal 'Respond' 'system'
  223. moveitem found 'stufftokeep'
  224. headmsg 'Respond' '2213'
  225. @clearjournal
  226. elseif @injournal 'Repond' 'system'
  227. moveitem found 'stufftokeep'
  228. headmsg 'Repond' '2213'
  229. @clearjournal
  230. elseif @injournal 'Vacuum' 'system'
  231. moveitem found 'stufftokeep'
  232. headmsg 'Vacuum' '2213'
  233. @clearjournal
  234. elseif @injournal 'Flame' 'system'
  235. moveitem found 'stufftokeep'
  236. headmsg 'Flame' '2213'
  237. @clearjournal
  238. elseif @injournal 'Elemental' 'system'
  239. moveitem found 'stufftokeep'
  240. headmsg 'Elemental' '2213'
  241. @clearjournal
  242. elseif @injournal 'Earth' 'system'
  243. moveitem found 'stufftokeep'
  244. headmsg 'Earth' '2213'
  245. @clearjournal
  246. elseif @injournal 'Water' 'system'
  247. moveitem found 'stufftokeep'
  248. headmsg 'Water' '2213'
  249. @clearjournal
  250. elseif @injournal 'Ogre' 'system'
  251. moveitem found 'stufftokeep'
  252. headmsg 'Ogre' '2213'
  253. @clearjournal
  254. elseif @injournal 'Orc Slaying' 'system'
  255. moveitem found 'stufftokeep'
  256. headmsg 'Orc' '2213'
  257. @clearjournal
  258. elseif @injournal 'Arachnid' 'system'
  259. moveitem found 'stufftokeep'
  260. headmsg 'Arachnid' '2213'
  261. @clearjournal
  262. elseif @injournal 'Spider' 'system'
  263. moveitem found 'stufftokeep'
  264. headmsg 'Spider' '2213'
  265. @clearjournal
  266. elseif @injournal 'Scorpion' 'system'
  267. moveitem found 'stufftokeep'
  268. headmsg 'Scorpion' '2213'
  269. @clearjournal
  270. elseif @injournal 'Terathan' 'system'
  271. moveitem found 'stufftokeep'
  272. headmsg 'Terathan' '2213'
  273. @clearjournal
  274. elseif @injournal 'Reptile' 'system'
  275. moveitem found 'stufftokeep'
  276. headmsg 'Reptile' '2213'
  277. @clearjournal
  278. elseif @injournal 'Dragon' 'system'
  279. headmsg 'Dragon' '2213'
  280. moveitem found 'stufftokeep'
  281. @clearjournal
  282. elseif @injournal 'Lizardman' 'system'
  283. moveitem found 'stufftokeep'
  284. headmsg 'Lizardman' '2213'
  285. @clearjournal
  286. elseif @injournal 'Ophidian' 'system'
  287. moveitem found 'stufftokeep'
  288. headmsg 'Ophidan' '2213'
  289. @clearjournal
  290. elseif @injournal 'Snake' 'system'
  291. moveitem found 'stufftokeep'
  292. headmsg 'Snake' '2213'
  293. @clearjournal
  294. elseif @injournal 'Undead' 'system'
  295. moveitem found 'stufftokeep'
  296. headmsg 'Undead' '2213'
  297. @clearjournal
  298. elseif @injournal 'Blood' 'system'
  299. moveitem found 'stufftokeep'
  300. headmsg 'Blood' '2213'
  301. @clearjournal
  302. elseif @injournal 'Poison' 'system'
  303. moveitem found 'stufftokeep'
  304. headmsg 'Poison' '2213'
  305. @clearjournal
  306. elseif @injournal 'Troll' 'system'
  307. moveitem found 'stufftokeep'
  308. headmsg 'Troll' '2213'
  309. @clearjournal
  310. elseif @injournal 'Fire' 'system'
  311. moveitem found 'stufftokeep'
  312. headmsg 'Fire' '2213'
  313. @clearjournal
  314. elseif @injournal 'Snow' 'system'
  315. moveitem found 'stufftokeep'
  316. headmsg 'Snow' '2213'
  317. @clearjournal
  318. elseif @injournal 'Demon' 'system'
  319. moveitem found 'stufftokeep'
  320. headmsg 'Demon' '2213'
  321. @clearjournal
  322. elseif @injournal 'Balron' 'system'
  323. moveitem found 'stufftokeep'
  324. headmsg 'Balron' '2213'
  325. @clearjournal
  326. //
  327. elseif @injournal 'Invulnerability' 'system'
  328. moveitem found 'stufftokeep'
  329. headmsg 'Invulnerability' '2213'
  330. @clearjournal
  331. //elseif @injournal 'Fortification' 'system'
  332. // moveitem found 'stufftokeep'
  333. //headmsg 'Fortification' '2213'
  334. //@clearjournal
  335. //
  336. endif
  337. @clearjournal
  338. endwhile
  339. endfor
  340. msg '[e whistle'
  341. headmsg 'All Done' '2124'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement