Page 33 of 39

Re: Rock5's Millers Ranch Scripts

Posted: Sun Jan 15, 2012 12:32 pm
by bobdole
I been away so I have not tried the loginnextchar userfunction. I just tested the code and it appeared to take that bot back to the main login screen. Do I need to make changes in loginnextchar as well?

Thanks as always for you help.

Re: Rock5's Millers Ranch Scripts

Posted: Sun Jan 15, 2012 12:49 pm
by rock5
Just update your files from this thread and follow the instructions.
http://www.solarstrike.net/phpBB3/viewt ... =27&t=1245

Then ChangeChar() should load you into the next character. There are other options that might interrest you so read through the post.

Re: Rock5's Millers Ranch Scripts

Posted: Sun Jan 15, 2012 3:17 pm
by bobdole
I tried:

Code: Select all

ChangeChar()
waitForLoadingScreen()
loadPaths("eggs5")
I saw it say "Changing the next character on the same account" but nothing happens.

Re: Rock5's Millers Ranch Scripts

Posted: Sun Jan 15, 2012 6:13 pm
by kuripot
did you try this?

Code: Select all

              sendMacro("}LoginNextToon=true;a={")
               sendMacro("Logout();"); 
      waitForLoadingScreen();
                 loadPaths("eggs5");

your fast login are set up properly??

Re: Rock5's Millers Ranch Scripts

Posted: Mon Jan 16, 2012 12:31 pm
by bobdole
I looked at the functions in the new login script and wanted to know if I could set this code:

Code: Select all

ChangeChar(characterindex, account, channel)
in the individual profiles?

Re: Rock5's Millers Ranch Scripts

Posted: Mon Jan 16, 2012 8:22 pm
by rock5
You usually want to do 1 of 2 things. Either just load the next character in the current account, or go through a specific list of characters. To load the next character you use what I said above. If you want to use a specific list of characters then you will want to use the SetCharList and LoginNextChar functions.

Re: Rock5's Millers Ranch Scripts

Posted: Tue Jan 17, 2012 1:03 am
by bobdole
For some reason this code did not work:

Code: Select all

ChangeChar()
waitForLoadingScreen()
loadPaths("eggs5")

Re: Rock5's Millers Ranch Scripts

Posted: Tue Jan 17, 2012 1:38 am
by rock5
Did you follow the installation instructions for both downloads?
http://www.solarstrike.net/phpBB3/viewt ... =27&t=1245
What ahppens exactly?

Re: Rock5's Millers Ranch Scripts

Posted: Wed Jan 18, 2012 3:02 pm
by D4nte
hey first i like to say great bot great work awesome ;=

and i might add the egg-farm waypoint file has still one litle hickup
at least my bot targets moving hens, when in coop, sometimes
easy fix copy&paste i know and i already done it i just realised that when i last used this bot and this waypoitfile a year ago it had the same problem so...

Re: Rock5's Millers Ranch Scripts

Posted: Wed Jan 18, 2012 9:04 pm
by rock5
Are you using the latest version of mrc_optimized? I'm pretty sure it has code to not target moving hens.

Re: Rock5's Millers Ranch Scripts

Posted: Fri Jan 20, 2012 5:12 pm
by booting1
i have download 4.4 version today and i have a lot stuck chicks and eggs after 1h 3 eggs und a lot chiks :( must allways reconnect

Re: Rock5's Millers Ranch Scripts

Posted: Fri Jan 20, 2012 5:22 pm
by berlin25
Maybe it's possible to re-enter millers ranch when many chicken got stucked!?

Re: Rock5's Millers Ranch Scripts

Posted: Fri Jan 20, 2012 6:31 pm
by M4gm4
berlin25 wrote:Maybe it's possible to re-enter millers ranch when many chicken got stucked!?
nope.. need´s a reconect

Re: Rock5's Millers Ranch Scripts

Posted: Fri Jan 20, 2012 10:33 pm
by rock5
Try with less clients running at once.

Re: Rock5's Millers Ranch Scripts

Posted: Sat Jan 21, 2012 5:27 am
by bobdole
Bots been running well for the most part, but it doesn't seem to work when the eggs get stuck anymore, this code no longer work?

Code: Select all

		if #ignoredHens == 3 and inventory:itemTotalCount(204789) > 0 then
                       -- Set relog option
                       RoMScript("} fastLoginRelog=true a={")
                       -- Logout
                       RoMScript("Logout()")
                       waitForLoadingScreen()
                       -- Restore relog option
                       RoMScript("} fastLoginRelog=false a={")
                       -- Reload path
                       loadPaths("eggs5")
		end

Re: Rock5's Millers Ranch Scripts

Posted: Sat Jan 21, 2012 6:42 am
by rock5
Something you could try is to return to the character selection screen and then relog into the same character. I'm not sure if that works though. If it does, you would end up outside millers so you would have to restart the script.

It would look something like this.

Code: Select all

local currchar = RoMScript("CHARACTER_SELECT.selectedIndex")
ChangeChar(currchar)
or

Code: Select all

RoMScript("ChangeChar(CHARACTER_SELECT.selectedIndex)")
And then

Code: Select all

waitForLoadingScreen()
loadPaths("eggs5")

Re: Rock5's Millers Ranch Scripts

Posted: Sat Jan 21, 2012 10:04 am
by D4nte
rock5 wrote:Are you using the latest version of mrc_optimized? I'm pretty sure it has code to not target moving hens.
yes but only 4 feeding hens not 4 encourage them ;)

thats why i said copy&paste

Re: Rock5's Millers Ranch Scripts

Posted: Sat Jan 21, 2012 10:28 am
by rock5
Ah I understand now. Did you try copy and pasting then?

I think it should look like this.

Code: Select all

	function coopHenEvalFunc(address)
		-- Don't target hens in the ignore list
		for k,v in pairs(ignoredHens) do
			if v.address == address then
				if Timeout == 0 or (Timeout > 0 and Timeout > (os.time() - v.time)) then
					return false
				end
			end
		end

		local hen = CObject(address)

		-- Only target coop Hens
		if 3240 > CObject(address).Z then return false end

		-- Don't target moving hens
		local oldX, oldZ = hen.X, hen.Z
		yrest(100)
		hen:update()
		if distance(hen.X,hen.Z,oldX,oldZ) > 2 then return false end

		return true
	end

Re: Rock5's Millers Ranch Scripts

Posted: Sat Jan 21, 2012 11:10 am
by booting1
rock5 wrote:Try with less clients running at once.
Rom Client Small Version 4.0.7.2482.en

version 4.4 from MRC_Optimized.xml - download it yesterday

MicroMacro v1.02 beta 1
Rom Bot version 3.29, revision 694

have copy the files from the dev order in the game/interface addon order (ingamefunction)


today not so much problems with eggs and chicks.

Re: Rock5's Millers Ranch Scripts

Posted: Sat Jan 21, 2012 12:05 pm
by bobdole
Giving this a try:

Code: Select all

RoMScript("ChangeChar(CHARACTER_SELECT.selectedIndex)")
waitForLoadingScreen()
loadPaths("eggs7")
The issues really is I am running probably one to many bots on the laptop and it causes freezes. The thing is sometimes they run 24 hours with no problems so its PITA.

Update # 1: I put that code in UnStick3 and so far it appears to be working. How would I add a message to the dos window saying something like re-logging. Also do you think if prior to the re-logging I set the ViewDistanceSlider to way low it would use less resources during the re-logging? Last question, have you found a way to reset the untick count I know I tried months ago and nothing worked.