Rock5's Millers Ranch Scripts

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Message
Author
bobdole
Posts: 152
Joined: Thu May 26, 2011 6:30 pm

Re: Rock5's Millers Ranch Scripts

#641 Post by bobdole » Sun Jan 15, 2012 12:32 pm

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.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Millers Ranch Scripts

#642 Post by rock5 » Sun Jan 15, 2012 12:49 pm

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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

bobdole
Posts: 152
Joined: Thu May 26, 2011 6:30 pm

Re: Rock5's Millers Ranch Scripts

#643 Post by bobdole » Sun Jan 15, 2012 3:17 pm

I tried:

Code: Select all

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

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Rock5's Millers Ranch Scripts

#644 Post by kuripot » Sun Jan 15, 2012 6:13 pm

did you try this?

Code: Select all

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

your fast login are set up properly??

bobdole
Posts: 152
Joined: Thu May 26, 2011 6:30 pm

Re: Rock5's Millers Ranch Scripts

#645 Post by bobdole » Mon Jan 16, 2012 12:31 pm

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?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Millers Ranch Scripts

#646 Post by rock5 » Mon Jan 16, 2012 8:22 pm

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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

bobdole
Posts: 152
Joined: Thu May 26, 2011 6:30 pm

Re: Rock5's Millers Ranch Scripts

#647 Post by bobdole » Tue Jan 17, 2012 1:03 am

For some reason this code did not work:

Code: Select all

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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Millers Ranch Scripts

#648 Post by rock5 » Tue Jan 17, 2012 1:38 am

Did you follow the installation instructions for both downloads?
http://www.solarstrike.net/phpBB3/viewt ... =27&t=1245
What ahppens exactly?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

D4nte
Posts: 5
Joined: Wed Jan 18, 2012 2:58 pm

Re: Rock5's Millers Ranch Scripts

#649 Post by D4nte » Wed Jan 18, 2012 3:02 pm

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...

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Millers Ranch Scripts

#650 Post by rock5 » Wed Jan 18, 2012 9:04 pm

Are you using the latest version of mrc_optimized? I'm pretty sure it has code to not target moving hens.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

booting1
Posts: 67
Joined: Wed Jul 20, 2011 2:41 am

Re: Rock5's Millers Ranch Scripts

#651 Post by booting1 » Fri Jan 20, 2012 5:12 pm

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

berlin25
Posts: 24
Joined: Sun Oct 16, 2011 5:14 pm

Re: Rock5's Millers Ranch Scripts

#652 Post by berlin25 » Fri Jan 20, 2012 5:22 pm

Maybe it's possible to re-enter millers ranch when many chicken got stucked!?

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: Rock5's Millers Ranch Scripts

#653 Post by M4gm4 » Fri Jan 20, 2012 6:31 pm

berlin25 wrote:Maybe it's possible to re-enter millers ranch when many chicken got stucked!?
nope.. need´s a reconect
I use the google translator, so do not be surprised if my english is funny

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Millers Ranch Scripts

#654 Post by rock5 » Fri Jan 20, 2012 10:33 pm

Try with less clients running at once.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

bobdole
Posts: 152
Joined: Thu May 26, 2011 6:30 pm

Re: Rock5's Millers Ranch Scripts

#655 Post by bobdole » Sat Jan 21, 2012 5:27 am

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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Millers Ranch Scripts

#656 Post by rock5 » Sat Jan 21, 2012 6:42 am

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")
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

D4nte
Posts: 5
Joined: Wed Jan 18, 2012 2:58 pm

Re: Rock5's Millers Ranch Scripts

#657 Post by D4nte » Sat Jan 21, 2012 10:04 am

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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Millers Ranch Scripts

#658 Post by rock5 » Sat Jan 21, 2012 10:28 am

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
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

booting1
Posts: 67
Joined: Wed Jul 20, 2011 2:41 am

Re: Rock5's Millers Ranch Scripts

#659 Post by booting1 » Sat Jan 21, 2012 11:10 am

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.

bobdole
Posts: 152
Joined: Thu May 26, 2011 6:30 pm

Re: Rock5's Millers Ranch Scripts

#660 Post by bobdole » Sat Jan 21, 2012 12:05 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest