Back to "b" tags

Bapeth's Ocean Auto-Target Normal Cannon Fire by barryroser

Description: This script will Auto-Target your normal cannon fire

1# Bapeths Auto Regular Cannon Fire
2#
3# "****REQUIRED****"
4# Bapeths Ship Cooldowns xml file (copy paste into your characters Cooldown file)
5# "COPY" Link to get Bapeths Cooldowns "https://outlands.uorazorscripts.com/script/f1e41e2d-411e-461e-9fd0-c4fc2dc234b1"
6# "PASTE" FILE PATH : C:\Program Files (x86)\Ultima Online Outlands\ClassicUO\Data\Profiles\"YOUR-ACCOUNT-NAME"\UO Outlands\"YOUR-CHARACTER" Open file in notepad
7# The cooldowns with "Tigger Text" Must be adjusted to "your ships stats" and "your Wizard Grimoire upgrades" in the UO in game Options
8#
9# This script will automatically fire at the closest enemy ship
10# Use "Bapeths Manual Override" script to force a priority target
11#
12# Set "Range check Last Target" to "22" in Razor > Options tab > Targeting & Queues subtab
13# This will ensure your cannons can reach their target at max distance
14#
15# Script will loop into 'Master Background' if you have it in your script library
16#
17# Script starts here
18clearsysmsg     
19hotkey '> Interrupt'
20hotkey "Cancel Current Target"
21say '[FireCannons'
22getlabel backpack ping
23if insysmsg "fire its cannons again"
24    overhead "Cannons Cooling..." 38
25    if not cooldown "Disco" and skill "Discordance" >= 50
26        skill 'Discordance'
27        wft 500
28        hotkey 'Target self'
29        hotkey "Cancel Current Target"
30        getlabel backpack ping
31        if insysmsg "creatures"
32            overhead "Hear my sea song!" 91
33            cooldown "Disco" 5000
34        endif
35    endif
36    script 'Master Background'
37    stop
38endif
39if insysmsg "fire the cannons?"
40    overhead "Fire the Cannons!" 88
41    wft 500
42    target "Manual Override"
43    getlabel backpack ping
44    if insysmsg "Our cannons cannot reach that location."
45        overhead "Out of Range!" 38
46        script 'Master Background'
47        stop
48    elseif insysmsg "That is too far away."
49        overhead "Out of Range!" 38
50        script 'Master Background'
51        stop
52    elseif insysmsg "Those cannons are out of ammunition"
53        overhead "Out of Ammo!" 38
54        script 'Master Background'
55        stop
56    elseif insysmsg "You may not fire onto your own ship!"
57        overhead "Target is too close to fire on!" 38
58        script 'Master Background'
59        stop
60    elseif not targetexists 
61        cooldown "Cannons" 13500
62        overhead "Fire!" 88
63        if not cooldown 'PvP' and not cooldown "Disco" and skill "Discordance" >= 50
64            skill 'Discordance'
65            wft 500
66            hotkey 'Target self'
67            hotkey "Cancel Current Target"
68            getlabel backpack ping
69            if insysmsg "creatures"
70                overhead "Hear my sea song!" 91
71                cooldown "Disco" 5000
72            endif
73        endif
74        script 'Master Background'
75        stop
76    endif
77    hotkey "Target Closest Enemy Monster"
78    getlabel backpack ping
79    if insysmsg "Our cannons cannot reach that location."
80        overhead "Out of Range!" 38
81        script 'Master Background'
82        stop
83    elseif insysmsg "That is too far away."
84        overhead "Out of Range!" 38
85        script 'Master Background'
86        stop
87    elseif insysmsg "Those cannons are out of ammunition"
88        overhead "Out of Ammo!" 38
89        script 'Master Background'
90        stop
91    elseif insysmsg "You may not fire onto your own ship!"
92        overhead "Target is too close to fire on!" 38
93        script 'Master Background'
94        stop
95    elseif not targetexists 
96        cooldown "Cannons" 13500
97        overhead "Fire!" 88
98        if not cooldown "Disco" and skill "Discordance" >= 50
99            skill 'Discordance'
100            wft 500
101            hotkey 'Target self'
102            hotkey "Cancel Current Target"
103            getlabel backpack ping
104            if insysmsg "creatures"
105                overhead "Hear my sea song!" 91
106                cooldown "Disco" 5000
107            endif
108        endif
109        script 'Master Background'
110        stop
111    endif
112    hotkey "Target Closest Grey Monster"
113    getlabel backpack ping
114    if insysmsg "Our cannons cannot reach that location."
115        overhead "Out of Range!" 38
116        script 'Master Background'
117        stop
118    elseif insysmsg "That is too far away."
119        overhead "Out of Range!" 38
120        script 'Master Background'
121        stop
122    elseif insysmsg "Those cannons are out of ammunition"
123        overhead "Out of Ammo!" 38
124        script 'Master Background'
125        stop
126    elseif insysmsg "You may not fire onto your own ship!"
127        overhead "Target is too close to fire on!" 38
128        script 'Master Background'
129        stop
130    elseif not targetexists 
131        cooldown "Cannons" 13500
132        overhead "Fire!" 88
133        if not cooldown "Disco" and skill "Discordance" >= 50
134            skill 'Discordance'
135            wft 500
136            hotkey 'Target self'
137            hotkey "Cancel Current Target"
138            getlabel backpack ping
139            if insysmsg "creatures"
140                overhead "Hear my sea song!" 91
141                cooldown "Disco" 5000
142            endif
143        endif
144        script 'Master Background'
145        stop
146    endif
147    if insysmsg "No one matching"
148        overhead "Yar! Manual Target..." 88
149    elseif insysmsg "out of range"
150        overhead "Yar! Manual Target..." 88
151    endif
152    while targetexists 
153        //do nothing
154    endwhile
155    getlabel backpack ping
156    if insysmsg "Our cannons cannot reach that location."
157        overhead "Out of Range!" 38
158        script 'Master Background'
159        stop
160    elseif insysmsg "That is too far away."
161        overhead "Out of Range!" 38
162        script 'Master Background'
163        stop
164    elseif insysmsg "Those cannons are out of ammunition"
165        overhead "Out of Ammo!" 38
166        script 'Master Background'
167        stop
168    elseif insysmsg "You may not fire onto your own ship!"
169        overhead "Target is too close to fire on!" 38
170        script 'Master Background'
171        stop
172    elseif not targetexists 
173        cooldown "Cannons" 13500
174        overhead "Fire!" 88
175        if not cooldown "Disco" and skill "Discordance" >= 50
176            skill 'Discordance'
177            wft 500
178            hotkey 'Target self'
179            hotkey "Cancel Current Target"
180            getlabel backpack ping
181            if insysmsg "creatures"
182                overhead "Hear my sea song!" 91
183                cooldown "Disco" 5000
184            endif
185        endif
186        script 'Master Background'
187        stop
188    endif
189else 
190overhead "Cannons cooling..." 38
191endif
192if insysmsg "cannons finish reloading"
193overhead "Cannons reloading..." 38
194endif
195script 'Master Background'