Back to "b" tags

Bapeth's Ocean Master Backround by barryroser

Description: This script is the default background script that should be running most of the time

In defensive mode (peace mode) it will auto heal, auto cure, top up bard buffs, auto spyglass, auto drop loot to hold, and auto pick up bombs on your own deck

In offensive mode (war mode) it will use necro abilities, auto spyglass, auto spell cast, auto skin corpses, auto heal, auto cure, auto cleanse, and auto loot enemy holds

1# Bapeths "Master Background" Ship Script
2#
3# March 26th 2025 - Pooner update - Fixed drop bug for loot going into ship hold + added fish
4# 
5# Script is desinged for Necro and Chiv  (Mage or Pooner)
6#
7# Use Bapeths "Manual Override" script to force any target priority
8#
9# SCRIPT MUST BE NAMED "Master Background" OR IT WONT LINK TO OTHER SCRIPTS
10#
11# "****REQUIRED****"
12# Bapeths Ship Cooldowns xml file (copy paste into your characters Cooldown file)
13# "COPY" Link to get Bapeths Cooldowns "https://outlands.uorazorscripts.com/script/f1e41e2d-411e-461e-9fd0-c4fc2dc234b1"
14# "PASTE" FILE PATH : C:\Program Files (x86)\Ultima Online Outlands\ClassicUO\Data\Profiles\"YOUR-ACCOUNT-NAME"\UO Outlands\"YOUR-CHARACTER" Open file in notepad
15# The cooldowns with "Tigger Text" Must be adjusted to "your ships stats" and "your Wizard Grimoire upgrades" in the UO in game Options
16# Set spyglass cooldown to your perferred radar inverval (default 7 is fastest possible) in the UO in game Options
17#
18# This script is the defaut backround script that should be running most of the time
19# In defensive mode (peace mode) it will auto heal, auto cure, top up bard buffs, auto spyglass, auto drop loot to hold, and auto pick up bombs on your own deck
20# In offensive mode (war mode) it will use necro abilities, auto spell cast, auto skin corpses, auto heal, auto cure, auto cleanse, auto explode pot, and auto loot enemy holds
21#
22# This script has a phase shift from Offensive to Defensive
23# Generally you should be in peace mode when on your own ship and in war mode when on an enemy ship
24# Use warmode on your own ship for fighting mobs on your own ship (bosses and fishing)
25# Toggle "war mode on" for offensive stance and "war mode off" for defensive stance
26#
27# This script can "phase shift" into single-target focus or multi-target focus
28# Default is always multi-target focus
29# Type "[Atlas" in game to spawn a free weightless "Atlas" in your bag
30# Double click the atlas while this script is playing to "phase shift"
31# Hotkey "Grants the player an Atlas" in razor hotkey tab if you dont want to doubleclick
32#
33# "Auto Loot Control"
34# This script uses razor "Auto-Queue Object Delay" setting
35# Make sure this setting is turned ON in the razor Options tab > Targeting & Queues sub-tab
36# And set "object delay to 503" AUTO LOOTING WILL BE SLOW IF YOU DONT DO THIS!
37#
38# Script starts here
39
40if skill "Healing" >= 20 
41    if hp = maxhp
42        //donothing
43    elseif not bandaging and findtype 3617 backpack
44        hotkey "Bandage Self"
45        cooldown "Bandage" 7000
46    endif
47endif
48
49while poisoned and not targetexists 
50    if findtype "Orange Potion" backpack as curepot
51        dclick curepot
52        pause 500
53        getlabel backpack ping
54    endif
55endwhile
56
57if skill "Fishing" >= 80
58    if not varexist "MainPoon"
59        if findlayer self lefthand as pooninhand
60            @setvar "MainPoon" pooninhand
61        endif
62    endif
63    if varexist "MainPoon" and not findlayer self lefthand
64        dclick "MainPoon"
65    endif
66endif
67    
68if skill "Alchemy" >= 0 and not hidden and not targetexists 
69    if not findbuff "Strength" and findtype "White Potion" backpack as wpot
70        dclick wpot
71        pause 500
72        getlabel backpack ping
73    endif
74    if not findbuff "Agility" and findtype "Blue Potion" backpack as bpot
75        dclick bpot
76        pause 500
77        getlabel backpack ping
78    endif
79    if not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as mpot
80        dclick mpot
81        pause 500
82        getlabel backpack ping
83    endif
84endif
85
86if not targetexists and not hidden and not casting and stam < maxstam and findtype "Red Potion" backpack as redpot
87    while queued
88        //donothing
89    endwhile
90    dclick redpot
91endif
92
93if hp < 77 and not hidden and not timerexists brew and not targetexists and findbuff "Bleed" and findtype 50675 backpack as cbrew
94    clearsysmsg 
95    while queued
96        //donothing
97    endwhile
98    dclick cbrew
99    getlabel backpack ping
100    if insysmsg "You drink a cleansing brew"
101        createtimer brew
102    endif
103elseif hp < 77 and not hidden and not timerexists brew and not targetexists and findbuff "Diseased" and findtype 50675 backpack as cbrew
104    while queued
105        //donothing
106    endwhile
107    dclick cbrew
108    getlabel backpack ping
109    if insysmsg "You drink a cleansing brew"
110        createtimer brew
111    endif
112endif
113if timerexists brew
114    if timer brew >= 120000
115        removetimer brew
116    endif
117endif
118
119if insysmsg "You now feel familiar with the area"
120    cooldown "Adv Pack" 720000
121endif
122if findtype 3834 backpack 0 as bbook
123    @ignore bbook
124endif
125if gumpexists 341416395 and not timerexists changetarget
126    gumpclose 341416395
127    createtimer changetarget
128    overhead "Closest Target Enabled" 87
129elseif gumpexists 341416395 and timerexists changetarget
130    gumpclose 341416395
131    removetimer changetarget
132    overhead "Random Target Enabled" 2085
133endif
134
135if not timerexists oceanscan
136    createtimer oceanscan
137    settimer oceanscan 300
138endif
139
140if not timerexists checktarget
141    createtimer checktarget
142    settimer checktarget 18000
143endif
144
145if timerexists changetarget and timer checktarget >= 18000
146    overhead "Closest Target Enabled" 87
147    settimer checktarget 0
148elseif not timerexists changetarget and timer checktarget >= 18000
149    overhead "Random Target Enabled" 2085
150    settimer checktarget 0
151endif
152
153if not timerexists sacredjourncheck
154    createtimer sacredjourncheck
155    settimer sacredjourncheck 75000
156endif
157
158if skill "Chivalry" >= 80 and timer sacredjourncheck >= 75000
159    if not findbuff "Sacred Journey"
160    overhead "A sacred jounrey awaits..." 201
161    endif
162    settimer sacredjourncheck 0
163endif
164
165if skill "Arcane" >= 80 and not gumpexists 3954121934
166    say '[abilityhotbar'
167    waitforgump 3954121934 500
168endif
169
170if skill "Chivalry" >= 80 and not gumpexists 3954121934
171    say '[abilityhotbar'
172    waitforgump 3954121934 500
173endif
174
175if insysmsg "repaired"
176    gumpclose 1271619955
177    say "[Repair"
178endif
179
180if not warmode
181    if not queued and not targetexists and not findbuff "Actively Meditating" and not cooldown "Spyglass" and hp >= 66 and findtype "spyglass" backpack as bspy
182        gumpclose 2890020940
183        dclick bspy
184        wft 500
185        target self
186        hotkey "Cancel Current Target"
187        waitforgump 2890020940 500
188        if gumpexists 2890020940
189            gumpresponse 4
190            waitforgump 2890020940 500
191        endif
192        if gumpexists 2890020940
193            overhead 'Yarr!' 67
194        endif        
195    endif
196    
197    if findtype 3834 backpack 0 as bbook
198        @ignore bbook
199    endif
200    if not timerexists petguard
201        createtimer petguard
202        settimer petguard 5000
203    endif
204    if followers >= 1 and timer petguard >= 14000 and not findbuff "Actively Meditating"
205        say "all guard me" 45
206        settimer petguard 0
207    endif
208    
209    if skill "Magery" >= 80
210        if timerexists reflect
211            if timer reflect > 30000
212                overhead "Magic Reflect is ready..." 201
213                settimer reflect 12000
214            endif
215        endif
216        if findbuff "Magic Reflection" and timerexists reflect
217            removetimer reflect
218        endif
219        if not findbuff "Magic Reflection" and not timerexists reflect
220            createtimer reflect
221        endif
222    endif
223    if skill "Magery" >= 20
224        if timerexists reactive
225            if timer reactive > 30000
226                overhead "Reactive Armor is ready..." 139
227                settimer reactive 13500
228            endif
229        endif
230        if findbuff "Reactive Armor" and timerexists reactive
231            removetimer reactive
232        endif
233        if not findbuff "Reactive Armor" and not timerexists reactive
234            createtimer reactive
235        endif
236    endif
237    if skill "Tracking" >= 10 and not findbuff "Tracking Hunting"
238        skill 'tracking'
239        waitforgump 4267467659 500
240        gumpresponse 6
241        pause 250
242        gumpclose 4267467659
243        cooldown "Disco" 10000
244    endif
245    if not targetexists 
246        while hp < 33 and skill "Magery" >= 30
247            hotkey 'Cancel Current Target'
248            cast 'Heal'
249            wft 2500
250            hotkey 'Target Self'
251            hotkey 'Cancel Current Target'
252            pause 250
253        endwhile
254        if hp < 77 and findtype "Yellow Potion" backpack as healpot
255            dclick healpot
256        endif
257        if hp < 55 and skill "Magery" >= 60
258            hotkey 'Cancel Current Target'
259            cast 'Greater Heal'
260            wft 3500
261            hotkey 'Target self'
262            hotkey 'Cancel Current Target'
263            pause 250
264        endif
265        if hp < 83 and skill "Magery" >= 30
266            hotkey 'Cancel Current Target'
267            cast 'Heal'
268            wft 2500
269            hotkey 'Target Self'
270            hotkey 'Cancel Current Target'
271            pause 250   
272        endif
273        while poisoned and not targetexists 
274            if findtype "Orange Potion" backpack as curepot
275                dclick curepot
276        elseif mana >= 6 and skill "Magery" >= 40
277                cast "Cure"
278                wft 2500
279                target self
280                hotkey 'Cancel Current Target'
281            endif
282        endwhile
283        if skill "Magery" >= 80 and mana <= 20 and not findbuff "Actively Meditating" and not cooldown "Magic Mushroom"
284            dclicktype 'mushroom'
285        endif
286        if skill "Provocation" >= 10 and not findbuff "Actively Meditating" and not cooldown "Disco" and not cooldown "Song of Discord" and not cooldown "Song of Provocation" and not cooldown "Song of Peacemaking" and not findbuff "Song of provocation"
287            hotkey "Cancel Current Target"    
288            useskill "Provocation"
289            wft 500
290            targetrelloc -1 -1
291        endif
292        if skill "Discordance" >= 10 and not findbuff "Actively Meditating" and not cooldown "Disco" and not cooldown "Song of Discord" and not cooldown "Song of Provocation" and not cooldown "Song of Peacemaking" and not findbuff "Song of discordance"
293            hotkey "Cancel Current Target"
294            useskill "Discordance"
295            wft 500
296            targetrelloc -1 -1
297        endif
298        if not findbuff "Actively Meditating" and not findbuff "Cunning" and mana >= 6 and skill "Magery" >= 40
299            cast "Cunning"
300            wft 1500
301            target self
302            hotkey 'Cancel Current Target'
303        endif
304    endif
305    if skill "Magery" >= 50 and followers = 0 and timer petguard >= 12500
306        overhead 'I should get some followers...' 39
307        settimer petguard 0
308    endif
309    if skill "Necromancy" >= 80 and not gumpexists 622436516
310        say [necromancyhotbar
311        pause 250
312    endif
313    if skill "Chivalry" >= 80 and not gumpexists 1387930325
314        say [chivalryhotbar
315        pause 250
316    endif
317    if findtype "5188" ground -1 -1 2 as bomb
318        dclick bomb
319    endif
320    if findtype "5188" ground -1 -1 22 as bomb
321        overhead "***BOMB***" 34 bomb
322    endif
323       
324    if timer oceanscan >= 300 and skill "Arcane" >= 80 and cooldown "Fray"
325        clearsysmsg 
326        if varexist "oceantarget"
327            @unsetvar "oceantarget"
328        endif
329        hotkey "Next Enemy Monster Target"
330        if not insysmsg "No one matching"
331            @setvar "oceantarget" lasttarget 
332        endif
333        hotkey "Next Grey Monster Target"
334        if not insysmsg "No one matching"
335            @setvar "oceantarget" lasttarget 
336        endif
337        hotkey "Next Murderer Monster Target"
338        if not insysmsg "No one matching"
339            @setvar "oceantarget" lasttarget 
340        endif
341        settimer oceanscan 0
342    elseif timer oceanscan >= 300 and skill "Fishing" >= 80 and cooldown "Fray"
343        clearsysmsg 
344        if varexist "oceantarget"
345            @unsetvar "oceantarget"
346        endif
347        hotkey "Next Enemy Monster Target"
348        if not insysmsg "No one matching"
349            @setvar "oceantarget" lasttarget 
350        endif
351        hotkey "Next Grey Monster Target"
352        if not insysmsg "No one matching"
353            @setvar "oceantarget" lasttarget 
354        endif
355        hotkey "Next Murderer Monster Target"
356        if not insysmsg "No one matching"
357            @setvar "oceantarget" lasttarget 
358        endif
359        settimer oceanscan 0
360    endif
361    if not timerexists changetarget and find "oceantarget" ground -1 -1 12 and not findbuff "Actively Meditating" and cooldown "Fray"
362        if find "Manual Override" ground and noto "Manual Override" = hostile
363            attack "Manual Override"
364        elseif noto "Manual Override" = criminal
365            attack "Manual Override"
366        elseif noto "Manual Override" = enemy
367            attack "Manual Override"
368        elseif noto "Manual Override" = murderer
369            attack "Manual Override"
370        else       
371            attack "oceantarget"
372        endif
373    elseif timerexists changetarget and find "oceantarget" ground -1 -1 12 and not findbuff "Actively Meditating" and cooldown "Fray"
374        if find "Manual Override" ground and noto "Manual Override" = hostile
375            attack "Manual Override"
376        elseif noto "Manual Override" = criminal
377            attack "Manual Override"
378        elseif noto "Manual Override" = enemy
379            attack "Manual Override"
380        elseif noto "Manual Override" = murderer
381            attack "Manual Override"
382        else       
383            hotkey 'Target Closest Enemy Monster'
384            hotkey 'Target Closest Grey Monster'
385            hotkey 'Target Closest Murderer Monster'
386            attack lasttarget 
387            hotkey "Cancel Current Target"
388        endif        
389    endif
390    
391    if find "shiphold" ground -1 -1 1
392        clearsysmsg 
393    while findtype "cathedral tapestry|Darkscale tapestry|large painting|landscape painting|portrait painting|hieroglyph|figurine|statue|44987|49730|47107|18653|45127|47103|29363|47105|29361|3712|3648|3650|3708|3648|2475|3649|29833|29832|43453|5899|47109|45250|41509|43447|18657|4025|51308|45156|51304|45214|28769|28799|28803|28765|45211|45248|51259|45220|51328|45218|3842|51327|45222|45241|51336|51375|45282|54722|45255|45246|28795|44983|45235|45251|45238|51258|51314|28761|45236|51260|54718|18400|45252|18656|47111|3839|45239|45242|45254|45281|45247|42241|45216|28775|2594|51321|3838|51318|5901|5905|5903|48407|51302|4248|27611|15296|43166|5359|5981|4026|3985|25359|17686|3836|17087|5356|29030|24434|22336|29036|3843|29025|51098|29034|8826|51094|576|3827|22326|45315|3891|2539|39898|39896|39892|39918|39911|39916|39897|39905|39891|39917|39912|39909|39889|31047|31017|31049|31019|31055|31051|31053|31025|31027|31031|31041|54717|31021|31011|31023|31029|31043|31003|31035|31033|31045|31037|31002|20006|31169|31006|30999|31012|31009|30996|7109|7107|31128|31188|20014|31014|31004|31142|31001|31000|37181|31010|30998|31172|30988|30997|31038|31141|7947|20008|31005|31191|31008|31007|30994|30993|31182|30989|20012|31186|31178|31015|30991|20010|20016|31184|31190|30990|30995|31176|31180|30992|31130|5207|7031|7026|7034|7033|7027|7035|7029|5078|5063|5059|5105|5060|5138|5129|5201|5142|5143|5076|5106|7610|5139|5090|5103|5132|7177|5061|7181|7179|3920|5042|5127|5117|5185|5125|3938|5177|3937|5044|5121|3915|3909|3568|3932|5123|5144|5119|5056|5135|5187|5074|5089|3934|3913|3917|3721|5075|5046|5049|7170|5146|5205|5203|5115|5204|5040|5179|5070|5182|5085|5181|3719|7173|5131|3911|5101|7175|7169|3713|5112|22187|9917|3859|3862|3878|3865|3856|3873|3877|3834|3742|3762|3740|3763|10245|3572|3573|3571|3885|7127|4225|12686|19985|19981|19984|19982|19983|19991|19989|19986|19987|19988|19994|19995|19992|19993|19990|19980|19977|19976|19978|7154|19979|17619|17617|2508|7710|3861|3821" backpack as bitem
394            drop backpack
395            lift bitem 60000
396            drop shiphold -1 -1 0
397            while queued
398                //dotnothing
399            endwhile
400        endwhile
401    endif
402elseif warmode 
403    if skill "Healing" >= 20 
404        if hp = maxhp
405            //donothing
406        elseif not bandaging and findtype 3617 backpack
407            hotkey "Bandage Self"
408        endif
409    endif
410
411    if skill "Arcane" >= 80
412        if not timerexists leylinetimer 
413            createtimer leylinetimer
414            settimer leylinetimer 3000
415        endif
416        if mana <= 80 and timer leylinetimer >= 3000 and find "oceantarget" ground -1 -1 12
417            say "[weaponability2"
418            settimer leylinetimer 0
419        endif
420    endif
421    
422    if skill "Fishing" >= 80
423        if not timerexists scouragetimer 
424            createtimer scouragetimer
425            settimer scouragetimer 3000
426        endif
427        if mana <= 80 and timer scouragetimer >= 3000 and find "oceantarget" ground -1 -1 12
428            say "[weaponability2"
429            settimer scouragetimer 0
430        endif
431    endif
432    
433    if gumpexists 341416395 and not timerexists changetarget
434        gumpclose 341416395
435        createtimer changetarget
436        overhead "Closest Target Enabled" 87
437    elseif gumpexists 341416395 and timerexists changetarget
438        gumpclose 341416395
439        removetimer changetarget
440        overhead "Random Target Enabled" 2085
441    endif
442    
443    if timer oceanscan >= 300 and skill "Arcane" >= 80
444        clearsysmsg 
445        if varexist "oceantarget"
446            @unsetvar "oceantarget"
447        endif
448        hotkey "Next Enemy Monster Target"
449        if not insysmsg "No one matching"
450            @setvar "oceantarget" lasttarget 
451        endif
452        hotkey "Next Grey Monster Target"
453        if not insysmsg "No one matching"
454            @setvar "oceantarget" lasttarget 
455        endif
456        hotkey "Next Murderer Monster Target"
457        if not insysmsg "No one matching"
458            @setvar "oceantarget" lasttarget 
459        endif
460        settimer oceanscan 0
461    elseif timer oceanscan >= 300 and skill "Fishing" >= 80
462        clearsysmsg 
463        if varexist "oceantarget"
464            @unsetvar "oceantarget"
465        endif
466        hotkey "Next Enemy Monster Target"
467        if not insysmsg "No one matching"
468            @setvar "oceantarget" lasttarget 
469        endif
470        hotkey "Next Grey Monster Target"
471        if not insysmsg "No one matching"
472            @setvar "oceantarget" lasttarget 
473        endif
474        hotkey "Next Murderer Monster Target"
475        if not insysmsg "No one matching"
476            @setvar "oceantarget" lasttarget 
477        endif
478        settimer oceanscan 0
479    endif
480    if not timerexists changetarget and find "oceantarget" ground -1 -1 12 and not findbuff "Actively Meditating"
481        if find "Manual Override" ground and noto "Manual Override" = hostile
482            attack "Manual Override"
483        elseif noto "Manual Override" = criminal
484            attack "Manual Override"
485        elseif noto "Manual Override" = enemy
486            attack "Manual Override"
487        elseif noto "Manual Override" = murderer
488            attack "Manual Override"
489        else       
490            attack "oceantarget"
491        endif
492    elseif timerexists changetarget and find "oceantarget" ground -1 -1 12 and not findbuff "Actively Meditating"
493        if find "Manual Override" ground and noto "Manual Override" = hostile
494            attack "Manual Override"
495        elseif noto "Manual Override" = criminal
496            attack "Manual Override"
497        elseif noto "Manual Override" = enemy
498            attack "Manual Override"
499        elseif noto "Manual Override" = murderer
500            attack "Manual Override"
501        else       
502            hotkey 'Target Closest Enemy Monster'
503            hotkey 'Target Closest Grey Monster'
504            hotkey 'Target Closest Murderer Monster'
505            attack lasttarget 
506            hotkey "Cancel Current Target"
507        endif        
508    endif
509    
510    if not poisoned and not queued and not targetexists and not findbuff "Actively Meditating" and not cooldown "Spyglass" and hp >= 77 and findtype "spyglass" backpack as bspy
511        gumpclose 2890020940
512        dclick bspy
513        wft 500
514        target self
515        hotkey "Cancel Current Target"
516        waitforgump 2890020940 500
517        if gumpexists 2890020940
518            gumpresponse 4
519            waitforgump 2890020940 500
520        endif
521        if gumpexists 2890020940
522            overhead 'Yarr!' 67
523        endif        
524    endif
525    
526    if not targetexists 
527        while hp < 33 and skill "Magery" >= 30
528            hotkey 'Cancel Current Target'
529            cast 'Heal'
530            wft 2500
531            hotkey 'Target Self'
532            hotkey 'Cancel Current Target'
533            pause 250
534        endwhile
535        if hp < 77 and findtype "Yellow Potion" backpack as healpot
536            dclick healpot
537        endif
538        if hp < 55 and skill "Magery" >= 60
539            hotkey 'Cancel Current Target'
540            cast 'Greater Heal'
541            wft 3500
542            hotkey 'Target self'
543            hotkey 'Cancel Current Target'
544            pause 250
545        endif
546        if hp < 83 and skill "Magery" >= 30
547            hotkey 'Cancel Current Target'
548            cast 'Heal'
549            wft 2500
550            hotkey 'Target Self'
551            hotkey 'Cancel Current Target'
552            pause 250   
553        endif
554        while poisoned and not targetexists 
555            if findtype "Orange Potion" backpack as curepot
556                dclick curepot
557        elseif mana >= 6 and skill "Magery" >= 40
558                cast "Cure"
559                wft 2500
560                target self
561                hotkey 'Cancel Current Target'
562            endif
563        endwhile
564        if hp < 77 and not hidden and not timerexists brew and not targetexists and findbuff "Bleed" and findtype 50675 backpack as cbrew
565            clearsysmsg 
566            while queued
567                //donothing
568            endwhile
569            dclick cbrew
570            getlabel backpack ping
571            if insysmsg "You drink a cleansing brew"
572                createtimer brew
573            endif
574        elseif hp < 77 and not hidden and not timerexists brew and not targetexists and findbuff "Diseased" and findtype 50675 backpack as cbrew
575            while queued
576                //donothing
577            endwhile
578            dclick cbrew
579            getlabel backpack ping
580            if insysmsg "You drink a cleansing brew"
581                createtimer brew
582            endif
583        endif
584        if timerexists brew
585            if timer brew >= 120000
586                removetimer brew
587            endif
588        endif
589        if skill "Magery" >= 80 and mana <= 80 and not findbuff "Actively Meditating" and not cooldown "Magic Mushroom"
590            dclicktype 'mushroom'
591        endif
592    endif
593    
594    if skill "Necromancy" >= 80 and not gumpexists 622436516
595        say [necromancyhotbar
596        pause 250
597    endif
598    if skill "Chivalry" >= 80 and not gumpexists 1387930325
599        say [chivalryhotbar
600        pause 250
601    endif
602    
603    if findtype "5188" ground -1 -1 22 as bomb
604        overhead "***BOMB***" 34 bomb
605    endif
606    
607    if timerexists openhull
608        removetimer openhull
609    endif
610    if find "shiphold" ground -1 -1 1
611        //donothing
612    elseif not queued and findtype "hatch" ground -1 -1 1 as mobship
613        dclick mobship
614        getlabel backpack ping
615        while findtype "cathedral tapestry|Darkscale tapestry|large painting|landscape painting|portrait painting|hieroglyph|figurine|statue|44987|49730|47107|18653|45127|47103|29363|47105|29361|43453|5899|47109|45250|41509|43447|18657|4025|3712|3648|3650|3708|3648|2475|3649|29833|29832|51308|45156|51304|45214|28769|28799|28803|28765|45211|45248|51259|45220|51328|45218|3842|51327|45222|45241|51336|51375|45282|54722|45255|45246|28795|44983|45235|45251|45238|51258|51314|28761|45236|51260|54718|18400|45252|18656|47111|3839|45239|45242|45254|45281|45247|42241|45216|28775|2594|51321|3838|51318|5901|5905|5903|48407|51302|4248|27611|15296|43166|5359|5981|4026|3985|25359|17686|3836|17087|5356|29030|24434|22336|29036|3843|29025|51098|29034|8826|51094|576|3827|22326|45315|3891|2539|39898|39896|39892|39918|39911|39916|39897|39905|39891|39917|39912|39909|39889|31047|31017|31049|31019|31055|31051|31053|31025|31027|31031|31041|54717|31021|31011|31023|31029|31043|31003|31035|31033|31045|31037|31002|20006|31169|31006|30999|31012|31009|30996|7109|7107|3922|31128|31188|20014|31014|31004|31142|31001|31000|37181|31010|30998|31172|30988|30997|31038|31141|7947|20008|31005|31191|31008|31007|30994|30993|31182|30989|20012|31186|31178|31015|30991|20010|20016|31184|31190|30990|30995|31176|31180|30992|31130|5207|7031|7026|7034|7033|7027|7035|7029|5078|5063|5059|5105|5060|5138|5129|5201|5142|5143|5076|5106|7610|5139|5090|5103|5132|7177|5061|7181|7179|3920|5042|5127|5117|5185|5125|3938|5177|3937|5044|5121|3915|3909|3568|3932|5123|5144|5119|5056|5135|5187|5074|5089|3934|3913|3917|3721|5075|5046|5049|7170|5146|5205|5203|5115|5204|5040|5179|5070|5182|5085|5181|3719|7173|5131|3911|5101|7175|7169|3713|5112|22187|9917|3859|3862|3878|3865|3856|3873|3877|3834|3742|3762|3740|3763|10245|3572|3573|3571|3885|7127|4225|12686|19985|19981|19984|19982|19983|19991|19989|19986|19987|19988|19994|19995|19992|19993|19990|19980|19977|19976|19978|7154|19979|3861|3821" mobship as bitem
616            if not timerexists openhull
617                createtimer openhull
618                overhead "Yarr the booty be mine!" 2091
619            endif
620            hotkey 'Grab Item' 
621            target bitem
622            while queued
623                //donothing
624            endwhile
625        endwhile
626    endif
627
628    if not find "oceantarget" ground -1 -1 12 and timer oceanscan >= 300
629        clearsysmsg 
630        hotkey "Next Grey Monster Target"
631        if not insysmsg "No one matching"
632            @setvar "oceantarget" lasttarget 
633        endif
634        hotkey "Next Murderer Monster Target"
635        if not insysmsg "No one matching"
636            @setvar "oceantarget" lasttarget 
637        endif
638        settimer oceanscan 0
639    endif
640    
641    if find "oceantarget" ground -1 -1 12 and not findbuff "Actively Meditating" and not cooldown "Disco" and skill "Discordance" >= 50
642        clearsysmsg 
643        hotkey 'Cancel Current Target'
644        skill 'Discordance'
645        wft 500
646        if not timerexists changetarget
647            hotkey 'Target self'
648        elseif timerexists changetarget
649            // I took Manual Override out here because single target discord was hitting the ship hamburger bars.  I could simply retarget the crew I want to hit but its an extra step when I can just place myself next to closest.  This may have been needed for boss fights.
650            hotkey 'Target Closest Grey Monster'
651            hotkey 'Target Closest Murderer Monster'
652        endif
653        hotkey 'Cancel Current Target'
654        getlabel backpack ping
655        if insysmsg  "Song of Discordance"
656            overhead "Argh!! Manual Override is not on a target that can be Discorded" 38
657        endif
658        if insysmsg "creatures"
659            overhead "Hear my sea song!" 91
660            cooldown "Disco" 5000
661        elseif insysmsg "You play successfully"
662            overhead "Hear my sea song!" 91
663            cooldown "Disco" 5000
664        elseif insysmsg "You fail to discord"
665            overhead "Argh, I missed a note..." 38
666            cooldown "Disco" 5000
667            if cooldown "Barding Reset"
668                cooldown "Disco" 0
669            replay
670            endif
671        endif
672    endif
673    
674    if skill "Necromancy" >= 80 and findtype "corpse" ground -1 -1 12
675        if ingump '20/' 622436516
676            createtimer pain
677        elseif ingump '19/' 622436516
678            createtimer pain
679        elseif ingump '18/' 622436516
680            createtimer pain
681        elseif ingump '17/' 622436516
682            createtimer pain
683        elseif ingump '16/' 622436516
684            createtimer pain
685        elseif ingump '15/' 622436516
686            createtimer pain
687        elseif ingump '14/' 622436516
688            createtimer pain
689        elseif ingump '13/' 622436516
690            createtimer pain
691        elseif ingump '12/' 622436516
692            createtimer pain
693        elseif ingump '11/' 622436516
694            createtimer pain
695        elseif ingump '10/' 622436516
696            createtimer pain
697        elseif ingump '9/' 622436516
698            createtimer pain
699        elseif ingump '8/' 622436516
700            createtimer pain
701        elseif ingump '7/' 622436516
702            createtimer pain
703        elseif ingump '6/' 622436516
704            createtimer pain
705        elseif ingump '5/' 622436516
706            createtimer pain
707        endif
708        if skill "Necromancy" >= 80 and timerexists pain and find "oceantarget" ground -1 -1 12 and not findbuff "Actively Meditating" and not cooldown 'Pain Spike'
709            clearsysmsg
710            if targetexists 
711                hotkey 'Cancel Current Target'
712            endif
713            say '[Painspike'
714            wft 500
715            hotkey 'Target Closest Grey Monster'
716            hotkey 'Target Closest Murderer Monster'
717            getlabel backpack ping
718            if insysmsg "Unholy"
719                cooldown "Pain Spike" 30000
720            endif
721        removetimer pain
722        endif
723    endif
724    if find "oceantarget" ground -1 -1 12
725        clearsysmsg 
726        if skill "Alchemy" >= 80 and not queued and not cooldown "Explosion Potion" and findtype "Purple Potion" backpack as purp
727            clearsysmsg 
728            dclick purp
729            wft 500
730            hotkey 'Target Closest Grey Monster'
731            hotkey 'Target Closest Murderer Monster'
732            getlabel backpack ping
733            if insysmsg "Your explosion potion sticks to your target."
734                cooldown "Explosion Potion" 15000
735            else 
736                cooldown "Explosion Potion" 15000
737                hotkey '> Interrupt'
738                hotkey "Cancel Current Target"
739                dclicktype "Purple Potion"
740                wft 500
741                while targetexists 
742                    overhead "THROW IT OVERBOARD!!!" 38
743                endwhile
744            endif
745            hotkey "Cancel Current Target"
746        elseif skill "Magery" >= 50 and not queued and mana >= 9 and not cooldown "Explosion Potion" and findtype "Purple Potion" backpack as purp
747            clearsysmsg
748            cast "Telekinesis"
749            wft 3000
750            hotkey 'Target Closest Grey Monster'
751            hotkey 'Target Closest Murderer Monster'
752            @setvar "telemastertarget" lasttarget 
753            getlabel backpack ping
754            if insysmsg "Target cannot be seen"
755                cooldown "Explosion Potion" 15000
756            elseif insysmsg "any explosive potions thrown" and not queued and find "telemastertarget" ground -1 -1 12
757                dclick purp
758                wft 500
759                lasttarget 
760                getlabel backpack ping
761            endif
762            if insysmsg "Your explosion potion sticks to your target."
763                cooldown "Explosion Potion" 15000
764            elseif not cooldown "Explosion Potion" and insysmsg "Where should I throw this potion?"
765                cooldown "Explosion Potion" 15000
766                hotkey '> Interrupt'
767                hotkey "Cancel Current Target"
768                dclicktype "Purple Potion"
769                wft 500
770                while targetexists 
771                    overhead "THROW IT OVERBOARD!!!" 38
772                endwhile
773            endif
774            hotkey "Cancel Current Target"
775        endif
776        if skill "Necromancy" >= 80 and find "oceantarget" ground -1 -1 12
777            if ingump '20/' 622436516
778                createtimer necroab
779            elseif ingump '19/' 622436516
780                createtimer necroab
781            elseif ingump '18/' 622436516
782                createtimer necroab
783            elseif ingump '17/' 622436516
784                createtimer necroab
785            elseif ingump '16/' 622436516
786                createtimer necroab
787            elseif ingump '15/' 622436516
788                createtimer necroab
789            elseif ingump '14/' 622436516
790                createtimer necroab
791            elseif ingump '13/' 622436516
792                createtimer necroab
793            elseif ingump '12/' 622436516
794                createtimer necroab
795            endif
796        endif
797        if skill "Necromancy" >= 80 and timerexists necroab and find "oceantarget" ground -1 -1 12
798            if not cooldown "Strangle"
799                pause 550
800                say '[Strangle'
801                cooldown "Strangle" 30000
802                pause 550
803            endif
804            if not cooldown "Evil Omen"
805                say '[EvilOmen'
806                cooldown "Evil Omen" 30000
807                pause 550
808            endif
809            if not cooldown "Corpse Skin"
810                say '[CorpseSkin'
811                cooldown "Corpse Skin" 30000
812                pause 550
813            endif
814            removetimer necroab
815        endif
816        
817        if skill "Chivalry" >= 80 and find "oceantarget" ground -1 -1 12
818            if ingump '20/' 1387930325
819                createtimer chivab
820            elseif ingump '19/' 1387930325
821                createtimer chivab
822            elseif ingump '18/' 1387930325
823                createtimer chivab
824            elseif ingump '17/' 1387930325
825                createtimer chivab
826            elseif ingump '16/' 1387930325
827                createtimer chivab
828            elseif ingump '15/' 1387930325
829                createtimer chivab
830            elseif ingump '14/' 1387930325
831                createtimer chivab
832            elseif ingump '13/' 1387930325
833                createtimer chivab
834            elseif ingump '12/' 1387930325
835                createtimer chivab
836            elseif ingump '11/' 1387930325
837                createtimer chivab
838            elseif ingump '10/' 1387930325
839                createtimer chivab
840            elseif ingump '9/' 1387930325
841                createtimer chivab
842            endif
843        endif
844        if skill "Chivalry" >= 80 and timerexists chivab and find "oceantarget" ground -1 -1 12
845            if not findbuff "Divine Fury"
846                say '[DivineFury'
847                pause 550
848            endif
849            if not findbuff "Enemy of One"
850                say '[EnemyofOne'
851                pause 550
852            endif
853            if not findbuff "Consecrate Weapon"
854                say '[ConsecrateWeapon'
855                pause 550
856            endif
857            removetimer chivab
858        endif        
859        
860        if skill "Magery" >= 80
861            if not cooldown "Magic Arrow" and mana >= 4
862                hotkey 'Cancel Current Target'
863                cast "Magic Arrow"
864                wft 1000
865                if not timerexists changetarget
866                    hotkey 'Target Random Grey Monster'
867                    hotkey 'Target Random Murderer Monster'
868                elseif timerexists changetarget
869                    hotkey 'Target Closest Grey Monster'
870                    hotkey 'Target Closest Murderer Monster'
871                endif
872            elseif not cooldown "Harm" and mana >= 6
873                hotkey 'Cancel Current Target'
874                cast "Harm"
875                wft 1500
876                if not timerexists changetarget
877                    hotkey 'Target Random Grey Monster'
878                    hotkey 'Target Random Murderer Monster'
879                elseif timerexists changetarget
880                    hotkey 'Target Closest Grey Monster'
881                    hotkey 'Target Closest Murderer Monster'
882                endif
883            elseif not cooldown "Lightning" and mana >= 11
884                hotkey 'Cancel Current Target'
885                cast "Lightning"
886                wft 2500
887                if not timerexists changetarget
888                    hotkey 'Target Random Grey Monster'
889                    hotkey 'Target Random Murderer Monster'
890                elseif timerexists changetarget
891                    hotkey 'Target Closest Grey Monster'
892                    hotkey 'Target Closest Murderer Monster'
893                endif
894            elseif not cooldown "Chain Lightning" and cooldown "Lightning" and cooldown "Harm" and cooldown "Magic Arrow" and mana >= 40
895                hotkey 'Cancel Current Target'
896                cast "Chain Lightning"
897                wft 3000
898                if not timerexists changetarget
899                    hotkey 'Target Random Grey Monster'
900                    hotkey 'Target Random Murderer Monster'
901                elseif timerexists changetarget
902                    hotkey 'Target Closest Grey Monster'
903                    hotkey 'Target Closest Murderer Monster'
904                endif
905            elseif cooldown "Lightning" and cooldown "Harm" and cooldown "Magic Arrow" and mana >= 40
906                hotkey 'Cancel Current Target'
907                cast "Flamestrike"
908                wft 3000
909                if not timerexists changetarget
910                    hotkey 'Target Random Grey Monster'
911                    hotkey 'Target Random Murderer Monster'
912                elseif timerexists changetarget
913                    hotkey 'Target Closest Grey Monster'
914                    hotkey 'Target Closest Murderer Monster'
915                endif
916            endif
917            pause 150
918        endif
919    endif
920endif
921loop