Other than using the boolean function im trying to use is there a more clean cut way of knowing when a button is ready to be pushed? I could try using a timer or some sort of delay to stop the button from being used but then a problem arises.
The other peice of the code not included here is a repositioning script done by Lestor and Cronic. This code is called continuously via an infinite loop that runs when autoattack is on. If I were put put a delay in there to make sure the button was pressed at just the right time the rest of this code wouldnt be executed for a brief period of time (5-6 seconds).
To illustrate this:
Code: Select all
:Mainloop
/doevents
/if n @auto==1 {
/if $target()==TRUE {
/call Reposition
/call Epickick
}
}
/goto :Mainloop
/return
Sub Reposition
blah blah blah
/return
Sub Epickick
/doability "@abilitykey" | executes initial kick
/if n "@noepic"!="1" { /press 9 } else { /press 0 } |noepic changes should I have vallons/wonder rapidity
/return
There has to be some sort of artificial delay someplace in there otherwise I become spammed with "You cannot do that now" from MQ trying to click my epic 2.7 billion times per second

. But as you can see any delay I put in there will cause MQ to stay in this Sub section and disregard the reposition code.
A friend of mine told me this no longer works:
Code: Select all
/if $char(hotbutton,@flyingkick)=="TRUE"
Which would make me very sad since I could do a nested IF using this line and solve pretty much all my problems. Essentially in the end what I want is a script to reposition me at all times (should the mob move) click my epic and flying kick at the correct times, and not spam me in the process. Thanks again for the quick replys and I look forward to hearing from you all.