Skip to content
Outlands Hub

Razor script

Magery One Button Hotkey

by jolanar · 218 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.

Wizard Grimoire

MagicMagery
Magery One Button Hotkey.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/804caa88-aa2c-4125-87f1-e7002a4676bb for latest2# Automation by Jaseowns3## Script: Magery One Button Hotkey4## Created by: jolanar#05#############################################6 7#Wizard Grimoire8@setvar! castArrow 09@setvar! castHarm 010@setvar! castFireball 011@setvar! castLightning 112@setvar! castProtection 113 14#Potions15@setvar! useCurePotion 116@setvar! useStrengthPotion 117@setvar! useDexterityPotion 118@setvar! useResistPotion 119@setvar! useStaminaPotion 120@setvar! Panacea 121@setvar! Freedom 122@setvar! useExplosion 123 24#Misc25@setvar! castLeyline 126@setvar! cdLeyline 500027@setvar! useTaunt 028@setvar! GoldDrop 029 30 31#Curing32if useCurePotion = 1 and poisoned33    if findtype "Orange Potion" backpack as pot34        dclick pot35    endif36endif37 38#Healing39if diffhits > 3540    if findtype "Yellow Potion" backpack as pot41        getlabel pot potlabel42        if 'next usable' in potlabel43            hotkey 'Play Script: Smarter Heal'44        else45        dclick pot46        endif47    else48        hotkey 'Play Script: Smarter Heal'49    endif50endif51 52#Stamina and Alchemy Codex53if diffstam > 854    if findtype "Red Potion" backpack as pot55        dclick pot56    endif57endif58 59if Panacea = 1 and findbuff 'Disease' and not findbuff 'Panacea Potion Cooldown' and skill 'Alchemy' >= 8060    if findtype "Orange Potion" backpack as pot61        dclick pot62    endif63endif64 65if Panacea = 1 and findbuff 'Bleed' and not findbuff 'Panacea Potion Cooldown' and skill 'Alchemy' >= 8066    if findtype "Orange Potion" backpack as pot67        dclick pot68    endif69endif70 71if Freedom = 1 and findbuff 'Hinder' and not findbuff 'Freedom Potion Cooldown' and skill 'Alchemy' >= 8072    if findtype "Red Potion" backpack as pot73        dclick pot74        overhead 'Hinder Removed'75    endif76endif77 78if Freedom = 1 and findbuff 'Entangle' and not cooldown Freedom and skill 'Alchemy' >= 8079    if findtype "Red Potion" backpack as pot80        dclick pot81        overhead 'Entangle Removed'82    endif83endif84 85#Buffing86if not findbuff "Reactive Armor" and mana >= 487    cast "Reactive Armor"88endif89 90if castProtection = 1 and not findbuff "Protection" and mana >= 691    cast "Protection"92endif93 94if useStrengthPotion = 1 and not findbuff 'Strength'95    if findtype "White Potion" backpack as pot96        dclick pot97    endif98endif99 100if useDexterityPotion = 1 and not findbuff 'Agility'101    if findtype "Blue Potion" backpack as pot102        dclick pot103    endif104endif105 106if useResistPotion = 1 and not findbuff 'Magic Resist Potion'107    if findtype "Black Potion" backpack as pot108        dclick pot109    endif110endif111 112if not findbuff 'Food Satisfaction'113    if findtype tray backpack as food114        dclick food115    endif116endif117 118#Taunt119#You will need a 15 second ingame cooldown called Taunt for this to work.120if useTaunt = 1 and not cooldown Taunt and find lasttarget ground -1 -1 12121    say '[taunt'122    wft123    lasttarget124endif125 126#Weapon Ability127#You will need an ingame cooldown called Leyline for this to work.128if diffmana > 30 and not cooldown Leyline and castLeyline = 1129    say '[weaponability2'130    cooldown Leyline cdLeyline131endif132 133#Codex Hotbar134if not gumpexists 2016719803 and skill 'Parrying' >= 80135    dclick 0x4199F522136    waitforgump 3835665787137    gumpresponse 2138    waitforgump 2016719803139    gumpclose 3835665787140endif141 142#Explosion Potion:143#If you have a target witin 12 tiles, this will try to check LOS with arms lore and then use an explosion potion on last target.144#You will need an ingame cooldown called LOS for this to work.145#WARNING: This does check for line of sight and range, but explosion potions run the risk of exploding on blue characters and may turn you grey.146    if find lasttarget ground -1 -1 12 and skill 'Alchemy' >= 80 and not cooldown 'ExplosionPotion' and findtype '3853' > 0 and useExplosion = 1147    hotkey 'Arms Lore'148    wft149    lasttarget150    getlabel backpack PingCheck151    if cooldown LOS and findtype "Purple Potion" backpack as pot152        dclick pot153        wft154        lasttarget 155        cooldown ExplosionPotion 12200156    endif157endif158 159#Gold Drop - I have OCD so sometimes its hard not to loot gold. This will drop it for me.160if findtype "gold coin" backpack as item and GoldDrop = 1161    lift item 2000162        droprelloc 0 0163endif164 165#Move looted reagents to satchel166if findtype 3963|3980|3974|3973|3981|3962|3976|3972 backpack167    if findtype "reagent satchel" self as 'WizardSatchel'168        menu 'WizardSatchel' 0169    endif170endif171 172#Damage spells begin here:173if mana >= 60174    cast 'Flamestrike'175    stop176endif177 178if castArrow = 1 and mana >= 4 and not findbuff 'Magic Arrow Cooldown'179    cast 'magic arrow'180    stop181endif182 183if castHarm = 1 and mana >= 6 and not findbuff 'Harm Cooldown'184    cast 'harm'185    stop186endif187           188if castFireball = 1 and mana >= 9 and not findbuff 'Fireball Cooldown'189    cast 'fireball'190    stop191endif192 193if castLightning = 1 and mana >= 11 and not findbuff 'Lightning Cooldown'194    cast 'Lightning'195    stop                   196endif197 198if mana < 40 and not findbuff 'Magic Mushroom Cooldown'199    hotkey 'Eat Magic Mushroom'200    overhead 'Magic Mushroom'201endif202 203#You will need a cooldown called Snacking with a 61 second duration. 204#2546 is the item ID for cooked ribs, you will need to update for your preferred food.205if mana < 40 and findbuff 'Magic Mushroom Cooldown' and findbuff 'Food Satisfaction' and not cooldown 'Snacking' and skill 'Cooking' > 0206    if findtype 2546 backpack as rib207        dclick rib208        cooldown 'Snacking' 61000209        overhead 'Snacked'210    endif211endif212 213if mana >= 40214    cast 'Flamestrike'215    stop216endif217 218cast 'Mind Blast'