Signup Now
Results 1 to 7 of 7

Thread: @eatfood() bug

  1. #1
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0

    @eatfood() bug

    Hello, eatfood() function is bugging when you have no more food in bps, it made my bot crash.

  2. #2
    Administrator Lucas Terra's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    2,202
    Reputation
    141
    Rep Power
    10
    That's not what caused it. It was something else.
    Can you try to find out what exactly?

  3. #3
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0
    Well, I rly don't know. The function is working normaly, but when it doesn't see any shrooms, but wants to eat, I'm getting console up saying
    Code:
    error in Action script wptid:27:
      ["end"]:EatFood:3: ')' expected (to close '(' at line 2) near 'end'
    Or some time ago
    Code:
    error in Action script wptid:27:
      ["end"]:CharStuck:3: ')' expected (to close '(' at line 2) near 'end'
    Do you think it's smth wrong with waypoints? Since in both I see wptid:27.

    Ok, I checked that waypoint, and yea forgot to close it with ')', but still, why does it show my hotkeys?
    Last edited by K4r4biN; 12-15-2013 at 10:39 PM.

  4. #4
    Administrator Lucas Terra's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    2,202
    Reputation
    141
    Rep Power
    10
    Can you post the full action?

  5. #5
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0
    CharStuck:
    auto(1000, 2000)
    if $standtime >= 120000 then
    playsoundflash("characterstuck.wav")
    end


    EatFood:
    auto(10000, 23000)
    eatfood()


    And well, this waypoint id 27 was location check:
    if not islocation() then
    gotolabel("LeaveCults", "LeaveCults"
    end

    ^ You see? I forgot ')' to close gotolabel function, but now it works fine. I just don't know why alarms are not working like they should, if I use Player Attack sound alarm, it's alarming me everytime I see new player on screen, but once. And char stuck is alarming me all the time, even if I walk lol.

  6. #6
    Administrator Lucas Terra's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    2,202
    Reputation
    141
    Rep Power
    10
    Yea, I'm already aware of the Alarms problem, and I'm checking on it.

  7. #7
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0
    Quote Originally Posted by Lucas Terra View Post
    Yea, I'm already aware of the Alarms problem, and I'm checking on it.
    Ok, so nice. I wrote you PM with 1 more thing.
    It happened twice to me, my char was on wrong floor/waypoint while it went on location check action, so the bot turned back to the right waypoint, but instead of move, bot were skipping waypoints, from location check to label it should go. I think it might be caused by walking with arrow keys, but btw, is there an option to switch between arrow keys and map clicks? I tried somehow, but didn't work.

 

 

Posting Permissions

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