Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.23 KB | None | 0 0
  1. if not @findobject 'lootbag' 'any' 'backpack'
  2. sysmsg 'Set lootbag'
  3. promptalias 'lootbag'
  4. endif
  5. if @findtype 0xe43 'any' 'ground' '1' '1'
  6. pause 1000
  7. @setalias 'tmapchest' 'found'
  8. elseif @findtype 0x719e 'any' 'ground' '1' '1'
  9. pause 1000
  10. @setalias 'tmapchest' 'found'
  11. elseif @findtype 0x71a1 'any' 'ground' '1' '1'
  12. pause 1000
  13. @setalias 'tmapchest' 'found'
  14. elseif @findtype 0x7194 'any' 'ground' '1' '1'
  15. pause 1000
  16. @setalias 'tmapchest' 'found'
  17. else
  18. sysmsg 'Not near any chests or source chest. Stopping.'
  19. stop
  20. endif
  21. useobject 'tmapchest'
  22. pause 500
  23. // Move Chain
  24. if counttype '0xa8c6' 'any' 'tmapchest' > 0
  25. sysmsg 'Moving chain...'
  26. while counttype '0xa8c6' 'any' 'tmapchest' > 0
  27. movetype 0xa8c6 'tmapchest' 'lootbag' 'any'
  28. pause 500
  29. endwhile
  30. endif
  31. // Move Skill Scrolls
  32. if counttype '0x227a' 'any' 'tmapchest' > 0
  33. sysmsg 'Moving SS...'
  34. while counttype '0x227a' 'any' 'tmapchest' > 0
  35. movetype 0x227a 'tmapchest' 'lootbag' 'any'
  36. pause 500
  37. endwhile
  38. endif
  39. // Move Cores
  40. if counttype '0xf91' 'any' 'tmapchest' > 0
  41. sysmsg 'Moving cores...'
  42. while counttype '0xf91' 'any' 'tmapchest' > 0
  43. movetype 0xf91 'tmapchest' 'lootbag' 'any'
  44. pause 500
  45. endwhile
  46. endif
  47. // Move Extracts
  48. if counttype '0xefc' 'any' 'tmapchest' > 0
  49. sysmsg 'Moving extracts...'
  50. while counttype '0xefc' 'any' 'tmapchest' > 0
  51. movetype 0xefc 'tmapchest' 'lootbag' 'any'
  52. pause 500
  53. endwhile
  54. endif
  55. // Move Gold
  56. if counttype '0xeed' 'any' 'tmapchest' > 0
  57. sysmsg 'Moving Gold...'
  58. while counttype '0xeed' 'any' 'tmapchest' > 0
  59. movetype 0xeed 'tmapchest' 'lootbag' 'any'
  60. pause 500
  61. endwhile
  62. endif
  63. // Move gems, arcanes, etc
  64. if not listexists 'MiscTypes'
  65. createlist 'MiscTypes'
  66. endif
  67. //Gems
  68. sysmsg 'Moving misc items...'
  69. @pushlist 'MiscTypes' 0xf15 // Citrine
  70. @pushlist 'MiscTypes' 0xf26 // Diamond
  71. @pushlist 'MiscTypes' 0xf25 // Amber
  72. @pushlist 'MiscTypes' 0x1b75 // Emerald
  73. @pushlist 'MiscTypes' 0xf10 // Star Sapphire
  74. @pushlist 'MiscTypes' 0xf2d // Tourmaline
  75. @pushlist 'MiscTypes' 0xf13 // Ruby
  76. @pushlist 'MiscTypes' 0xf19 // Sapphire
  77. @pushlist 'MiscTypes' 0xf16 // Amethyst
  78. // Wire
  79. @pushlist 'MiscTypes' 0x1877 // Silver Trap
  80. @pushlist 'MiscTypes' 0x1879 // Copper Trap
  81. @pushlist 'MiscTypes' 0x1878 // GoldTrap
  82. @pushlist 'MiscTypes' 0x1878 // Platinum
  83. // Regs
  84. @pushlist 'MiscTypes' 0xf88 // Nightshade
  85. @pushlist 'MiscTypes' 0xf85 // Ginseg
  86. @pushlist 'MiscTypes' 0xf7b // Blood Moss
  87. @pushlist 'MiscTypes' 0xf8c // Sulfurous Ash
  88. @pushlist 'MiscTypes' 0xf86 // Mandrake Root
  89. @pushlist 'MiscTypes' 0xf7a // Black Pearl
  90. @pushlist 'MiscTypes' 0xf84 // Garlic
  91. @pushlist 'MiscTypes' 0xf8d // Spider Silk
  92. // Misc
  93. @pushlist 'MiscTypes' 0xef3 // Arcane Scrolls
  94. @pushlist 'MiscTypes' 0xf3f // Arrows
  95. @pushlist 'MiscTypes' 0x1bfb // Bolts
  96. @pushlist 'MiscTypes' 0x5736 // Seeds
  97. @pushlist 'MiscTypes' 0xe21 // Bandaids
  98. @pushlist 'MiscTypes' 0xb0cb // Faire Card
  99. for 0 to 'MiscTypes'
  100. while @findtype 'MiscTypes[]' 'any' 'tmapchest'
  101. moveitem found 'lootbag'
  102. endwhile
  103. endfor
  104. // Move scrolls
  105. if not listexists 'scrolls'
  106. @createlist 'scrolls'
  107. endif
  108. if 'list' 'scrolls' == '0'
  109. @pushlist 'scrolls' 0x1f2d // Reactive Armor
  110. @pushlist 'scrolls' 0x1f2e // Clumsy
  111. @pushlist 'scrolls' 0x1f2f // Create Food
  112. @pushlist 'scrolls' 0x1f30 // Feeblemind
  113. @pushlist 'scrolls' 0x1f31 // Heal
  114. @pushlist 'scrolls' 0x1f32 // Magic Arrow
  115. @pushlist 'scrolls' 0x1f33 // Night Sight
  116. @pushlist 'scrolls' 0x1f34 // Weaken
  117. @pushlist 'scrolls' 0x1f35 // Agility
  118. @pushlist 'scrolls' 0x1f36 // Cunning
  119. @pushlist 'scrolls' 0x1f37 // Cure
  120. @pushlist 'scrolls' 0x1f38 // Harm
  121. @pushlist 'scrolls' 0x1f39 // Magic Trap
  122. @pushlist 'scrolls' 0x1f3a // Magic Untrap
  123. @pushlist 'scrolls' 0x1f3b // Protection
  124. @pushlist 'scrolls' 0x1f3c // Strength
  125. @pushlist 'scrolls' 0x1f3d // Bless
  126. @pushlist 'scrolls' 0x1f3e // Fireball
  127. @pushlist 'scrolls' 0x1f3f // Magic Lock
  128. @pushlist 'scrolls' 0x1f40 // Poison
  129. @pushlist 'scrolls' 0x1f41 // Telekinesis
  130. @pushlist 'scrolls' 0x1f42 // Teleport
  131. @pushlist 'scrolls' 0x1f43 // Unlock
  132. @pushlist 'scrolls' 0x1f44 // Wall of Stone
  133. @pushlist 'scrolls' 0x1f45 // Arch Cure
  134. @pushlist 'scrolls' 0x1f46 // Arch Protection
  135. @pushlist 'scrolls' 0x1f47 // Curse
  136. @pushlist 'scrolls' 0x1f48 // Fire Field
  137. @pushlist 'scrolls' 0x1f49 // Greater Heal
  138. @pushlist 'scrolls' 0x1f4a // Lightning
  139. @pushlist 'scrolls' 0x1f4b // Mana Drain
  140. @pushlist 'scrolls' 0x1f4c // Recall
  141. @pushlist 'scrolls' 0x1f4d // Blade Spirit
  142. @pushlist 'scrolls' 0x1f4e // Dispel Field
  143. @pushlist 'scrolls' 0x1f4f // Incognito
  144. @pushlist 'scrolls' 0x1f50 // Magic Reflection
  145. @pushlist 'scrolls' 0x1f51 // Mind Blast
  146. @pushlist 'scrolls' 0x1f52 // Paralyze
  147. @pushlist 'scrolls' 0x1f53 // Poison Field
  148. @pushlist 'scrolls' 0x1f54 // Summon Creature
  149. @pushlist 'scrolls' 0x1f55 // Dispel
  150. @pushlist 'scrolls' 0x1f56 // Energy Bolt
  151. @pushlist 'scrolls' 0x1f57 // Explosion
  152. @pushlist 'scrolls' 0x1f58 // Invisibility
  153. @pushlist 'scrolls' 0x1f59 // Mark
  154. @pushlist 'scrolls' 0x1f5a // Mass Curse
  155. @pushlist 'scrolls' 0x1f5b // Paralyze Field
  156. @pushlist 'scrolls' 0x1f5c // Reveal
  157. @pushlist 'scrolls' 0x1f5d // Chain Lightning
  158. @pushlist 'scrolls' 0x1f5e // Energy Field
  159. @pushlist 'scrolls' 0x1f60 // Gate Travel
  160. @pushlist 'scrolls' 0x1f61 // Mana Vampire
  161. @pushlist 'scrolls' 0x1f62 // Mass Dispel
  162. @pushlist 'scrolls' 0x1f63 // Meteor Swarm
  163. @pushlist 'scrolls' 0x1f64 // Polymorph
  164. @pushlist 'scrolls' 0x1f65 // Earthquake
  165. @pushlist 'scrolls' 0x1f66 // Energy Vortex
  166. @pushlist 'scrolls' 0x1f67 // Ressurrection
  167. @pushlist 'scrolls' 0x1f68 // Summon Air Elemental
  168. @pushlist 'scrolls' 0x1f69 // Summon Daemon
  169. @pushlist 'scrolls' 0x1f6a // Summon Earth Elemental
  170. @pushlist 'scrolls' 0x1f6b // Summon Fire Elemental
  171. @pushlist 'scrolls' 0x1f6c // Summon Water Elemental
  172. @pushlist 'MiscTypes' 0xb0cb // Faire Card
  173. endif
  174. for 0 to 'scrolls'
  175. @clearjournal
  176. while @findtype 'scrolls[]' 'any' 'tmapchest'
  177. moveitem 'found' 'lootbag'
  178. endwhile
  179. endfor
  180. // Move magic items
  181. if not listexists 'RuneTypes'
  182. createlist 'RuneTypes'
  183. endif
  184. sysmsg 'Moving runes'
  185. // Runs
  186. @pushlist 'RuneTypes' 0x9bd9 // Fury
  187. @pushlist 'RuneTypes' 0x9bd3 // Empower
  188. @pushlist 'RuneTypes' 0x9bda // Immunity
  189. @pushlist 'RuneTypes' 0x9be7 // Toxicity
  190. @pushlist 'RuneTypes' 0x9be1 // Poison Ward
  191. @pushlist 'RuneTypes' 0x9bd8 // Healing
  192. for 0 to 'RuneTypes'
  193. @clearjournal
  194. while @findtype 'RuneTypes[]' 'any' 'tmapchest'
  195. moveitem 'found' 'lootbag'
  196. endwhile
  197. endfor
  198. // Move magic items
  199. if not listexists 'ItemTypes'
  200. createlist 'ItemTypes'
  201. endif
  202. sysmsg 'Moving magic items'
  203. //Shields
  204. @pushlist 'ItemTypes' 0x1b72 //BronzeShields
  205. @pushlist 'ItemTypes' 0x1b73 //Buckler
  206. @pushlist 'ItemTypes' 0x1b7b //MetalShield
  207. @pushlist 'ItemTypes' 0x1b75 //Metal Kite Shield
  208. @pushlist 'ItemTypes' 0x1b79 //Tear Kite Shield
  209. @pushlist 'ItemTypes' 0x1b7a //WoodenShield
  210. @pushlist 'ItemTypes' 0x1b77 //HeaterShield
  211. //Platemail
  212. @pushlist 'ItemTypes' 0x1409 //Close Helmet
  213. @pushlist 'ItemTypes' 0x1417 //Platemail Arms
  214. @pushlist 'ItemTypes' 0x141a //Platemail Legs
  215. @pushlist 'ItemTypes' 0x1412 //Plate Helm
  216. @pushlist 'ItemTypes' 0x1413 //Plate Gorget
  217. @pushlist 'ItemTypes' 0x1418 //Platemail Gloves
  218. @pushlist 'ItemTypes' 0x1416 //Plate Chest
  219. @pushlist 'ItemTypes' 0x140a //Helmet
  220. @pushlist 'ItemTypes' 0x140c //Bascinet
  221. @pushlist 'ItemTypes' 0x140f //Norse Helm
  222. //Chainmail
  223. @pushlist 'ItemTypes' 0x13c0 //Chainmail Coif
  224. @pushlist 'ItemTypes' 0x13c3 //Chainmail Leggins
  225. @pushlist 'ItemTypes' 0x13c4 //Chainmail Tunic
  226. @pushlist 'ItemTypes' 0x13ef //Chainmail Arms
  227. @pushlist 'ItemTypes' 0x13f2 //Chainmail Gloves
  228. //Ringmail
  229. @pushlist 'ItemTypes' 0x13ee //Ringmail Sleeves
  230. @pushlist 'ItemTypes' 0x13f2 //Ringmail Gloves
  231. @pushlist 'ItemTypes' 0x13ec //Ringmail Tunic
  232. @pushlist 'ItemTypes' 0x13f1 //Ringmail Leggings
  233. @pushlist 'ItemTypes' 0x140b //Ringmail Helm
  234. @pushlist 'ItemTypes' 0x13ef //Ringmail Arms
  235. //Bone Armor
  236. @pushlist 'ItemTypes' 0x1451 //Bone Helmet
  237. @pushlist 'ItemTypes' 0x1454 //Bone Chest
  238. @pushlist 'ItemTypes' 0x1453 //Bone Arms
  239. @pushlist 'ItemTypes' 0x1455 //Bone Gloves
  240. //Studded
  241. @pushlist 'ItemTypes' 0x13e1 //Studded Leggings
  242. @pushlist 'ItemTypes' 0x13db //Studded Tunic
  243. @pushlist 'ItemTypes' 0x13d5 //Studded Gloves
  244. @pushlist 'ItemTypes' 0x13d6 //Studded Gorget
  245. @pushlist 'ItemTypes' 0x13d4 //Studded Sleeves
  246. //Leather
  247. @pushlist 'ItemTypes' 0x13ce //Leather Gloves
  248. @pushlist 'ItemTypes' 0x13c5 //Leather Sleeves
  249. @pushlist 'ItemTypes' 0x13d3 //Leather Tunic
  250. @pushlist 'ItemTypes' 0x13d2 //Leather Pants
  251. @pushlist 'ItemTypes' 0x13c7 //Leather Gorget
  252. @pushlist 'ItemTypes' 0x1dba //Leather Cap
  253. //Female Armor
  254. @pushlist 'ItemTypes' 0x1c04 //Female Plate
  255. @pushlist 'ItemTypes' 0x1c0d //Female Studded Bustier
  256. @pushlist 'ItemTypes' 0x1c02 //Female Studded Armor
  257. @pushlist 'ItemTypes' 0x1c01 //Female Leather Shorts
  258. @pushlist 'ItemTypes' 0x1c09 //Female Leather Skirt
  259. @pushlist 'ItemTypes' 0x1c06 //Female Leather Armor
  260. @pushlist 'ItemTypes' 0x1c0b //Female Leather Bustier
  261. //Fencing
  262. @pushlist 'ItemTypes' 0xf62 //Spear
  263. @pushlist 'ItemTypes' 0x1403 //Short Spear
  264. @pushlist 'ItemTypes' 0xe87 //Pitchfork
  265. @pushlist 'ItemTypes' 0x1405 //Warfork
  266. @pushlist 'ItemTypes' 0x1401 //Kryss
  267. @pushlist 'ItemTypes' 0xf52 //Dagger
  268. //Macing
  269. @pushlist 'ItemTypes' 0x13b0 //War axe
  270. @pushlist 'ItemTypes' 0xdf0 //Black Staff
  271. @pushlist 'ItemTypes' 0x1439 //War Hammer
  272. @pushlist 'ItemTypes' 0x1407 //War Mace
  273. @pushlist 'ItemTypes' 0xe89 //Quarter Staff
  274. @pushlist 'ItemTypes' 0x143d //Hammer Pick
  275. @pushlist 'ItemTypes' 0x13b4 //Club
  276. @pushlist 'ItemTypes' 0xe81 //Shepherds Crook
  277. @pushlist 'ItemTypes' 0x13f8 //Gnarled Staff
  278. @pushlist 'ItemTypes' 0xf5c //Mace
  279. @pushlist 'ItemTypes' 0x143b //Maul
  280. //Swords
  281. @pushlist 'ItemTypes' 0x13b9 //Viking Sword
  282. @pushlist 'ItemTypes' 0xf61 //Longsword
  283. @pushlist 'ItemTypes' 0x1441 //Cutlass
  284. @pushlist 'ItemTypes' 0x13b6 //Scimitar
  285. @pushlist 'ItemTypes' 0xec4 //Skinning Knife
  286. @pushlist 'ItemTypes' 0x13f6 //Butcher Knife
  287. @pushlist 'ItemTypes' 0xf5e //Broadsword
  288. @pushlist 'ItemTypes' 0x13ff //Katana
  289. @pushlist 'ItemTypes' 0xec3 //Cleaver
  290. //Axes
  291. @pushlist 'ItemTypes' 0xf43 //Hatchet
  292. @pushlist 'ItemTypes' 0xf45 //Executioner's Axe
  293. @pushlist 'ItemTypes' 0xf4d //Bardiche
  294. @pushlist 'ItemTypes' 0xf4b //Double Axe
  295. @pushlist 'ItemTypes' 0x143e //Halberd
  296. @pushlist 'ItemTypes' 0x13fb //Large Battle Axe
  297. @pushlist 'ItemTypes' 0x1443 //Two Handed Axe
  298. @pushlist 'ItemTypes' 0xf47 //Battle Axe
  299. @pushlist 'ItemTypes' 0xf49 //Axe
  300. @pushlist 'ItemTypes' 0xe85 //Pickaxe
  301. @pushlist 'ItemTypes' 0xe86 //Pickaxe
  302. //Bows
  303. @pushlist 'ItemTypes' 0x13fd //HeavyXbow
  304. @pushlist 'ItemTypes' 0xf50 //Xbow
  305. @pushlist 'ItemTypes' 0x13b2 //bow
  306. //Misc
  307. @pushlist 'ItemTypes' 0xe9e // Tamborine
  308. @pushlist 'ItemTypes' 0xeb3 // Lute
  309. @pushlist 'ItemTypes' 0xe9c // Drums
  310. @pushlist 'ItemTypes' 0xefa // Spellbook
  311. @pushlist 'ItemTypes' 0xeb2 // Harp
  312. @pushlist 'ItemTypes' 0xdf2 // Wand 1
  313. @pushlist 'ItemTypes' 0xdf4 // Wand 2
  314. @pushlist 'ItemTypes' 0xdf5 // Wand 3
  315. @pushlist 'ItemTypes' 0xdf3 // Wand 4
  316. for 0 to 'ItemTypes'
  317. @clearjournal
  318. while @findtype 'ItemTypes[]' 'any' 'tmapchest'
  319. moveitem found 'lootbag'
  320. endwhile
  321. endfor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement