Skip to content
Outlands Hub

Razor script

Lazy Mage with Debuffs

by SINGsingFan · 539 lines
Download

Compatibility unverified

This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.

Set Wiz grimoire Spells you want to cast to 1 and set their timers Set Spells to cast

MagicMeditation
Lazy Mage with Debuffs.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/34b2fae5-37cf-4f7d-8a48-91f39d75ab92 for latest2# Automation by Jaseowns3## Script: Lazy Mage with Debuffs4## Created by: SINGsingFan#40955#############################################6 7#Set Wiz grimoire Spells you want to 8#cast to 1 and set their timers9#Set Spells to cast10    @setvar! castHarm 111    @setvar! castMagicArrow 112    @setvar! castFireball 013    @setvar! castLightning 1 14    @setvar! castBless 015    @setvar! castCurse 116    @setvar! castManaDrain 117    18#Wiz Grimoire Timers19    @setvar! wizHarmCd 40000 20    @setvar! wizMagicArrowCd 4000021    @setvar! wizFireballCd 40000 22    @setvar! wizLightningCd 40000 23    @setvar! MushroomsCd 6000024 25#Debuff Timers26    @setvar! CurseCd 6000027    @setvar! ManaDrainCd 6000028    @setvar! ManaVampCd 30000029 30#Misc Variables31    @setvar! hpHealBreak 3032    @setvar! cdPoisonStrike 3150033    @setvar globalWait 25034 35if not varexist myPreviousKillTarget36    setvar myPreviousKillTarget 0     37endif38#WizGrimoireTimer39 40    if not timerexists "wizHarm"41        createtimer "wizHarm"42        settimer "wizHarm" wizHarmCd43    endif44    45    if not timerexists "wizMagicArrow"46        createtimer "wizMagicArrow"47        settimer "wizMagicArrow" wizMagicArrowCd48    endif49    50    if not timerexists "wizFireball"51        createtimer "wizFireball"52        settimer "wizFireball" wizFireballCd53    endif54    55    if not timerexists "wizLightning"56        createtimer "wizLightning"57        settimer "wizLightning" wizLightningCd58    endif59    60    if not timerexists "Mushrooms"61        createtimer "Mushrooms"62        settimer "Mushrooms" MushroomsCd63    endif64 65#DebuffTimer66    if not timerexists "CurseDb"67        createtimer "CurseDb"68        settimer "CurseDb" CurseCd69    endif70    71    if not timerexists "ManaDrainDb"72        createtimer "ManaDrainDb"73        settimer "ManaDrainDb" ManaDrainCd74    endif75    76    if not timerexists "ManaVampDb"77        createtimer "ManaVampDb"78        settimer "ManaVampDb" ManaVampCd79    endif80 81#MiscTimers82    if not timerexists poisonStrikeTimer83        createtimer poisonStrikeTimer84        settimer poisonStrikeTimer cdPoisonStrike85    endif86 87//Start of Script88 89#FindTarget90 91    hotkey "Target Closest Non-Friendly Monster"92    93    if insysmsg "No one"94 95        if targetexists 96            hotkey "Cancel Current Target"97            hotkey "Clear Target Queue"98        endif99        100        stop101    endif102    103    @setvar myKillTarget lasttarget 104 105#Kill Sequence106 107while not dead myKillTarget108    109#ShowTarget110         if not find myKillTarget ground -1 -1 10111                overhead "No Target Found"112                wait 500113         else 114                overhead " ��  Target ��  " 38 myKillTarget 115                overhead " �� ������ " 38 myKillTarget116         endif117 118        if targetexists 119                hotkey "Cancel Current Target"120                hotkey "Clear Target Queue"121        endif122            123        if insysmsg "No one"124 125            if targetexists 126                hotkey "Cancel Current Target"127                hotkey "Clear Target Queue"128            endif129            130            stop131        endif132 133#Food Buff Check134        if not findbuff "food satisfaction" and findtype "tray" backpack as food135            dclick food136            wait globalWait137        endif138 139 140#Make sure we have a spell book attached141 142        if findlayer self righthand as item143            // do nothing144        elseif findtype "3834" backpack as item145            getlabel item spellBookDesc146            if "blessed" in spellBookDesc147                @ignore item148            elseif "unidentified" in spellBookDesc149                @ignore item150            else151                dclick item    152            endif153        else 154            overhead "No Spellbooks!" 34155        endif156 157 158#Heals159        if diffhits >= 30160            if targetexists 161                hotkey 'Cancel Current Target'162            endif163            164            while not targetexists 'beneficial'165                if diffhits <= 10166                    cast 'Heal'167                elseif diffhits >= 60168                    cast 'Heal'169                else170                    cast 'Greater Heal'                171                endif172                wait globalWait173                if hp = maxhp174                    hotkey '> Interrupt'175                    break176                endif177            endwhile178            179            if targetexists 'beneficial'180                target self181                wait globalWait182            endif183            184            replay185        endif186 187 188        if findbuff "Meditating"189            while mana < 40190            //do nothing191            endwhile192        endif193        194        195#Mana Check196        if mana < 30197            useskill "Meditation"198            wait globalWait199            while mana < 50200                wait 500201            endwhile202 203        endif204 205#BlessCheck206        207        if not findbuff "Strength"208            hotkey "Cancel Current Target"209            hotkey "Clear Target Queue"210            cast "Bless"211            wait 1350212        213            if targetexists beneficial214                target self215                wait globalWait216            else 217                hotkey "Cancel Current Target"218                hotkey "Clear Target Queue"219            endif220            221        endif222 223#Summon224 225        while followers < 5226            227            if followers < 4 and mana > 49228                say "[Wither"229                //wait 150230                //say "[VengefulSpirit"231                //cast "Fire Elemental"232                cast "Earth Elemental"233                //cast "Summon Daemon"234 235                wait 3000236                say "all guard me"237            elseif followers < 4 and mana < 49238                while not findbuff "Meditating"239                    useskill "Meditation"240                wait globalWait241                endwhile242                if findbuff "Meditation"243                    replay244                endif245            endif246            247            if followers > 3 and followers < 5248                cast "Summ. Creature"249                wait 3000250                say "all guard me"251            endif252            253            if diffhits >= 30254                hotkey '> Interrupt'255                break256            endif    257 258        endwhile259 260        if mana < 70 and timer "Mushrooms" > MushroomsCd261            dclicktype "mushroom"262            wait globalWait263            settimer "Mushrooms" 0264        endif265 266 267//Debuff268 269    if not listexists cursedTarget270        createlist cursedTarget271    elseif listexists cursedTarget and timer "CurseDb" > CurseCd272        removelist cursedTarget 273        createlist cursedTarget274    endif275    276    if not listexists manaDrainTarget277        createlist manaDrainTarget278    elseif listexists manaDrainTarget and timer "ManaDrainDb" > ManaVampCd279        removelist manaDrainTarget  280        createlist manaDrainTarget281    endif282    283    if not listexists manaVampTarget284        createlist manaVampTarget285    elseif listexists manaVampTarget and timer "ManaVampDb" > ManaVampCd286        removelist manaVampTarget   287        createlist manaVampTarget288    endif289    290#Mana Drain/Vamp291        292 293        294        getlabel myKillTarget idMob295        wait globalWait296        297        if "Boss" in idMob or "Summoned" in idMob298 299            if not inlist manaVampTarget myKillTarget and castManaDrain > 0300            301                overhead "Boss Mob Detected"302                hotkey "Cancel Current Target"303                hotkey "Clear Target Queue"304                cast "Mana Vampire"305                306                while not targetexists 307                    wait 250308                endwhile309                310                wait 150311                312                if targetexists harmful313                    target myKillTarget314                    pushlist manaVampTarget myKillTarget315                    pushlist manaDrainTarget mykillTarget316                    wait globalWait317                    318                    settimer "ManaVampDb" 0319                    settimer "ManaDrainDb" 0320                    321                else 322                    hotkey "Cancel Current Target"323                    hotkey "Clear Target Queue"324                endif325 326            endif327        328        else329        330            if not inlist manaDrainTarget myKillTarget and not inlist manaVampTarget myKillTarget and castManaDrain > 0331                hotkey "Cancel Current Target"332                hotkey "Clear Target Queue"333                cast "Mana Drain"334                335                while not targetexists 336                    wait 250337                endwhile338                339                wait 150340                341                if targetexists harmful342                    target myKillTarget343                344                    pushlist manaDrainTarget myKillTarget345                    346                    wait globalWait347                    348                    settimer "ManaDrainDb" 0349                else 350                    hotkey "Cancel Current Target"351                    hotkey "Clear Target Queue"352                endif353                354            endif355            356        endif357        358 359 360#Curse361 362        if not inlist cursedTarget myKillTarget and castCurse > 0363        364            cast "Curse"365            366            while not targetexists 367                wait 250368            endwhile369            370            wait 150371            if targetexists harmful372                target myKillTarget373                wait globalWait374                settimer "CurseDb" 0375            376                pushlist cursedTarget myKillTarget377                378            else 379                hotkey "Cancel Current Target"380                hotkey "Clear Target Queue"381            endif382            383        endif384 385 386        387//Poison388#Poison389 390        if diffhits >= 30391            replay392        else393            394            getlabel myKillTarget desc2395            overhead desc2396            397            if skill "poisoning" >= 100398            399                if "Lethal" in desc2 or "Deadly" in desc2 or "*looks violently ill*" in desc2400                    wait 250401                    if "Ticks" in desc2402                    403                        if timer poisonStrikeTimer >= cdPoisonStrike404                            say "[Poisonstrike"405                            wait 500406                            407                                if targetexists 408                                    target myKillTarget 409                                    wait 350410                                    settimer poisonStrikeTimer 0411                                endif412                        endif413                        414                    elseif mana >= 9415                        cast "poison"416                        wait 1500417                        418                        if targetexists harmful419                            target myKillTarget420                        else 421                            hotkey "Cancel Current Target"422                            hotkey "Clear Target Queue"423                        endif424                            425 426                    endif427 428                else429                430                    if "Ticks" in desc2 or "Poison" in desc2431                        //wait432                    elseif mana >= 9433                        cast "poison"434                        wait 1500435                        436                        if targetexists harmful437                            target myKillTarget438                        else 439                            hotkey "Cancel Current Target"440                            hotkey "Clear Target Queue"441                        endif442                        443                    endif444                    445                endif   446            endif447        endif448 449 450//Cast Spells451 452    if timer "wizMagicArrow" >= wizMagicArrowCd and mana > 4 and castMagicArrow > 0453        hotkey "Cancel Current Target"454        hotkey "Clear Target Queue"455        hotkey "Magic Arrow"456        wft457        458        if targetexists harmful459            target myKillTarget460        else 461            hotkey "Cancel Current Target"462            hotkey "Clear Target Queue"463        endif464        wait globalWait465        settimer "wizMagicArrow" 0466        overhead "Magic Arrow Wiz"467    468    elseif timer "wizHarm" >= wizHarmCd and mana > 6 and castHarm > 0469        hotkey "Cancel Current Target"470        hotkey "Clear Target Queue"471        hotkey "Harm"472        wft473        if targetexists harmful474            target myKillTarget475        else 476            hotkey "Cancel Current Target"477            hotkey "Clear Target Queue"478        endif479        wait globalWait480        settimer "wizHarm" 0481        overhead "Harm Wiz"482    483    elseif timer "wizFireball" >= wizFireballCd and mana > 9 and castFireball > 0484        hotkey "Cancel Current Target"485        hotkey "Clear Target Queue"486        hotkey "Fireball"487        wft488        if targetexists harmful489            target myKillTarget490        else 491            hotkey "Cancel Current Target"492            hotkey "Clear Target Queue"493        endif494        wait globalWait495        settimer "wizFireball" 0496        overhead "Fireball wiz"497    498    elseif timer "wizLightning" >= wizLightningCd and mana > 11 and castLightning > 0499        hotkey "Cancel Current Target"500        hotkey "Clear Target Queue"501        hotkey "Lightning"502        wft503        if targetexists harmful504            target myKillTarget505        else 506            hotkey "Cancel Current Target"507            hotkey "Clear Target Queue"508        endif509        wait globalWait510        settimer "wizLightning" 0511        overhead "Lightning wiz"512    513    elseif mana > 40514        hotkey "Cancel Current Target"515        hotkey "Clear Target Queue"516        hotkey "Flamestrike"517        wft518        if targetexists harmful519            target myKillTarget520        else 521            hotkey "Cancel Current Target"522            hotkey "Clear Target Queue"523        endif524        wait globalWait525 526        if mana < 70527            dclicktype 'mushroom' backpack528            wait 250529        endif530        531    elseif not findbuff "Actively Meditating" and mana < 40532        hotkey "Meditation"533        wait 550534        while mana < 40535            wait 500536        endwhile537    endif538    539endwhile