Skip to content
Outlands Hub

Razor script

Brozan's Auto Mage

by brozan_syal · 149 lines
Download

Wizard Grimoire

MagicDiscordance
Brozans Auto Mage.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/9e1f4f66-8fa1-4a3b-aa69-0f40031e7fc7 for latest2# Automation by Jaseowns3## Script: Brozan's Auto Mage4## Created by: brozan_syal#05#############################################6 7#Wizard Grimoire8@setvar! castArrow 19@setvar! castHarm 110@setvar! castFireball 111@setvar! castLightning 112@setvar! moveShit 113@setvar! manaDrain 014@setvar! curseCast 115@setvar! poisonStrike 116@setvar! painSpike 117 18#Bard Stuff19if skill 'Discordance' > 5020    @setvar! isBard 121else 22    @setvar! isBard 023endif24 25# ============================================26#   INITIAL TARGET27# ============================================28hotkey 'target closest non-friendly monster'29@setvar! myKillTarget lasttarget30@setvar! firstTarget myKillTarget31 32if insysmsg "no one matching"33    overhead "Nothing to attack" 3434    @clearignore 35    script "stayalive2"36endif37 38 39if not timerexists  'poisonStrikeTimer'40    createtimer 'poisonStrikeTimer'41endif42 43settimer "poisonStrikeTimer" 044 45if moveShit = 146    #Move looted reagents to satchel47    if findtype 3963|3980|3974|3973|3981|3962|3976|3972 backpack48        if findtype "reagent satchel" self as 'WizardSatchel'49            menu 'WizardSatchel' 050        endif51    endif52endif    53 54 55if manaDrain = 156    cast 'Mana Drain'57    wft 550058    target myKillTarget59    wait 25560endif    61if curseCast = 162    cast 'Curse'63    wft 550064    target myKillTarget65    wait 25566endif67 68while mana > 12 and find myKillTarget ground -1 -1 12 as found69    if diffhits >= 3270        hotkey 'Drink Heal'71        getlabel backpack ping72    endif73    if hits < 70 74        overhead "Heal!" 3375        script "stayalive2"76    endif77    78    if mana < 75 and not cooldown "Mushroom"79        hotkey 'Eat Magic Mushroom'80    endif81    82    #bard stuff83    if isBard = 1 and not cooldown "Discordance" and not findbuff "actively meditating" 84        overhead "Discordance!"85        useskill 'Discordance'86        wft 25087        target found88    endif89    90    if not cooldown "Poison Strike" and timer "poisonStrikeTimer" >= 1200091        whisper "[poisonstrike"92        wft 50093        target found94        cooldown "Poison Strike" 3050095    endif96    97    if castFireball = 1 and mana >= 9 and not findbuff 'Fireball Cooldown'98        cast 'fireball'99    elseif castLightning = 1 and mana >= 11 and not findbuff 'Lightning Cooldown'100        cast 'Lightning'101    elseif castHarm = 1 and mana >= 6 and not findbuff 'Harm Cooldown'102        cast 'harm'103    elseif castArrow = 1 and mana >= 4 and not findbuff 'Magic Arrow Cooldown'104        cast 'magic arrow'105    elseif mana >= 40106        cast 'Flamestrike'107        @setvar! flamedOnce 1108    else109        cast 'Mind Blast'110    endif111    #while casting 112    #    wait 10113    #endwhile114    if targetexists 115        target found116    endif117endwhile    118 119#we got here because we ran out of mana or it Is dead 120#stop casting 121hotkey 'Cancel Current Target'122hotkey '> Interrupt'123hotkey 'Cancel Current Target'124hotkey '> Interrupt'125hotkey 'Cancel Current Target'126hotkey '> Interrupt'127overhead "Killing All"128 129#vamp embrace130if not cooldown "Vampiric Embrace" and findtype "corpse" ground -1 -1 12 as foundCorpse131    overhead "Eat the dead!" 44132    while not targetexists 133        whisper "[VampiricEmbrace"134        wft 250135    endwhile136    wft 1500137    target foundCorpse138    cooldown "Vampiric Embrace" 31500139endif    140 141wait 250142 143#meditation144if not findbuff 'Actively Meditating' and not cooldown "Skill Lockout" and diffhits <= 20 and mana <= 50145    skill 'Meditation'146    overhead "Meditation On!" 55147endif148 149script "stayalive2"