blackd
12-11-2006, 20:07
the cavebot usually waits 300 ms after executing a line of the script.
However with FastExiva you can perform an action and instantly proceed to execute the next line of the script, without waiting.
This is mainly intended for doing operations with user variables without having little pauses in the script. A little basic example would be setting 3 variables at same time at start and instantly proceed to say something. Then later we see how the user variables could be used:
FastExiva _myfirstx=$myx$
FastExiva _myfirsty=$myy$
FastExiva _myfirstz=$myz$
sayMessage something
....
move $_myfirstx$,$_myfirsty$,$_myfirstz$
...
FastExiva can be also used to send packets without waiting for the result, like when you want to say something in trade channel:
....
FastExiva > 96 05 05 00 $hex-tibiastr:selling firesword 5k thais$
move x,y,z
...
This will say it and, instantly after that, it will start to move to x,y,z
However with FastExiva you can perform an action and instantly proceed to execute the next line of the script, without waiting.
This is mainly intended for doing operations with user variables without having little pauses in the script. A little basic example would be setting 3 variables at same time at start and instantly proceed to say something. Then later we see how the user variables could be used:
FastExiva _myfirstx=$myx$
FastExiva _myfirsty=$myy$
FastExiva _myfirstz=$myz$
sayMessage something
....
move $_myfirstx$,$_myfirsty$,$_myfirstz$
...
FastExiva can be also used to send packets without waiting for the result, like when you want to say something in trade channel:
....
FastExiva > 96 05 05 00 $hex-tibiastr:selling firesword 5k thais$
move x,y,z
...
This will say it and, instantly after that, it will start to move to x,y,z