Back to "magic" tags

Restock Storage Shelf with Magic Mushrooms (Easily Customizable) by oaksvirals

Description: Easily restock your storage shelf with magic mushrooms. You only need to set 1 variable at the top of the script for the number of Magic Mushrooms you would like to add to your shelf.

1#Stand next to shelf and run.
2#Change MushCount variable to how mnay shrooms you want to make.
3#Consider how much weight you can hold. 100 mushrooms = 10 weight.
4#i.e. 1000 shrooms = 100 weight
5
6@setvar! MushCount '1000'
7
8if findtype "storage shelf" ground any any 2 as my_shelf
9   overhead 'Shelf Found!' 0
10else 
11   overhead 'Must Be Near Your Storage Shelf!' 33
12   stop
13endif
14
15while counttype 29012 backpack < MushCount
16    if counttype 3974 self < 10
17        if findtype "storage shelf" ground any any 2 as my_shelf
18        menu my_shelf 1
19        wait 1000
20        overhead 'Restocked!' 0
21        endif
22    else
23    cast 'create food'
24    wait 1000
25    endif
26    if mana < 15
27        dclicktype 29012
28        while mana < 90
29           if not findbuff "actively meditating"
30            skill 'meditation'
31           endif
32        wait 1000
33        endwhile
34    endif
35endwhile
36
37if counttype 29012 backpack >= MushCount
38    if findtype "storage shelf" ground any any 2 as my_shelf
39    menu my_shelf 0
40    wait 1000
41    target 'self'
42    pause 600
43    gumpclose
44    pause 600
45    menu my_shelf 1
46    overhead 'All Done!' 0
47    endif
48    stop
49endif