Back to "snippet" tags

Bapeth's Ship Slot Aux Regular Offensive (Bottom Row) by barryroser

Description: This is an auto target cannon fire script

1# Bapeths Ship Slot "Aux Regular Offensive" (Bottom Row)
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" in the UO in game Options
8#
9# Script will loop into 'Master Background' if you have it in your script library
10#
11# This script will automatically fire at the closest enemy ship
12# Use "Bapeths Manual Override" script to force a priority target
13#
14# Set "Range check Last Target" to "22" in Razor > Options tab > Targeting & Queues subtab
15# This will ensure your cannons can reach their target at max distance
16#
17# Script starts here
18clearsysmsg     
19hotkey '> Interrupt'
20hotkey "Cancel Current Target"
21say "[SecondAuxiliaryAbility"
22getlabel backpack ping
23if insysmsg "fire its cannons again"
24    overhead "Cannons Cooling..." 38
25    script 'Master Background'
26    stop
27endif
28if insysmsg "target this ability?"
29    overhead "Fire the Cannons!" 88
30    wft 500
31    target "Manual Override"
32    getlabel backpack ping
33    if insysmsg "Our cannons cannot reach that location."
34        overhead "Out of Range!" 38
35        script 'Master Background'
36        stop
37    elseif insysmsg "That is too far away."
38        overhead "Out of Range!" 38
39        script 'Master Background'
40        stop
41    elseif insysmsg "Those cannons are out of ammunition"
42        overhead "Out of Ammo!" 38
43        script 'Master Background'
44        stop
45    elseif insysmsg "You may not fire onto your own ship!"
46        overhead "Target is too close to fire on!" 38
47        script 'Master Background'
48        stop
49    elseif not targetexists 
50        cooldown "Cannons" 15000
51        overhead "*Aux Regular Ability*" 88
52        if not cooldown "Disco" and skill "Discordance" >= 50
53            skill 'Discordance'
54            wft 500
55            hotkey 'Target self'
56            hotkey "Cancel Current Target"
57            getlabel backpack ping
58            if insysmsg "creatures"
59                overhead "Hear my sea song!" 91
60                cooldown "Disco" 5000
61            endif
62        endif
63        script 'Master Background'
64        stop
65    endif
66    hotkey "Target Closest Enemy Monster"
67    getlabel backpack ping
68    if insysmsg "Our cannons cannot reach that location."
69        overhead "Out of Range!" 38
70        script 'Master Background'
71        stop
72    elseif insysmsg "That is too far away."
73        overhead "Out of Range!" 38
74        script 'Master Background'
75        stop
76    elseif insysmsg "Those cannons are out of ammunition"
77        overhead "Out of Ammo!" 38
78        script 'Master Background'
79        stop
80    elseif insysmsg "You may not fire onto your own ship!"
81        overhead "Target is too close to fire on!" 38
82        script 'Master Background'
83        stop
84    elseif not targetexists 
85        cooldown "Cannons" 15000
86        overhead "*Aux Regular Ability*" 88
87        if not cooldown "Disco" and skill "Discordance" >= 50
88            skill 'Discordance'
89            wft 500
90            hotkey 'Target self'
91            hotkey "Cancel Current Target"
92            getlabel backpack ping
93            if insysmsg "creatures"
94                overhead "Hear my sea song!" 91
95                cooldown "Disco" 5000
96            endif
97        endif
98        script 'Master Background'
99        stop
100    endif
101    hotkey "Target Closest Grey Monster"
102    getlabel backpack ping
103    if insysmsg "Our cannons cannot reach that location."
104        overhead "Out of Range!" 38
105        script 'Master Background'
106        stop
107    elseif insysmsg "That is too far away."
108        overhead "Out of Range!" 38
109        script 'Master Background'
110        stop
111    elseif insysmsg "Those cannons are out of ammunition"
112        overhead "Out of Ammo!" 38
113        script 'Master Background'
114        stop
115    elseif insysmsg "You may not fire onto your own ship!"
116        overhead "Target is too close to fire on!" 38
117        script 'Master Background'
118        stop
119    elseif not targetexists 
120        cooldown "Cannons" 15000
121        overhead "*Aux Regular Ability*" 88
122        if not cooldown "Disco" and skill "Discordance" >= 50
123            skill 'Discordance'
124            wft 500
125            hotkey 'Target self'
126            hotkey "Cancel Current Target"
127            getlabel backpack ping
128            if insysmsg "creatures"
129                overhead "Hear my sea song!" 91
130                cooldown "Disco" 5000
131            endif
132        endif
133        script 'Master Background'
134        stop
135    endif
136    if insysmsg "No one matching"
137        overhead "Yar! Manual Target..." 88
138    elseif insysmsg "out of range"
139        overhead "Yar! Manual Target..." 88
140    endif
141    while targetexists 
142        //do nothing
143    endwhile
144    getlabel backpack ping
145    if insysmsg "Our cannons cannot reach that location."
146        overhead "Out of Range!" 38
147        script 'Master Background'
148        stop
149    elseif insysmsg "That is too far away."
150        overhead "Out of Range!" 38
151        script 'Master Background'
152        stop
153    elseif insysmsg "Those cannons are out of ammunition"
154        overhead "Out of Ammo!" 38
155        script 'Master Background'
156        stop
157    elseif insysmsg "You may not fire onto your own ship!"
158        overhead "Target is too close to fire on!" 38
159        script 'Master Background'
160        stop
161    elseif not targetexists 
162        cooldown "Cannons" 15000
163        overhead "*Aux Regular Ability*" 88
164        if not cooldown "Disco" and skill "Discordance" >= 50
165            skill 'Discordance'
166            wft 500
167            hotkey 'Target self'
168            hotkey "Cancel Current Target"
169            getlabel backpack ping
170            if insysmsg "creatures"
171                overhead "Hear my sea song!" 91
172                cooldown "Disco" 5000
173            endif
174        endif
175        script 'Master Background'
176        stop
177    endif
178else
179overhead "Ability Cooling..." 38
180endif
181if insysmsg "cannons finish reloading"
182overhead "Cannons reloading..." 38
183endif
184script 'Master Background'