Help Me plz

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
Dracula
Posts: 2
Joined: 2007-11-11 19:51:55

Help Me plz

Post 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
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post 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*
Dracula
Posts: 2
Joined: 2007-11-11 19:51:55

Post 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!
Post Reply