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.

1@setvar! globalTimeout 650
2
3if mana > 10
4    if findtype "runetome" backpack as tome
5        dclick tome
6        waitforgump 167090027
7        gumpresponse 107
8        wait 3000
9    endif
10    if findtype 22290 backpack as hat
11        dclick hat 1
12        wait globalTimeout
13    endif
14    if findtype 30778 backpack as chest
15        dclick chest 1
16        wait globalTimeout
17    endif
18    if find 0x43E7B6E9 backpack as chain
19        lift chain 1
20        wait globalTimeout
21        drop self Talisman
22        wait globalTimeout
23    endif
24    if findtype 21927 backpack as hook
25        dclick hook 1
26        wait globalTimeout
27    endif
28    if findtype 2597 backpack as lantern
29        dclick lantern
30        wait globalTimeout
31    endif
32    if findtype 21926 backpack as eyepatch
33        dclick eyepatch 1
34        wait globalTimeout
35    endif
36    if findtype 21862 backpack as shorts
37        dclick shorts 1
38        wait globalTimeout
39    endif
40    if findtype 31143 backpack as hip
41        dclick hip
42        wait globalTimeout
43    endif
44    if findtype "sm magic item vault" ground -1 -1 2 as vault
45        dclick vault
46        waitforgump 938517546
47        wait globalTimeout
48        gumpresponse 107
49        waitforgump 938517546
50        wait globalTimeout
51        gumpresponse 1105
52        waitforgump 938517546
53        wait globalTimeout
54        gumpresponse 300
55        waitforgump 938517546
56        wait globalTimeout
57        gumpclose 938517546
58        if findtype "spellbook" backpack 2606 as book
59            dclick book
60            wait globalTimeout
61        endif
62    endif      
63    if findtype "storage shelf" ground -1 -1 2 as shelf
64        menu shelf 1
65        wait globalTimeout
66        say '[AspectSpellbook Command'
67        wait globalTimeout
68        say '[AspectArmor Eldritch'
69    endif
70    if findtype 3701 backpack 0 as pack
71    lift pack 1
72    wait globalTimeout
73    drop backpack 43 68 0
74    if findtype "book" backpack 2261 as gb
75        lift gb 1
76        wait globalTimeout
77        drop backpack 43 64 0
78    endif
79    if findtype "wall shelf" backpack 0 as tool
80        lift tool 1
81        wait globalTimeout
82        drop backpack 43 64 0
83    endif
84    dclick pack
85    if findtype "bag" backpack 0 as bag
86        lift bag 1
87        wait globalTimeout
88        drop pack
89        wait globalTimeout
90        dclick bag
91    endif   
92    if findtype 3705 as pouch
93        lifttype 3713
94        drop pouch
95    endif
96endif
97
98overhead 'READY TO GO'