Page 1 of 1

Detect if casted.

Posted: 2009-03-02 21:02:39
by Ever1x
Is it possible to detect that char casted spell with out fizzle?

I have an idea like this. I even don't know if these commands exist.

Code: Select all

var b,a
.........
b=uo.getmana('self')
wait(XXX)
a=uo.Getmana('self')
if a<b then
uo.print(Succses)
end if
end sub


b - Before
a - After

or something like that.

Posted: 2009-03-03 01:54:55
by Destruction

Code: Select all

var mana = uo.mana
uo.deletejournal()
uo.cast()
while mana = uo.mana
    wait( 100 )
wend
if uo.injournal('fizzles') then
    uo.print('Cast failed')
else
    uo.print('Cast sucess')
endif