Quote:
Originally Posted by Paraly
Code:
#IF=%Timer=3775,30300;
UseID=3775;
Delay=125;
_MemPtrReadVar=%PlayerBase,%OffsetCastTime,DWORD,19;
#DO=%Var19;
Delay=5;
_UNTILMemPtrRead=%PlayerBase,%OffsetCastTimeRemain,FLOAT,<0.3;
SendKey=0x57;
CreateTimer=3775;
#ENDIF
this snippet should skip the cast as soon the cast just has 300 milliseconds left
|
Actually it's not exactly what I mean, sorry for the confusion, I will try illustrate again.
Following is my current code snippet:
PHP Code:
#DO=60000;
Delay=5;
_UNTILMemPtrRead=%TargetBase,%OffsetCastTimeRemain,FLOAT,>0;
Command=using skill;
#DO=60000;
Delay=5;
_UNTILMemPtrRead=%TargetBase,%OffsetCastTimeRemain,FLOAT,<0.3;
Command=less than 30%;
_IFMemPtrRead=%TargetBase,%OffsetCastTimeRemain,FLOAT,>0;
Command=still on;
#ENDIF
Command=next round;
2 more things I can't find the answers yet.
1.I wanna check for if the target is casting a certain skill, for instance, fear.(I don't know how to find the skill ID or offset of the target currently casting spell.
2.The code above won't go through to print "less than 30%" even if the target's spell is about to finish.
Thanks for further assistance, will donate some if I can get my new combat script done :):)