Skip to content
Outlands Hub

Razor script

One hotkey necro nox mage cycle (1)

by Jaseowns · 491 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.

One hotkey mage cycle by Jaseowns UO Outlands - https://youtu.be/K3bVPhHcInE

MagicMeditation
One hotkey necro nox mage cycle 1.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/69b8493d-a660-451c-a846-1e519b46559d for latest2# Automation by Jaseowns3## Script: One hotkey necro nox mage cycle (1)4## Created by: Jaseowns#66945#############################################6 7# One hotkey mage cycle by Jaseowns8# UO Outlands - https://youtu.be/K3bVPhHcInE9 10##########################11################12##########13#####14# Check out https://outlands.uorazorscripts.com/script/25b38218-28e5-43d1-b9e1-01de484da5ce for latest15##########################16################17##########18#####19##########################20################21##########22#####23##########################24################25##########26###############################27################28##########29#####30##########################31################32##########33#####34##########################35################36##########37#####38##########################39################40##########41#####42 43// Beta client for cooldowns44// cooldowns for mushrooms, mana vampire and healpots45// for now using timers46 47// Make sure we have a spell book attached48if findlayer self righthand as item49    // do nothing50elseif findtype "3834" backpack as item51    dclick item52else 53    overhead "No book bro!" 3454endif55 56# Update this variable to 1 for ALL KILL57# Update this variable to 0 for target nearest58@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 059 60 61@setvar! cdLightning 4000062@setvar! cdMagicArrow 2000063@setvar! cdHarm 2000064@setvar! cdFireball 6000065@setvar! cdEvilOmen 3000066@setvar! cdVampiricEmbrace 3000067@setvar! cdCorpseSkin 3000068@setvar! cdMindRot 3000069@setvar! cdMushroom 6000070@setvar! cdMagicShield 6000071@setvar! cdReactiveArmor 6000072 73if not timerexists reactiveArmorTimer74    createtimer reactiveArmorTimer75    settimer reactiveArmorTimer cdMagicShield76endif77 78if not timerexists magicShieldTimer79    createtimer magicShieldTimer80    settimer magicShieldTimer cdMagicShield81endif82 83 84if not timerexists magicMushroomTimer85    createtimer magicMushroomTimer86    settimer magicMushroomTimer cdMushroom87endif88 89if not timerexists magicArrowTimer90    createtimer magicArrowTimer91    settimer magicArrowTimer cdMagicArrow92endif93 94if not timerexists lightningTimer95    createtimer lightningTimer96    settimer lightningTimer cdLightning97endif98 99if not timerexists harmTimer100    createtimer harmTimer101    settimer harmTimer cdHarm102endif103 104if not timerexists fireballTimer105    createtimer fireballTimer106    settimer fireballTimer cdFireball107endif108 109if not timerexists evilOmenTimer110    createtimer evilOmenTimer111    settimer evilOmenTimer cdEvilOmen112endif113 114if not timerexists vampiricEmbraceTimer115    createtimer vampiricEmbraceTimer116    settimer vampiricEmbraceTimer cdVampiricEmbrace117endif118 119if not timerexists corpseSkinTimer120    createtimer corpseSkinTimer121    settimer corpseSkinTimer cdCorpseSkin122endif123 124if not timerexists mindRotTimer125    createtimer mindRotTimer126    settimer mindRotTimer cdMindRot127endif128 129 130 131 132if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 1133    say "all kill"134    wait 200135    while targetexists 136        // wait137        wait 50138    endwhile139else140    hotkey 'Target Closest Non-Friendly Monster'141    wait 200142    if insysmsg "No one matching that was found"143        overhead "found no one" 34144        stop145    endif    146endif147 148@setvar myKillTarget lasttarget 149 150if not varexist myPreviousKillTarget151    @setvar myPreviousKillTarget 0     152endif153 154getlabel myKillTarget desc155overhead desc156 157if not varexist myEarthPet or dead myEarthPet158    overhead "Your pet is dead, demonic summon time" 34159else160    menu myEarthPet 2161    wft 500162    target myKillTarget163endif164 165if diffhits >= 30 and mana > 12166    while not targetexists167        if diffhits >= 60168            cast 'Heal'169        else170            cast 'Greater Heal'                171        endif172        wait 50173        if hp = maxhp174            hotkey '> Interrupt'175            break176        endif177    endwhile178    if targetexists179        target self180    endif181endif182 183if find myKillTarget -1 -1 12 as killy184    if myKillTarget = myPreviousKillTarget185        // do nthoing186    else187        188        while not targetexists and not dead myKillTarget189            if diffhits < 30190                cast 'Curse'191                wait 50192            elseif diffhits >= 30 193                hotkey '> Interrupt'194                break195            endif196        endwhile197        if targetexists198            target myKillTarget199            wait 500200        endif201 202 203        while not targetexists and not dead myKillTarget204            if diffhits < 30205                cast 'mana drain'206                wait 50207            elseif diffhits >= 30 208                hotkey '> Interrupt'209                break210            endif 211        endwhile212        if targetexists213            target myKillTarget214            wait 500215        endif216        @setvar myPreviousKillTarget myKillTarget217    endif218else219    overhead "Out of range" 34220endif221 222 223 224clearsysmsg 225 226say "all guard"227 228@setvar! isLethalPoison 0229 230while not dead myKillTarget and find myKillTarget -1 -1 12 as killy231    232    if timer magicShieldTimer >= cdMagicShield and not findbuff "Magic Reflection"233        cast "Magic Reflection"234        wait 1000235    elseif not findbuff "Magic Reflection" and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as pot236        dclick pot237        wait 200238    endif239 240    if findbuff "Magic Reflection"241        settimer magicShieldTimer 0242    endif243    244    if timer reactiveArmorTimer >= cdReactiveArmor and not findbuff "Reactive Armor"245        cast "Reactive Armor"246        wait 200247    endif248 249    if findbuff "Reactive Armor"250        settimer reactiveArmorTimer 0251    endif252 253    if timer corpseSkinTimer >= cdCorpseSkin254        overhead "Should be CorpseSkin!" 34255        say "[CorpseSkin"256        settimer corpseSkinTimer 0257        wait 500258    endif259    260    if skill "poisoning" >= 100261 262        if timer mindRotTimer >= cdMindRot263            overhead "Should be mind rotting!" 34264            say "[MindRot"265            settimer mindRotTimer 0266            wait 500267        endif268        269        while isLethalPoison = 0270            getlabel myKillTarget desc2271            overhead desc2 66272            // poison lethal273            if "Lethal" in desc2274                @setvar! isLethalPoison 1275                break276            elseif diffhits >= 30 277                // need a heal278                break279            elseif mana >= 9280                while not targetexists281                    cast 'poison'282                    wait 50283                    if dead myKillTarget284                        hotkey '> Interrupt'285                        break286                    endif287                endwhile288                target myKillTarget289            else290                wait 200291            endif292        endwhile293    endif294    if timer evilOmenTimer >= cdEvilOmen295        say "[EvilOmen"296        settimer evilOmenTimer 0297        wait 200298    endif299 300    if timer vampiricEmbraceTimer >= cdVampiricEmbrace and findtype 8198 ground -1 -1 4 as jorpse301        say "[VampiricEmbrace"302        wft 500303        target jorpse304        settimer vampiricEmbraceTimer 0305    endif306   307    if find myKillTarget -1 -1 12 as killy308       // do nothing309    else310        overhead "Out of range" 34311        break312    endif313    314    if poisoned315        if findtype "Orange Potion" backpack as pot 316            dclick pot317            wait 200318        else319            while not targetexists320                if not poisoned321                    hotkey '> Interrupt'322                    break323                else324                    cast 'Cure'325                    wait 50326                endif 327            endwhile328            if targetexists329                target self330                wait 500331            endif332        endif333    endif334 335    336    if diffhits < 30 and mana >= 12 and timer lightningTimer >= cdLightning337        while not targetexists338            if dead myKillTarget or diffhits >= 30339                hotkey '> Interrupt'340                break341            else342                cast 'Lightning'343                wait 50344            endif 345        endwhile346        if targetexists347            target myKillTarget348            settimer lightningTimer 0349            wait 500350        endif351    endif352 353    if diffhits < 30 and mana >= 5 and timer magicArrowTimer >= cdMagicArrow354        while not targetexists355            if dead myKillTarget or diffhits >= 30356                hotkey '> Interrupt'357                break358            else359                cast 'magic arrow'360                wait 50361            endif 362        endwhile363        if targetexists364            target myKillTarget365            settimer magicArrowTimer 0366            wait 500367        endif368    endif369 370    if diffhits < 30 and mana >= 9 and timer harmTimer >= cdHarm371        while not targetexists372            if dead myKillTarget or diffhits >= 30373                hotkey '> Interrupt'374                break375            else376                cast 'harm'377                wait 50378            endif 379        endwhile380        if targetexists381            target myKillTarget382            settimer harmTimer 0383            wait 500384        endif385    endif386 387    if diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball388        while not targetexists389            if dead myKillTarget or diffhits >= 30390                hotkey '> Interrupt'391                break392            else393                cast 'fireball'394                wait 50395            endif 396        endwhile397        if targetexists398            target myKillTarget399            settimer fireballTimer 0400            wait 500401        endif402    endif403    404    if diffhits >= 30405            406        if findtype "Yellow Potion" backpack as pot 407            getlabel pot desc408            if "next usable" in desc409                // do nothing410            else411                dclick pot412                wait 200413            endif414        endif415 416        if diffhits >= 30 and mana >= 12417            while not targetexists418                if diffhits >= 60419                    cast 'Heal'420                else421                    cast 'Greater Heal'                422                endif423                wait 50424                if hp = maxhp425                    hotkey '> Interrupt'426                    break427                endif428            endwhile429            if targetexists430                target self431                wait 50432            endif433        endif434    elseif mana < 55 and findbuff "actively meditating" 435        // wait for mana436    elseif mana > 42437        while not targetexists and mana > 40438            if dead myKillTarget or diffhits >= 30439                hotkey '> Interrupt'440                break441            else442                cast 'Flamestrike'443                wait 50444            endif 445        endwhile446        if targetexists447            target myKillTarget448            wait 500449        endif450    elseif not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy451        overhead "Eatting shrooms" 66452        dclick mushy453        settimer magicMushroomTimer 0454    elseif not findbuff "actively meditating" 455        useskill 'meditation'456        wait 500457    endif458    wait 50459endwhile460wait 500461if targetexists 462    hotkey 'Cancel Current Target'463endif464say "all guard me"465if counttype "mushroom" backpack < 5466    while counttype "mushroom" backpack < 15467        cast "Create Food"468        wait 200469    endwhile470endif471while mana < 50472    if not findbuff "actively meditating" 473        useskill 'meditation'474    endif475    wait 500476endwhile477if timer vampiricEmbraceTimer >= cdVampiricEmbrace and findtype 8198 ground -1 -1 4 as jorpse478    say "[VampiricEmbrace"479    wft 500480    target jorpse481    settimer vampiricEmbraceTimer 0482endif483   484 485 486// curse487// mana drain488// magic arrrow489// harm490// fireball491// lightening