Skip to content
Outlands Hub

Razor script

[80-120] Magery Trainer - Flamestrike (Scrolls or Spellbook) + Mushroom

by neous_ · 80 lines
Download

Casts Flamestrike at a target you select once at startup to train Magery. Automeditates or eats magic mushrooms when low on mana.

TrainingCombatMagicMageryMeditation
80-120 Magery Trainer - Flamestrike Scrolls or Spellbook Mushroom.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/48d3034b-8c40-4e2c-a543-ac56253b44c4 for latest2# Automation by Jaseowns3## Script: [80-120] Magery Trainer - Flamestrike (Scrolls or Spellbook) + Mushroom 4## Created by: neous_#05#############################################6 7# Title: Flamestrike Magery Trainer (Fixed Target) with Mushroom Logic8# Description: Casts Flamestrike at a target you select once at startup to train Magery. Automeditates or eats magic mushrooms when low on mana.9 10# ----------------------------------------------------11# SETUP & CONFIGURATION12# ----------------------------------------------------13 14# Initializes the mushroom cooldown timer (61000ms ensures it starts ready)15if not timerexists 'cogu_timer'16    createtimer 'cogu_timer'17    settimer 'cogu_timer' 6100018endif19 20# This clears any old target saved in memory and prompts you to click your training dummy/mob21unsetvar trainTarget22overhead 'SELECT YOUR TRAINING TARGET' 8823setvar trainTarget24 25# Change 120 to whatever skill level you want to stop training at (e.g., 100, 110, 115)26@setvar! maxMagSkill 12027 28# ----------------------------------------------------29# MAIN TRAINING LOOP30# ----------------------------------------------------31while skill "Magery" < maxMagSkill and not dead32 33    # MANA CHECK: If mana drops below 40, it tries a mushroom first, then meditates34    if mana < 4035        overhead '*pant... pant...* The flames drain me!' 3836 37        # Tries to eat a magic mushroom (graphic 29012) if the 60s cooldown passed38        if timer 'cogu_timer' > 60000 and findtype '29012' backpack39            overhead '*CHOMP* Yum... Delicious!' 6840            dclicktype '29012'41            settimer 'cogu_timer' 042            pause 100043        else44            # Fallback overheads if mushrooms are unavailable or on cooldown45            if timer 'cogu_timer' <= 6000046                overhead 'The magical fungi needs time to sprout!' 4347            else48                overhead 'Alas! My satchel is devoid of mushrooms!' 3349            endif50 51            overhead 'Ommmmm... *Focusing internal energies*' 5552            while mana < maxmana and not dead53                useskill 'Meditation'54                pause 200055            endwhile56            overhead '*Yummmm* The ether flows through me once more!' 6857        endif58    endif59 60    # FOOD CHECK: keep the food satisfaction buff up for the regen bonus61    if not findbuff "food satisfaction" and findtype "tray" backpack as food62        overhead 'A quick bite before the next casting.' 5863        dclick food64        pause 50065    endif66 67    # CASTING: hurl Flamestrike at the locked-in target68    overhead 'Feel the wrath of the inferno!' 3269    cast "Flamestrike"70    waitfortarget 500071    target trainTarget72 73    # Small delay between cycles to prevent lag or macro stuttering74    pause 40075endwhile76 77# ----------------------------------------------------78# TRAINING COMPLETE79# ----------------------------------------------------80overhead "The flames have forged a true archmage!" 88