XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 4 of 4

Thread: Problems With LUA (Help PLZ!!!)

  1. #1

    Join Date
    Feb 2013
    Posts
    84
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Problems With LUA (Help PLZ!!!)

    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!!

  2. #2
    Senior Member ppgab's Avatar
    Join Date
    Mar 2014
    Location
    Brazil
    Posts
    986
    Mentioned
    86 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Daffik View Post
    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

  3. #3

    Join Date
    Feb 2013
    Posts
    84
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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...

  4. #4
    King Furpan Furpan's Avatar
    Join Date
    Jul 2012
    Location
    Thais
    Posts
    984
    Mentioned
    267 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Daffik View Post
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •