Hi all, me again...
This script is super super fast, possibly too fast for its own good.....
Sometimes it can run for ages with no probs, but something that does happen quite a bit is i get the message "ok Please un-equip both hands and restart script."
I have been watching when this happens and looking through the code to try and see what is tripping it up....
I think i know what is happening, i live on a freeshard and every 10 to 15 mins it does a world save, this causes between 1 second and 3 seconds of lag/screenfreeze....
I think that when the timing is perfect the script arms the axe at the exact moment the server saves and lags, then it trips itself up and asks you to empty both your hands before you can continue....
I think i need to put a pause in somewhere for when this happens...
I'm just not sure where to put it and how to write it so it works...
Going to look through the tutorials to see if i can get some pointers.....
EDIT:
This is the bit of code thats tripping up, could someone explain to me what this bit of code is doing?
I presume it is looking at what is in the chars hands, if it doesnt match what it expects to see it asks you to empty both your hands?
"exevent drag #findid #findstack
wait %TR_wait
exevent droppd
wait 15
finditem %TR_axetype C_ , #charid
if #findkind = -1
{
display ok Please un-equip both hands and restart script.
halt"
Is it possible to add a piece of code that would disarm both hands should this scenario turn up?
Then resume by arming the axe again?