1
Scripting Chat / set #lobjectid
« on: September 15, 2008, 09:50:51 AM »
Lol i seem to have stumbled upon yet another strange error (probably because i really don't have any clue about the inner workings of easyuo).
I have a sub which is suposed to open a bod, then click all the apropriate items in the backpack. Usually it works fine but sometimes it gets stuck and gets quite a weird behavior. In the code (to open the bod i have:
This always seems to work the first time the bod is supposed to open. But if some errors are detected the code jumps to "fillbod:" again to restart. When that happens it doesn't manage to set the variable #LOBJECTID. I have checked by stepping thrue the code and saw that sometimes the line "set #LOBJECTID !bod" didn't set #LOBJECTID to the value in !bod (even though the value in !bod was set).
Has anyone got any idea what can make the set-command stop working sometimes?
I have a sub which is suposed to open a bod, then click all the apropriate items in the backpack. Usually it works fine but sometimes it gets stuck and gets quite a weird behavior. In the code (to open the bod i have:
Code: [Select]
fillbod:
set #LOBJECTID !bod
event macro 17 0
This always seems to work the first time the bod is supposed to open. But if some errors are detected the code jumps to "fillbod:" again to restart. When that happens it doesn't manage to set the variable #LOBJECTID. I have checked by stepping thrue the code and saw that sometimes the line "set #LOBJECTID !bod" didn't set #LOBJECTID to the value in !bod (even though the value in !bod was set).
Has anyone got any idea what can make the set-command stop working sometimes?