Back to "ban bot" tags

Amish House Butler by Jaseowns

1# Amish House Butler by Jaseowns
2# UO Outlands
3# WIP during live stream: https://youtu.be/Of39bikUMDs
4
5
6@setvar! globalTimeout 650
7
8
9#################################
10##### Item Id
11###########################
12
13if skill "Item Identification" >= 120
14    if not varexist chestToLookIn
15        overhead "Select a chest to look in" 88
16        @setvar! chestToLookIn
17    endif
18    
19    if not find chestToLookIn ground -1 -1 2
20        unsetvar chestToLookIn
21        replay
22    endif
23    
24    if not timerexists "itemIdTimer"
25        createtimer "itemIdTimer"
26        settimer "itemIdTimer" 20000
27    endif
28    
29    if not timerexists "detectHidingPlayersTimer"
30        createtimer "detectHidingPlayersTimer"
31        settimer "detectHidingPlayersTimer" 11000
32    endif
33    
34    getlabel chestToLookIn descItemId
35    
36    if "0 items, 0 stones" in descItemId
37        // do nothing
38    elseif timer "detectHidingPlayersTimer" >= 11000 and timer "itemIdTimer" >= 20000
39        useskill 'itemidentification'
40        wft 500
41        target chestToLookIn
42        settimer "detectHidingPlayersTimer" 9000
43        settimer "itemIdTimer" 0
44    endif
45endif
46
47
48#################################
49##### Open Paragons
50###########################
51
52if skill "Lockpicking" >= 50
53        
54    if not timerexists "unlockChestTimer"
55        createtimer "unlockChestTimer"
56        settimer "unlockChestTimer" 2000
57    endif
58
59    if not varexist haveParagonToOpen
60        @setvar! haveParagonToOpen 0
61    endif
62
63    if findtype "lockpicks" backpack and findtype "drill" backpack
64        @clearignore
65        if not varexist chestToLookIn
66            overhead "Select a chest to look in" 88
67            @setvar! chestToLookIn
68        endif
69
70        if not find chestToLookIn ground -1 -1 2
71            unsetvar chestToLookIn
72            replay
73        endif
74
75        if haveParagonToOpen = 0
76            while findtype 2473|3644|3645|3646|3647|3710|3701|3702|29832|29833|2472|2475|3648|3649|3708|29078|41449|41450|3705|3712|2474|3709|3650|3651|29077 chestToLookIn as container
77                getlabel container desc
78                if "sealed" in desc
79                    overhead "paragon found"
80                    lift container
81                    drop backpack -1 -1 -1
82                    wait globalTimeout
83                endif
84                
85                if find container backpack
86                    @setvar! haveParagonToOpen container
87                else
88                    @ignore! container
89                endif
90            endwhile
91        elseif timer unlockChestTimer >= 3500
92            if gumpexists 736038070
93                if ingump "Cleared of Traps" 736038070
94                    gumpresponse 4 736038070
95                else
96                    overhead "Remove Trap"
97                    gumpresponse 7 736038070        
98                endif
99                settimer unlockChestTimer 0
100            else
101                getlabel haveParagonToOpen sealedDesc
102                if "sealed" in sealedDesc
103                    dclick haveParagonToOpen
104                else
105                    overhead "we done"
106                    lift haveParagonToOpen
107                    drop chestToLookIn -1 -1 -1
108                    wait globalTimeout
109                    if not find haveParagonToOpen backpack
110                        @setvar! haveParagonToOpen 0
111                    endif
112                endif
113            endif
114        endif
115    else
116        overhead "No more lockpicks or drills bro" 34
117    endif
118
119endif
120
121#################################
122##### Ban Bot Portion
123###########################
124
125clearsysmsg 
126
127if not listexists "friendsofthehouse"
128    createlist "friendsofthehouse"
129endif
130
131if not timerexists "detectHidingPlayersTimer"
132    createtimer "detectHidingPlayersTimer"
133    settimer "detectHidingPlayersTimer" 11000
134endif
135
136if not timerexists "sayBanTimer"
137    createtimer "sayBanTimer"
138    settimer "sayBanTimer" 2000
139endif
140
141if timer "detectHidingPlayersTimer" >= 11000
142    useskill 'detectinghidden'
143    wft 500
144    target 'self'
145    settimer "detectHidingPlayersTimer" 0
146endif
147
148hotkey 'Next non-friendly player target'
149wait 200
150if insysmsg "no one matching"
151    // do nothing
152else 
153    @setvar! removeTarget lasttarget
154    if inlist "friendsofthehouse" removeTarget 
155        // do nothing
156    elseif timer sayBanTimer >= 2000
157        say "I ban thee" 
158        wft 1000
159        target removeTarget 
160        wait 200
161        if insysmsg "You cannot eject a friend of the house!"
162            pushlist "friendsofthehouse" removeTarget 
163        endif  
164        settimer "sayBanTimer" 0
165    endif
166endif
167
168wait 50
169loop