Page 1 of 1

Magery macro in RunUO

Posted: 2004-07-21 21:18:01
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

Re: Magery macro in RunUO

Posted: 2004-07-22 03:05:22
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