| Yoko http://forum.yoko.com.ua/ |
|
| help script http://forum.yoko.com.ua/viewtopic.php?f=1&t=3252 |
Page 1 of 1 |
| Author: | aldebaran87 [ 2005-02-28 19:19:39 ] |
| Post subject: | help script |
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... |
|
| Author: | section8 [ 2005-03-05 18:19:01 ] |
| Post subject: | 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: While TRUE its always good to have a delay so it is not looping continuously eating up all your CPU: Code: sub castMA() 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 |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|