Automatically uses Invisibility scrolls from a selected bag to train Magery. Falls back to your Spellbook when out of scrolls. Automeditates or…
TrainingMagicOrganizingMageryMeditation
0-80 Magery Trainer - Invisibility Scrolls or Spellbook Mushroom.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/e2b5a28c-967a-4ea8-b31d-00f0a4f601ad for latest2# Automation by Jaseowns3## Script: [0-80] Magery Trainer - Invisibility (Scrolls or Spellbook) + Mushroom 4## Created by: neous_#05#############################################6 7# Title: Invisibility & Magery Trainer (Scrolls or Spellbook) with Mushroom Logic8# Description: Automatically uses Invisibility scrolls from a selected bag to train Magery. Falls back to your Spellbook when out of scrolls. 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 bag saved in memory and prompts you to click your training container21unsetvar targetBag22overhead 'SELECT YOUR SCROLL POUCH/BAG' 8823setvar targetBag24 25# Automatically opens your selected bag so Razor can find the scrolls inside26if find targetBag backpack27 dclick targetBag28 pause 60029endif30 31# Change 100 to whatever skill level you want to stop training at (e.g., 105, 115, 120)32@setvar! maxInvSkill 10033 34# ----------------------------------------------------35# MAIN TRAINING LOOP36# ----------------------------------------------------37while skill "Magery" < maxInvSkill and not dead38 39 # MANA CHECK: If mana drops below 30, it tries a mushroom first, then meditates40 if mana < 3041 overhead '*pant... pant...* My mana runs dry!' 3842 43 # Tries to eat a magic mushroom (graphic 29012) if the 60s cooldown passed44 if timer 'cogu_timer' > 60000 and findtype '29012' backpack45 overhead '*CHOMP* Yum... Delicious!' 6846 dclicktype '29012'47 settimer 'cogu_timer' 048 pause 100049 else50 # Fallback overheads if mushrooms are unavailable or on cooldown51 if timer 'cogu_timer' <= 6000052 overhead 'The magical fungi needs time to sprout!' 4353 else54 overhead 'Alas! My satchel is devoid of mushrooms!' 3355 endif56 57 overhead 'Ommmmm... *Focusing internal energies*' 5558 while mana < maxmana and not dead59 useskill 'Meditation'60 pause 200061 endwhile62 overhead '*Yummmm* The ether flows through me once more!' 6863 endif64 endif65 66 # SCROLL CHECK: Searches for Invisibility scrolls (ID: 8024) inside your backpack/bags67 if findtype 8024 backpack as scrollTarget68 overhead 'Anlor Reg... Fade into the ether!' 6869 useobject scrollTarget70 waitfortarget 200071 target self72 pause 100073 # SPELLBOOK FALLBACK: If no scrolls are found, it casts directly from your spellbook74 else75 overhead 'Unleashing raw spellcraft!' 9976 cast "Invisibility"77 waitfortarget 200078 target self79 pause 150080 endif81 82 # Small delay between cycles to prevent lag or macro stuttering83 pause 40084endwhile85 86# ----------------------------------------------------87# TRAINING COMPLETE88# ----------------------------------------------------89overhead "The arcane secrets are fully mastered!" 88