Back to "provo" tags

Provoke Nearest Creatures Automatically Single Hotkey (Q) by Jaseowns

1# Provoke Bard Bot with Discord by Jaseowns
2# UO Outlands
3# Livestream learning!
4
5# Pop a pot if below or equal this HP
6@setvar! autoBardHpCheck 60
7
8if not timerexists sCheck
9    createtimer sCheck
10    settimer sCheck 11000
11endif
12
13hotkey 'target closest non-friendly monster'
14wait 200
15if insysmsg "no one matching"
16    overhead  "Nothing to attack" 34
17    stop
18endif
19
20@setvar! mobOne lasttarget 
21@setvar! mobTwo lasttarget
22
23getlabel mobOne descOne
24overhead "MobOne = {{descOne}}" 88
25
26while mobOne = mobTwo
27    overhead "Same mob, move near someone else!" 34
28    hotkey 'target closest non-friendly monster'
29    wait 200
30    if insysmsg "no one matching"
31        overhead  "Nothing to attack" 34
32        break
33    endif
34    @setvar! mobOne lasttarget
35endwhile
36
37getlabel mobTwo descTwo
38overhead "MobTwo = {{descTwo}}" 77
39
40
41clearsysmsg 
42
43while not dead
44    if timer sCheck >= 5000
45        useskill 'Provocation'
46        wft 500
47        if insysmsg "What instrument"
48            if findtype "bamboo flute" backpack as inny
49                target inny
50            elseif findtype "tambourine" backpack as inny
51                target inny
52            elseif findtype "drum" backpack as inny
53                target inny
54            elseif findtype "lute" backpack as inny
55                target inny
56            elseif findtype "lap harp" backpack as inny
57                target inny
58            else
59                overhead "I do not have an inny" 34
60                wait 2000
61                replay
62            endif
63            wft 500
64        endif
65        
66        if targetexists 
67            target mobOne
68            wft 500
69            target mobTwo
70            wait 200
71            if insysmsg "you play success"
72                settimer sCheck 0
73                break
74            elseif insysmsg "t incite that!"
75                break
76            endif
77        endif
78
79    else
80        overhead "Waiting for skill cooldown..." 88
81        wait 500
82    endif
83    
84    if hp <= autoBardHpCheck
85        if findtype "Yellow Potion" backpack as pot
86            dclick pot
87        endif
88    endif
89    
90    if diffhits >= 10 and not bandaging
91        if skill "healing" > 0 and findtype "clean bandage%s%" backpack
92            hotkey 'Bandage Self'
93        endif
94    endif
95endwhile
96
97
98while not dead mobOne
99    getlabel mobOne descOne
100
101    if "discord" in descOne
102        overhead "Already discorded" 88 mobOne
103        break
104    endif
105    
106    if timer sCheck >= 5000 
107        useskill 'Discordance'
108        wft 500
109        if insysmsg "What instrument"
110            if findtype "bamboo flute" backpack as inny
111                target inny
112            elseif findtype "tambourine" backpack as inny
113                target inny
114            elseif findtype "drum" backpack as inny
115                target inny
116            elseif findtype "lute" backpack as inny
117                target inny
118            elseif findtype "lap harp" backpack as inny
119                target inny
120            else
121                overhead "I do not have an inny" 34
122                wait 2000
123                replay
124            endif
125            wft 500
126        endif
127        if targetexists 
128            target mobOne
129            overhead "Discorded" 88 mobOne
130        endif
131        settimer sCheck 0
132        break
133    else
134        overhead "Waiting for skill cooldown..." 88
135        wait 500
136    endif
137    
138    
139    if hp <= autoBardHpCheck
140        if findtype "Yellow Potion" backpack as pot
141            dclick pot
142        endif
143    endif
144    
145    if diffhits >= 10 and not bandaging
146        if skill "healing" > 0 and findtype "clean bandage%s%" backpack
147            hotkey 'Bandage Self'
148        endif
149    endif
150endwhile
151
152while not dead mobTwo
153    
154    getlabel mobTwo descTwo
155
156    if "discord" in descTwo
157        overhead "Already discorded" 88 mobTwo
158        break
159    endif
160    
161    if timer sCheck >= 5000
162        useskill 'Discordance'
163        wft 500
164        if insysmsg "What instrument"
165            if findtype "bamboo flute" backpack as inny
166                target inny
167            elseif findtype "tambourine" backpack as inny
168                target inny
169            elseif findtype "drum" backpack as inny
170                target inny
171            elseif findtype "lute" backpack as inny
172                target inny
173            elseif findtype "lap harp" backpack as inny
174                target inny
175            else
176                overhead "I do not have an inny" 34
177                wait 2000
178                replay
179            endif
180            wft 500
181        endif
182        if targetexists 
183            target mobTwo
184            overhead "Discorded" 88 mobTwo
185        endif
186        settimer sCheck 0
187        break
188    else
189        overhead "Waiting for skill cooldown..." 88
190        wait 500
191    endif
192
193    if hp <= autoBardHpCheck
194        if findtype "Yellow Potion" backpack as pot
195            dclick pot
196        endif
197    endif
198    
199    if diffhits >= 10 and not bandaging
200        if skill "healing" > 0 and findtype "clean bandage%s%" backpack
201            hotkey 'Bandage Self'
202        endif
203    endif
204endwhile
205
206
207while not dead
208    
209    if hp <= autoBardHpCheck
210        if findtype "Yellow Potion" backpack as pot
211            dclick pot
212        endif
213    endif
214    
215    if diffhits >= 10 and not bandaging
216        if skill "healing" > 0 and findtype "clean bandage%s%" backpack
217            hotkey 'Bandage Self'
218        endif
219    endif
220    
221    
222    if skill "Discordance" > 0
223        if not findbuff "song of discordance" and timer sCheck >= 11000
224            useskill 'Discordance'
225            wft 500
226            target backpack
227            settimer sCheck 0
228        endif
229    endif
230
231    if skill "Provocation" > 0
232        if not findbuff "song of provocation" and timer sCheck >= 11000
233            useskill 'Provocation'
234            wft 500
235            target backpack
236            settimer sCheck 0
237        endif
238    endif
239
240    if skill "Peacemaking" > 0
241        if not findbuff "song of peacemaking" and timer sCheck >= 11000
242            useskill 'Peacemaking'
243            wft 500
244            target backpack
245            settimer sCheck 0
246        endif
247    endif
248    
249    wait 500
250
251endwhile