Skip to content
Outlands Hub

Razor script

Spell Cycler

by Brozan (Syal) · 132 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.

Script by Brozan Spell Cycler to be used with wizards grimoire special spells Does not do timers since they can be so variable

Magic
Spell Cycler.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/bd2e058a-bf16-4966-8f5e-044b69dc653c for latest2# Automation by Jaseowns3## Script: Spell Cycler4## Created by: Brozan (Syal)#45235#############################################6 7#Script by Brozan8#Spell Cycler to be used with 9# wizards grimoire special spells10#Does not do timers since they can be so variable11 12@createlist spellCycle13 14if list spellCycle <= 015        @unsetvar 'destoyIt'16        wait 20017endif 18 19if not varexist 'destoyIt' 20    //Aquire a target21    overhead 'New Target' 3322    @setvar! 'destoyIt '23    wait 10024    25    //Load up the list26    @clearlist spellCycle27    @pushlist 'spellCycle' "Mana Drain"28    @pushlist 'spellCycle' "Curse"29    @pushlist 'spellCycle' "Magic Arrow"30    @pushlist 'spellCycle' "Harm"31    @pushlist 'spellCycle' "Fireball"32    @pushlist 'spellCycle' "Lightning"33    34endif35 36    if inlist 'spellCycle' 'Mana Drain'37        cast 'Mana Drain'38        waitfortarget 39        target destoyIt 40        poplist 'spellCycle' 'front'      41    elseif inlist 'spellCycle' 'Curse'42        cast 'Curse'43        waitfortarget 44        target destoyIt45        poplist 'spellCycle' 'front'   46    elseif inlist 'spellCycle' 'Magic Arrow'47        cast 'Magic Arrow'48        waitfortarget 49        target destoyIt50        poplist 'spellCycle' 'front'    51    elseif inlist 'spellCycle' 'Harm'52        cast 'Harm'53        waitfortarget 54        target destoyIt55        poplist 'spellCycle' 'front' 56    elseif inlist 'spellCycle' 'Fireball'57        cast 'Fireball'58        waitfortarget 59        target destoyIt60        poplist 'spellCycle' 'front'61    elseif inlist 'spellCycle' 'Lightning'62        cast 'Lightning'63        waitfortarget 64        target destoyIt65        poplist 'spellCycle' 'front'   66    else67        overhead 'Sequence done'68        unsetvar 'destoyIt'69        poplist 'spellCycle' 'front'   70        wait 10071    endif 72 73wait 200074 75overhead 'Passive Script Engaged' 3376 77 78if not timerexists "healpot"79    createtimer "healpot"80    settimer "healpot" 800081endif82 83if not timerexists "shroomy"84    createtimer "shroomy"85    settimer "shroomy" 6100086endif87 88 89while not dead90        91    # If hidden, skip92    if hidden93        continue94    endif95 96    97    if insysmsg 'you cannot move!'98        overhead 'Paralyzed!' 3499        overhead [pouch100    endif101    102    #Eat a magic mushroom if we have 103    #25  less mana than full104    if mana < 60 and timer "shroomy" >= 61000105        wait 500106        //add this wait to avoid 107        //eating a shroom on a refund108            if mana < 60 109                dclicktype '29012'110                overhead 'Mushroom Power!'111                settimer "shroomy" 0112            endif113    endif114 115    if not findtype "Yellow Potion" backpack116        overhead 'Out of heal potions!' 34117        wait 200118    endif119    120    //Heal drinker if below 40121    if hp < 55122       if findtype "Yellow Potion" backpack123           if timer "healpot" >= 8000124                        overhead 'Drinking heal!'125                        potion "heal"126                        wait 200127                        settimer "healpot" 0128            endif129         endif130     endif131     wait 100132endwhile