Back to "provo" tags

Provoke Nearest work in progress by Jaseowns

Description: Check out finished script here: https://outlands.uorazorscripts.com/script/96b8c79e-8a3a-49cd-8272-c425779706ee

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