Page 1 of 1

Help Me plz

Posted: 2007-11-11 20:01:34
by Dracula
Well I would like to know what the line of command that I can put this macro case for the magic fails, the character does not try to use the object!

sub murarto()
uo.warmode(0)
uo.waittargetlast()
uo.cast('Wall of Stone')
wait(2850)
uo.useobject('subir')
endsub

Posted: 2007-11-11 20:11:25
by Scripts Writer
If i understand you right, you need to know- is it's fizzle or complete cast?

As usually mana for fizzle need less than for complete cast, so try it

Code: Select all

sub Cast_Poison()
var manaFizzle=5
var manaCast=10
var mana

uo.Cast('Wall')
while uo.Targeting()
  wait(100)
wend

mana=uo.mana
while uo.mana==mana
  wait(100)
wend

if mana==uo.mana+manaFizzle then
  uo.Print('Cast was fizzled ...')
else
  if mana==uo.mana+manaCast then
    uo.Print('Your cast was complete.')
  end if
end if

end sub

*I didn't test it*

Posted: 2007-11-11 20:30:15
by Dracula
I play on a shard where someone comes in a corner and down the horse, then you use wall lasttarget and rises in the horse, but if you fail the magic, I would like it to not up in the horse!