Skip to content
Outlands Hub

Razor script

[Mage] One-Button Ultimate Buff & Potion Kit

by vilefoxx · 173 lines
Download

SETUP: Initialize Timers

Magic
Mage One-Button Ultimate Buff Potion Kit.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/09ea91c4-8f78-4d20-a5b1-42ce09ef4ba3 for latest2# Automation by Jaseowns3## Script: [Mage] One-Button Ultimate Buff & Potion Kit4## Created by: vilefoxx#05#############################################6 7// ==============================8// SETUP: Initialize Timers9// ==============================10if not timerexists 'strTimer'11  createtimer 'strTimer'12  settimer 'strTimer' 1100013endif14if not timerexists 'agilTimer'15  createtimer 'agilTimer'16  settimer 'agilTimer' 1100017endif18if not timerexists 'healTimer'19  createtimer 'healTimer'20  settimer 'healTimer' 1100021endif22if not timerexists 'resistTimer'23  createtimer 'resistTimer'24  settimer 'resistTimer' 1100025endif26if not timerexists 'mushroomTimer'27  createtimer 'mushroomTimer'28  settimer 'mushroomTimer' 600029endif30 31// Clear journal for accurate checks32clearjournal33 34// ==============================35// 1. MAGERY BUFFS 36// ==============================37 38// --- Buff 1: Reactive Armor ---39cast 'Reactive Armor'40pause 20041if insysmsg insysmsg 'already has an existing effect' or insysmsg 'That target already has an existing effect of equal or greater value in place.'42  sysmsg 'Reactive Armor already active.' 5543else44  pause 150045endif46clearjournal47 48// --- Buff 2: Magic Reflection ---49cast 'Magic Reflection'50pause 20051if insysmsg 'already has an existing effect' or insysmsg 'That target already has an existing effect of equal or greater value in place.'52  sysmsg 'Magic Reflection already active.' 5553else54    pause 100055endif56clearjournal57 58// --- Buff 3: Arch Protection ---59cast 'Arch Protection'60pause 50061  waitfortarget 62  target 'self'63  pause 125064endif65clearjournal66 67// --- Buff 4: Bless ---68cast 'Bless'69pause 20070if insysmsg 'already has an existing effect.' or insysmsg 'That target already has an existing effect of equal or greater value in place.'71  sysmsg 'Bless already active.' 5572else73  waitfortarget 74  target 'self'75  pause 50076endif77clearjournal78 79// ==============================80// 2. HEAL POTIONS (Yellow 0x0F0C)81// ==============================82if hits < maxhits83    if timer 'healTimer' > 1000084        if findtype 0x0F0C backpack85            dclicktype 0x0F0C86            sysmsg 'Drinking Heal Potion' 6687            settimer 'healTimer' 088            pause 50089        else90            sysmsg 'No Heal Potions found.' 3391        endif92    else93        sysmsg 'Heal Timer Cooldown' 3394    endif95endif96 97// ==============================98// 3. MAGIC RESIST POTION (Black 0x0F06)99// ==============================100if timer 'resistTimer' > 10000101    if findtype 0x0F06 backpack102        dclicktype 0x0F06103        sysmsg 'Drinking MAGIC RESIST Potion' 66104        settimer 'resistTimer' 0105        pause 500106    else107        sysmsg 'No Magic Resist Potions found.' 33108    endif109else110    sysmsg 'Magic Resist Timer Cooldown' 33111endif112 113// ==============================114// 4. STAT POTIONS115// ==============================116 117// --- Strength Potion (White 0xf09) ---118if timer 'strTimer' > 10000119    if maxhits <= 120120        if findtype 0xf09 backpack121            dclicktype 0xf09122            sysmsg 'Drinking Strength Potion' 66123            settimer 'strTimer' 0124            pause 500125        else126            sysmsg 'No Strength Potions found.' 33127        endif128    else129        sysmsg 'MaxHP > 120 (Skipping Str)' 44130    endif131else132    sysmsg 'Strength Timer Cooldown' 33133endif134 135// --- Agility Potion (Blue 0xf08) ---136if timer 'agilTimer' > 10000137    if maxstam <= 36138        if findtype 0xf08 backpack139            dclicktype 0xf08140            sysmsg 'Drinking Agility Potion' 66141            settimer 'agilTimer' 0142            pause 500143        else144            sysmsg 'No Agility Potions found.' 33145        endif146    else147        sysmsg 'Agility > 36 (Already Buffed)' 44148    endif149else150    sysmsg 'Agility Timer Cooldown' 33151endif152 153// ==============================154// 5. MANA CHECK (Mushroom 0x7154)155// ==============================156if timer 'mushroomTimer' > 5000157    if mana < 60158        if findtype 0x7154 backpack159            dclicktype 0x7154160            settimer 'mushroomTimer' 0161            sysmsg 'Used Magic Mushroom' 66162            pause 500163        else164            sysmsg 'Low Mana & No Mushrooms!' 33165        endif166    else167        sysmsg 'Mana is 60+ (Skipping Mushroom)' 44168    endif169else170    sysmsg 'Mushroom Timer Cooldown' 33171endif172 173sysmsg 'Buff sequence complete.' 66