UO Sagas: Train Magery with Meditation break at 40 mana

Created: 16 days ago on 05/28/2025, 10:23:58 PM
FileType: LUA
Size: 2140
Category: Training
Skills: Magery

No description provided

-- Training Magery -- Casting Invisibility, Mana Drain, and Mana Vampire -- Edited by Jaseowns -- Server: UO Sagas -- Helper function for mediation function Meditate() Journal.Clear() Skills.Use('Meditation') Pause(700) if Journal.Contains('You cannot focus your concentration') then Pause(10000) Meditate() elseif Journal.Contains('You must wait a few moments to use another skill') then Pause(1000) Meditate() elseif Journal.Contains('You stop meditation') then Pause(1000) Meditate() elseif Journal.Contains('You are at peace') then Pause(1000) return elseif Journal.Contains('You enter a meditative trance') then while Player.Mana < Player.MaxMana do Pause(100) if Player.Mana >= 40 then return end end return end end while Skills.GetValue('Magery') < 100 do Pause(50) if Player.Mana < 40 or Journal.Contains('insufficient mana') then Meditate() end currentMagery = Skills.GetValue('Magery') if currentMagery >= 70 then if Player.Hits > 35 then Spells.Cast('ManaVampire') end elseif currentMagery >= 62 then Spells.Cast('Invisibility') elseif currentMagery >= 50 then Spells.Cast('ManaDrain') elseif currentMagery < 50 then Messages.Overhead('You need at least 50 Magery to start the training.', Player.Serial) break end if Targeting.WaitForTarget(5000) then Targeting.Target(Player.Serial) Pause(800) end end
View list of scripts
Disclaimer: This is a fan made site and is not directly associated with Ultima Online or UO staff.