Back to "trap" tags

Dungeon Lockpicker & Priority Loot by neverstopswing

Description: This loots in priority based off of potential loot value. I don't have every antiquity in here as this is a WIP.

1@setvar PauseTime 650
2@clearsysmsg
3@clearignore 
4for 16
5    if index > 0 and findtype 3651|3649|3648|3650|3708|2475 ground -1 -1 index as chest
6        getlabel chest desc
7        if "lock" in desc
8            overhead "{{desc}}" 88 chest
9            break
10        else 
11            overhead "{{desc}}" 34 chest
12            @ignore chest
13        endif
14    endif
15endfor
16if skill 'Hiding' >= 100
17    useskill 'Hiding'
18endif
19if not find 'lootbag' 'self' 
20    overhead 'Select where to loot to'
21    setvar 'lootbag'
22endif
23if findtype "metal chest|wooden chest" ground -1 -1 2 as LockedBox
24    @setvar 'LockCheck' 0
25    dclick LockedBox
26    pause PauseTime
27	if insysmsg 'It appears to be locked'
28        @setvar 'LockCheck' 1
29    endif   
30    if 'LockCheck' = 1
31		gumpresponse 7
32		overhead 'Removing Traps..' 20
33		while not insysmsg 'You have successfully cleared it of traps' and not insysmsg 'That appears to be devoid of traps' 
34		if insysmsg 'You make some progress towards clearing it of traps'
35            overhead 'Progress!' 88
36            pause 200
37            @clearsysmsg 
38        endif
39        if insysmsg 'You fail to make any progress towards removing traps'
40            overhead 'Failed!' 32
41            pause 200
42            @clearsysmsg 
43        endif
44		endwhile
45        gumpresponse 4
46        overhead 'Picking Lock..' 20
47        pause 200
48        while not insysmsg 'You successfully pick the lock.'
49            if insysmsg 'You make some progress on the lock.'
50                overhead 'Progress!' 88
51                pause 200
52                @clearsysmsg 
53            endif
54            if insysmsg 'You fail to make any progress on the lock'
55                overhead 'Failed!' 32
56                pause 200
57                @clearsysmsg 
58            endif
59        endwhile
60        overhead 'Picking Success!' 63
61    endif
62    if 'LockCheck' = 0
63        overhead 'Chest not Locked!' 32
64    endif
65	while findtype 42576|41509|29361|45127|18654|18655|47105|47107 LockedBox as Loot
66		getlabel loot lootlabel
67	    overhead lootlabel 1150
68		lift Loot 100
69		drop lootbag -1 -1 0
70		wait PauseTime
71	endwhile
72    while findtype 3985|24434|22336|3843|3839|29025|3842|3838|8826|5359|5981 LockedBox as Loot
73		getlabel loot lootlabel
74	    overhead lootlabel 1150
75		lift Loot 100
76		drop lootbag -1 -1 0
77		wait PauseTime
78	endwhile
79	while findtype 3827|3836|48407|43166|4248|3843|29036|2594|5356|17087|29030 LockedBox as Loot
80		getlabel loot lootlabel
81	    overhead lootlabel 1150
82		lift Loot 100
83		drop lootbag -1 -1 0
84		wait PauseTime
85	endwhile
86	while findtype 3878|3873|3856|3865|3859|3862|3877|3885|3861 LockedBox as Loot
87		getlabel loot lootlabel
88	    overhead lootlabel 1150
89		lift Loot 100
90		drop lootbag -1 -1 0
91		wait PauseTime
92	endwhile
93	if diffweight > 50
94        while findtype 3821 LockedBox as Loot
95			getlabel loot lootlabel
96			overhead lootlabel 1150
97            lift Loot 10000
98            drop lootbag -1 -1 0
99            wait PauseTime
100        endwhile
101    endif
102endif
103