Page 1 of 1

Error on Ranch Script

Posted: Fri May 20, 2011 7:09 pm
by horsewilly
So, I haven't botted in a long time, and was just gonna start putting up some bots in miller's ranch again, but after just one egg harvesting round, every single micromacro crashed with the error

scripts/rom/bot.lua:760: Failed to compile and run Lua code for waypoint #1

Im using the old ranch script made by rock5. Anyone know what might be wrong?

Thanks :)

Re: Error on Ranch Script

Posted: Fri May 20, 2011 7:30 pm
by rock5
Did the client update? Did you update the bot? Have you tried updating the millers egg script to the latest version? What version of the egg script are you using anyway?

Re: Error on Ranch Script

Posted: Sat May 21, 2011 4:14 am
by horsewilly
I was using a really old version, but I just updated to 3.2 and am getting the same error. I just redownloaded micromacro and the /rom directory 2 days ago also, so it should all be updated?

Re: Error on Ranch Script

Posted: Sat May 21, 2011 6:40 am
by lisa
dont forget to copy the new ingamefunctions folder to Runes of Magic/Interface/Addons from the devtools directory

Re: Error on Ranch Script

Posted: Sat May 21, 2011 7:39 pm
by horsewilly
yes, didn't have that before, so I did it now - but it's still giving me the same error :(

Re: Error on Ranch Script

Posted: Sat May 21, 2011 8:52 pm
by rock5
The error suggest that there is a syntax error in the egg script. No one else has reported it so maybe when you were changing the settings in it you stuffed it up? Try redownloading it again and being very careful of any settings you change. If you still get the error, post the changes you make here.

Re: Error on Ranch Script

Posted: Sun May 29, 2011 1:45 pm
by horsewilly
Im running the new, original script now and the one I attempted to change, the changed one isn't working while the original is.
only thing I tried to change is that I want it to load a new waypoint file when it hits a certain level, so I just added

Code: Select all

if( player.Level > 9 ) then
			loadPaths("RanchOut");

to the 10th waypoint, but I guess that's wrong somehow. how else would I do this?

Re: Error on Ranch Script

Posted: Sun May 29, 2011 2:34 pm
by Giram
horsewilly wrote:Im running the new, original script now and the one I attempted to change, the changed one isn't working while the original is.
only thing I tried to change is that I want it to load a new waypoint file when it hits a certain level, so I just added

Code: Select all

if( player.Level > 9 ) then
			loadPaths("RanchOut");

to the 10th waypoint, but I guess that's wrong somehow. how else would I do this?
Are you missing end from if statement and you can't do comparision with > that way if i remember right. So try this:

Code: Select all

if (9 > player.Level) then
	loadPaths("RanchOut")
end

Re: Error on Ranch Script

Posted: Sun May 29, 2011 5:58 pm
by lisa

Code: Select all

player.Level > 9
should work fine. You are just missing the

Code: Select all

end

Code: Select all

if( player.Level > 9 ) then
loadPaths("RanchOut")
end

Re: Error on Ranch Script

Posted: Mon May 30, 2011 11:36 am
by horsewilly
oh .. seems I missed that when I just copied it from my old waypoint file ... thanks :)