Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. // $$$$$$$ Gem/Reg Sort and store $$$$$$$$
  2. // $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  3. // ?? By Amonseti
  4. // ?? V1.3
  5. // ???????????????????????????????????????
  6. // ?? This macro will search your main pack
  7. // ?? and all bags / containers for gems and
  8. // ?? Reg's, and sort them into bag/s or
  9. // ?? container/s assigned by you.
  10. // ??
  11. // ???????????????????????????????????????
  12. // ??
  13. // ?? USAGE:
  14. // ?? Currently this macro requires at least 1
  15. // ?? bag in the main pack to function.
  16. // ?? Simply run the macro. You will be prompted
  17. // ?? to select a bag or container where the
  18. // ?? gems will be stored. A 2nd prompt will
  19. // ?? ask you to target the Regent storage
  20. // ?? container .
  21. // ?? !!DO NOT!! Target a bag in your main
  22. // ?? pack as a storage container , this would
  23. // ?? silly results and could invoke a singularity
  24. // ?? if not carefull !!
  25. // ??
  26. // ???????????????????????????????????????
  27. //
  28. // !! Clear data
  29. unsetalias 'gem_storage'
  30. unsetalias 'reg_storage'
  31. // !! Create Sort lists
  32. if not listexists 'gems'
  33. createlist 'gems'
  34. //Gems
  35. pushlist 'gems' 0xf16 // Amethyst
  36. pushlist 'gems' 0xf15 // Citrine
  37. pushlist 'gems' 0xf19 // Sapphire
  38. pushlist 'gems' 0xf25 // Amber
  39. pushlist 'gems' 0xf21 // Star Sapphire
  40. pushlist 'gems' 0xf10 // Emerald
  41. pushlist 'gems' 0xf26 // Diamond
  42. pushlist 'gems' 0xf2d // Tourmaline
  43. pushlist 'gems' 0xf13 // Ruby
  44. endif
  45. if not listexists 'regs'
  46. createlist 'regs'
  47. //Regents
  48. pushlist 'regs' 0xf7a // Black Pearl
  49. pushlist 'regs' 0xf7b // Blood Moss
  50. pushlist 'regs' 0xf86 // Mandrake Root
  51. pushlist 'regs' 0xf84 // Garlic
  52. pushlist 'regs' 0xf85 // Ginseng
  53. pushlist 'regs' 0xf88 // Nightshade
  54. pushlist 'regs' 0xf8d // Spider's Silk
  55. pushlist 'regs' 0xf8c // Sulphurous Ash
  56. endif
  57. // !! User Input set Target Gem storage
  58. headmsg 'Please Select Gem Storage' '2124'
  59. if not findalias 'gem_storage'
  60. promptalias 'gem_storage'
  61. endif
  62. // !! User Input set Target Reg storage
  63. headmsg 'Please Select Regent Storage' '2124'
  64. if not findalias 'reg_storage'
  65. promptalias 'reg_storage'
  66. endif
  67. clearignorelist
  68. // !! Start sorting !!
  69. while @findtype 0xe76 'any' 'backpack'
  70. setalias 'current_bag' 'found'
  71. useobject 'current_bag'
  72. pause 600
  73. ignoreobject 'current_bag'
  74. for 0 to 'regs'
  75. while @findtype 'regs[]' 'current_bag'
  76. moveitem 'found' 'reg_storage'
  77. pause 600
  78. endwhile
  79. endfor
  80. for 0 to 'gems'
  81. while @findtype 'gems[]' 'current_bag'
  82. moveitem 'found' 'gem_storage'
  83. pause 600
  84. endwhile
  85. endfor
  86. pause 600
  87. endwhile
  88. clearignorelist
  89. headmsg 'Done Sorting' '89'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement