Restock after Death by zerotokraken
Description: This is a script to use a recall charge and then gear up. Mine is setup to grab a Supreme spellbook and equip my cosmetic clothing. Then restock, apply my aspects and finally position my bags where I want them under other items. Replace IDs with your own and custom as needed.
@setvar! globalTimeout 650 if mana > 10 if findtype "runetome" backpack as tome dclick tome waitforgump 167090027 gumpresponse 107 wait 3000 endif if findtype 22290 backpack as hat dclick hat 1 wait globalTimeout endif if findtype 30778 backpack as chest dclick chest 1 wait globalTimeout endif if find 0x43E7B6E9 backpack as chain lift chain 1 wait globalTimeout drop self Talisman wait globalTimeout endif if findtype 21927 backpack as hook dclick hook 1 wait globalTimeout endif if findtype 2597 backpack as lantern dclick lantern wait globalTimeout endif if findtype 21926 backpack as eyepatch dclick eyepatch 1 wait globalTimeout endif if findtype 21862 backpack as shorts dclick shorts 1 wait globalTimeout endif if findtype 31143 backpack as hip dclick hip wait globalTimeout endif if findtype "sm magic item vault" ground -1 -1 2 as vault dclick vault waitforgump 938517546 wait globalTimeout gumpresponse 107 waitforgump 938517546 wait globalTimeout gumpresponse 1105 waitforgump 938517546 wait globalTimeout gumpresponse 300 waitforgump 938517546 wait globalTimeout gumpclose 938517546 if findtype "spellbook" backpack 2606 as book dclick book wait globalTimeout endif endif if findtype "storage shelf" ground -1 -1 2 as shelf menu shelf 1 wait globalTimeout say '[AspectSpellbook Command' wait globalTimeout say '[AspectArmor Eldritch' endif if findtype 3701 backpack 0 as pack lift pack 1 wait globalTimeout drop backpack 43 68 0 if findtype "book" backpack 2261 as gb lift gb 1 wait globalTimeout drop backpack 43 64 0 endif if findtype "wall shelf" backpack 0 as tool lift tool 1 wait globalTimeout drop backpack 43 64 0 endif dclick pack if findtype "bag" backpack 0 as bag lift bag 1 wait globalTimeout drop pack wait globalTimeout dclick bag endif if findtype 3705 as pouch lifttype 3713 drop pouch endif endif overhead 'READY TO GO'