Advertisement
matsamilla

MIB Organizer

Dec 7th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. promptalias 'Chest'
  2. if not @findobject 'RegChest'
  3. headmsg 'Select a chest for Regs'
  4. promptalias 'RegChest'
  5. endif
  6. if not @findobject 'BoneChest'
  7. headmsg 'Select a Chest for Bone Armor'
  8. promptalias 'BoneChest'
  9. endif
  10. if not @findobject 'NetChest'
  11. headmsg 'Select a chest for Nets'
  12. promptalias 'NetChest'
  13. endif
  14. if not @findobject 'GoldChest'
  15. headmsg 'Select a Chest for Gold'
  16. promptalias 'GoldChest'
  17. endif
  18. if not @findobject 'ArmorChest'
  19. headmsg 'Select a chest for Armor'
  20. promptalias 'ArmorChest'
  21. endif
  22. if not @findobject 'WepChest'
  23. headmsg 'Select a chest for Weapons'
  24. promptalias 'WepChest'
  25. endif
  26. if not @findobject 'GemChest'
  27. headmsg 'Select a chest for Gems'
  28. promptalias 'GemChest'
  29. endif
  30. if not @findobject 'ScrollChest'
  31. headmsg 'Select a chest for Scrolls'
  32. promptalias 'ScrollChest'
  33. endif
  34. if not @findobject 'TrashCan' or not @inrange 'TrashCan' '3'
  35. headmsg 'Select a corpse to dump Trash in'
  36. promptalias 'TrashCan'
  37. endif
  38. useobject 'Chest'
  39. pause 900
  40. // Ooops, forgot to disarm chest
  41. while hits < 100
  42. bigheal 'self'
  43. pause 1500
  44. endwhile
  45. // Hide self in house
  46. if not hidden 'self'
  47. useskill 'Hiding'
  48. endif
  49. // NETS
  50. if @inrange 'Chest' 2
  51. if @movetype 0xdca 'Chest' 'NetChest'
  52. pause 1000
  53. endif
  54. endif
  55. // GOLD
  56. if @inrange 'Chest' 2
  57. while @movetype 0xeed 'Chest' 'GoldChest'
  58. pause 1000
  59. endwhile
  60. endif
  61. // Organizers Start
  62. // Gems (this will pull all gems AND portal frags)
  63. organizer 'Gems' 'Chest' 'GemChest'
  64. while organizing
  65. endwhile
  66. // Loot - Items to pack
  67. organizer 'Loot' 'Chest' 'backpack'
  68. while organizing
  69. if weight >= maxweight
  70. playsound 'error.wav'
  71. msg "I'm Overweight! Stopping Script."
  72. stop
  73. endif
  74. endwhile
  75. // Regs
  76. organizer 'Regs' 'Chest' 'RegChest'
  77. while organizing
  78. endwhile
  79. // Weapons
  80. organizer 'Weapons' 'Chest' 'WepChest'
  81. while organizing
  82. if @injournal 'cannot hold' 'system'
  83. organizer 'Weapons' //stops organizer
  84. playsound 'error.wav'
  85. msg 'Weapon Chest Full, select another'
  86. promptalias 'WepChest'
  87. pause 600
  88. @clearjournal
  89. organizer 'Weapons' 'Chest' 'WepChest' // restarts organizer
  90. endif
  91. endwhile
  92. // Armor
  93. organizer 'Armor' 'Chest' 'ArmorChest'
  94. while organizing
  95. if @injournal 'cannot hold' 'system'
  96. organizer 'Armor' //stops organizer
  97. playsound 'error.wav'
  98. msg 'Armor Chest Full, select another'
  99. promptalias 'ArmorChest'
  100. pause 600
  101. @clearjournal
  102. organizer 'Armor' 'Chest' 'ArmorChest' // restarts organizer
  103. endif
  104. endwhile
  105. // Armor
  106. organizer 'BoneArmor' 'Chest' 'BoneChest'
  107. while organizing
  108. if @injournal 'cannot hold' 'system'
  109. organizer 'BoneArmor' //stops organizer
  110. playsound 'error.wav'
  111. msg 'Weapon Chest Full, select another'
  112. promptalias 'BoneChest'
  113. pause 600
  114. @clearjournal
  115. organizer 'BoneArmor' 'Chest' 'BoneChest' // restarts organizer
  116. endif
  117. endwhile
  118. // Scrolls
  119. if @inlist 'keepscrolls' 'Yes' or @inlist 'keepscrolls' 'yes'
  120. organizer 'Scrolls' 'Chest' 'ScrollChest'
  121. else
  122. organizer 'Scrolls' 'Chest' 'TrashCan'
  123. endif
  124. while organizing
  125. endwhile
  126. // Trash
  127. organizer 'Trash' 'Chest' 'TrashCan'
  128. while organizing
  129. endwhile
  130. //msg 'Loot Aquired!'
  131. playsound 'bell.wav'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement