Hello, eatfood() function is bugging when you have no more food in bps, it made my bot crash.
Hello, eatfood() function is bugging when you have no more food in bps, it made my bot crash.
That's not what caused it. It was something else.
Can you try to find out what exactly?
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 sayingOr some time agoCode:error in Action script wptid:27: ["end"]:EatFood: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.Code:error in Action script wptid:27: ["end"]:CharStuck:3: ')' expected (to close '(' at line 2) near 'end'
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.
Can you post the full action?
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.
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.