hi...I need a script for Hidden Earth shard...is a script for cast...in this shard the mage looses concentration if he is still running when the target appears so i would like the script to cast the spell, stop the mage from running just before the appearing of the target, to targetlast and to restart running after the spell...
I've just downloaded Injection and this is my first try, please help me...thanks
sub castMA()
VAR tempocast = 890 #time needed to cast the spell
VAR delay = 500 #time needed for target to appear
VAR macro = 119 #macro button
IF (UO.press(macro)) THEN
UO.Cast("Magic Arrow")
wait(tempocast-(delay + 100))
UO.Say(",moveoff")
Wait(delay)
uo.exec("waittargetlast")
UO.Say(",moveon")
ENDIF
end sub
all the delays are still to be seen...
help script
Moderators: Murderator+, Murderator
Re: help script
aldebaran87 wrote:hi...I need a script for Hidden Earth shard...is a script for cast...in this shard the mage looses concentration if he is still running when the target appears so i would like the script to cast the spell, stop the mage from running just before the appearing of the target, to targetlast and to restart running after the spell...
I've just downloaded Injection and this is my first try, please help me...thanks
sub castMA()
VAR tempocast = 890 #time needed to cast the spell
VAR delay = 500 #time needed for target to appear
VAR macro = 119 #macro button
IF (UO.press(macro)) THEN
UO.Cast("Magic Arrow")
wait(tempocast-(delay + 100))
UO.Say(",moveoff")
Wait(delay)
uo.exec("waittargetlast")
UO.Say(",moveon")
ENDIF
end sub
all the delays are still to be seen...
First of all you will have to be looping the script with:
Code: Select all
While TRUE
code...
WEND
its always good to have a delay so it is not looping continuously eating up all your CPU:
Code: Select all
sub castMA()
Variables....
While TRUE
if press then
code...
end if
Wait(50)
WEND
End Sub
Next, you will have to start the script in UO...
type: ,exec castMA
Now it will be awaiting you to press your button.
Good Luck
