Yoko

All sides of Injection
It is currently 2026-03-05 09:00:15

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Detect if casted.
PostPosted: 2009-03-02 21:02:39 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
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:
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.


Top
   
 Post subject:
PostPosted: 2009-03-03 01:54:55 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Code:
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.
Skype: d119060


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited