Detect if casted.

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Ever1x
Posts: 38
Joined: 2009-02-09 17:12:23

Detect if casted.

Post 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.
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post 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
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Post Reply