XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Some help would be appreciated.

  1. #1

    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Some help would be appreciated.

    Hello, I'm not able to fine find a solution to this problem. I assume I'm just missing something obvious.

    Code:
     dofile("Forgee.lua")
    function onWalkerSelectLabel(labelName)
    		if
    			(labelName == "capcheck") then
    			delayWalker(1000)
    			setWalkerEnabled(false)
    		else
    				(Self.Cap() < chkcap) or
    				(Self.ItemCount(spearID) <= 7) or
    				(self.itemcount(chkmanas) <= 15) then -- check Cap, Royal Spears, Strong Manas
    				setWalkerEnabled(true)
    				gotoLabel("stophunt")
    		end
    I receive this error message: lua: Script11.lua:45: syntax error near 'or'

    Regards,
    DjimmaJIm

  2. #2

    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is a part of a larger script.
    Last edited by DjimmaJIm; 08-03-2012 at 05:25 PM.

  3. #3
    Senior Member Forgee's Avatar
    Join Date
    Feb 2012
    Location
    Sweden
    Posts
    555
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Replace 'else' with 'if' and add another 'end' at the bottom.

    Not sure if that's it, got to run now.

  4. #4

    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Forgee View Post
    Replace 'else' with 'if' and add another 'end' at the bottom.

    Not sure if that's it, got to run now.

    That did not solve the problem. But as I said, It is a part of a bigger script. But I do not want to post it here.

    Would it be possible for you to take a look at it if I sent it to you? In plain text of course.

    Kind Regards,
    DjimmaJIm

  5. #5
    Senior Member Forgee's Avatar
    Join Date
    Feb 2012
    Location
    Sweden
    Posts
    555
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Sure.

  6. #6

    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Forgee View Post
    Sure.
    I was able to solve the problem, but new problems occurred. I will try to solve them myself, since that is the best way to learn in my opinion.

    I will keep on posting my problems/progress here.


    And thank you for being willing to help me.


    My Kindest Regards,
    DjimmaJIm

  7. #7
    Senior Member Jakob Miller's Avatar
    Join Date
    Feb 2012
    Location
    Sweden
    Posts
    1,477
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DjimmaJIm View Post
    I was able to solve the problem, but new problems occurred. I will try to solve them myself, since that is the best way to learn in my opinion.

    I will keep on posting my problems/progress here.


    And thank you for being willing to help me.


    My Kindest Regards,
    DjimmaJIm
    Post progress and I'll try!

  8. #8
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Quote Originally Posted by DjimmaJIm View Post
    That did not solve the problem. But as I said, It is a part of a bigger script. But I do not want to post it here.

    Would it be possible for you to take a look at it if I sent it to you? In plain text of course.

    Kind Regards,
    DjimmaJIm

    If you can't fix a simple syntax error when given the exact line of fallacy, I can promise noone with a mind gives two shits about your script - especially when it would be missing the xbst anyways.

  9. #9
    Senior Member Jakob Miller's Avatar
    Join Date
    Feb 2012
    Location
    Sweden
    Posts
    1,477
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DarkstaR View Post
    If you can't fix a simple syntax error when given the exact line of fallacy, I can promise noone with a mind gives two shits about your script - especially when it would be missing the xbst anyways.
    Calm down mate. Not everyone has the patient to even look at the errors..

  10. #10
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Quote Originally Posted by Jakob Miller View Post
    Calm down mate. Not everyone has the patient to even look at the errors..
    I'm calm, just stating an obvious fact. Lol.

Posting Permissions

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