Deposit gold, repair, dump loot, restock, and resupply by icebearfpv

Related: Snippet

1@setvar! globalTimeout 650
2
3@setvar! recycler 0x4346EC2A
4@setvar! storageShelf 0x4139C061
5@setvar! stockpile 0x4346D41C
6@setvar! satchel 0x74C832DC
7@setvar! lootBag 0x74C932DE
8
9
10#
11# Deposit gold or dabloons
12#
13if findtype "bank deposit safe" ground -1 -1 2 as safe
14    while findtype "gold coin" backpack as gold
15        lift gold 60000
16        drop safe -1 -1 -1
17        wait 2500
18    endwhile
19    while findtype 2539 backpack 2125 as joubloons
20        lift joubloons 60000
21        drop safe -1 -1 -1
22        wait 2500
23    endwhile
24endif
25
26wait globalTimeout
27
28#
29# Repair Bench - Repair all items
30#
31if findtype "repair bench" ground -1 -1 2 as bench
32    clearsysmsg 
33    dclick bench
34    getlabel backpack jaseowns_PingCheck
35    if insysmsg "You do not have any items equipped or in your backpack in need of repairs."
36        // continue
37    else
38        settimer lilJaseTimer 0
39        while timer lilJaseTimer <= 5000 
40            if insysmsg "Repair"
41                break
42            endif
43        endwhile
44        overhead "Repair took: {{lilJaseTimer}}"
45        removetimer lilJaseTimer
46    endif
47endif
48
49wait globalTimeout
50
51#
52# Check into Inn Room
53#
54@setvar rentalGumpID 2393832411
55
56if gumpexists rentalGumpID
57    gumpclose
58    wait 100
59endif
60
61say 'room'
62waitforgump rentalGumpID 3000
63
64if not gumpexists rentalGumpID
65    overhead 'Failed to enter room!' 38
66    overhead 'Are you even near the inn?' 53
67elseif ingump 'Enter Your Room'
68    wait 250
69
70    while not insysmsg 'You enter the rental room'
71        overhead 'Entering room...' 903
72        gumpresponse 4
73        wait 250
74        
75        if insysmsg 'That vendor is too far away'
76            overhead 'Innkeeper is too far away!' 38
77            overhead 'Move closer!' 53
78            stop
79        endif
80    endwhile
81    
82    overhead 'Welcome home.'
83else 
84    sysmsg 'Character does not have a room or access to one!' 38
85    overhead 'No room access!' 38
86endif
87
88wait globalTimeout
89
90clearsysmsg 
91clearignore 
92
93#
94# Magic Item Recycler - Add all unidentified magic items
95#
96if find recycler ground -1 -1 2 as container
97    menu container 1
98endif
99
100wait globalTimeout
101
102#
103# Stockpile - Restock
104#
105if find stockpile ground -1 -1 2 as container
106    menu container 0
107    wft 500
108    target lootBag
109endif
110
111wait globalTimeout
112
113#
114# Storage Shelf - Resupply
115#
116if find storageShelf ground -1 -1 2 as container
117    menu container 0 # Dump reagents from satchel back into the storage shelf
118    wft 500
119    target satchel
120    
121    wait 1000
122    
123    menu container 1 # resupply reagents with exact amount from desired loadout
124endif