Log in

View Full Version : Problems With LUA (Help PLZ!!!)



Daffik
05-15-2014, 06:36 PM
im having some real problems with my lua scripts if anyone has any idea whats wrong please help
i have been creating my own settings and scripts for nearly a year and they have worked fine untill the other day, now none of the seem to work even tried some really basic ones

registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")

function onWalkerSelectLabel(labelName)
if (labelName == "check1") then
Walker.ConditionalGoto((Self.ItemCount(237) <= 20), "leave", "hunt1")
end
end

even this very basic scripts doesnt seem to work atm, please help!!

ppgab
05-15-2014, 06:59 PM
im having some real problems with my lua scripts if anyone has any idea whats wrong please help
i have been creating my own settings and scripts for nearly a year and they have worked fine untill the other day, now none of the seem to work even tried some really basic ones

registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")

function onWalkerSelectLabel(labelName)
if (labelName == "check1") then
Walker.ConditionalGoto((Self.ItemCount(237) <= 20), "leave", "hunt1")
end
end

even this very basic scripts doesnt seem to work atm, please help!!

can you give us the error?

also 500th post xd

Daffik
05-18-2014, 10:23 AM
that's the weirdest thing, there is no error msg what so ever, the script just doesn't work, it goes strait past the checker and leaves, where it should go back to the hunt 1, if i have enough supplies, as i say this is 1 of my first most basic scripts and i cant get it to work, since i wiped my laptop, i sent all my scripts and settings to my email and re-downloaded them after i wiped my laptop, im going to try un-installing xenobot and reinstalling it, just in case but i really cant see that being the problem...

Furpan
05-18-2014, 11:36 AM
that's the weirdest thing, there is no error msg what so ever, the script just doesn't work, it goes strait past the checker and leaves, where it should go back to the hunt 1, if i have enough supplies, as i say this is 1 of my first most basic scripts and i cant get it to work, since i wiped my laptop, i sent all my scripts and settings to my email and re-downloaded them after i wiped my laptop, im going to try un-installing xenobot and reinstalling it, just in case but i really cant see that being the problem...

1. Check that the labelname is correct (might be an extra space etc, something hard to notice)
2. Add a wait or two, see if it solves it
3. Disable any module running, see if it solves it