Magery macro in RunUO

Ask for help

Moderators: Murderator+, Murderator

Post Reply
sillicontoast
Posts: 17
Joined: 2004-07-17 16:42:24

Magery macro in RunUO

Post by sillicontoast »

Someone have at least a very simple macro for RunUO? I'm getting error on the one i've tried to create (long time without playing).

Code: Select all

sub Lightning() 
repeat
While Uo.mana > 10
uo.WaitTargetSelf()
uo.Cast("Lightning")
if uo.hits < 20 then
Uo.BandageSelf()
Endif
Wait(2500)
until false
end sub
Drakull
Posts: 36
Joined: 2004-07-01 06:02:22

Re: Magery macro in RunUO

Post by Drakull »

Your code has several errors, here's corrected:

Code: Select all

 
sub lightning()
 while true
  if (uo.mana >10) then
    uo.exec ("cast 'Lightning" self')
    if (uo.hits <20) then
     uo.BandageSelf()
    endif
  endif
  wait (2500)
 wend
end sub


sillicontoast wrote:Someone have at least a very simple macro for RunUO? I'm getting error on the one i've tried to create (long time without playing).

Code: Select all

sub Lightning() 
repeat
While Uo.mana > 10
uo.WaitTargetSelf()
uo.Cast("Lightning")
if uo.hits < 20 then
Uo.BandageSelf()
Endif
Wait(2500)
until false
end sub
Post Reply