Mana Stone Tier Production Factory Now V2.5 06/08/2014

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.
Post Reply
Message
Author
User avatar
Eggman1414
Posts: 111
Joined: Sun Jun 17, 2012 2:27 pm

Re: Mana Stone Tier Production Factory V2.4

#81 Post by Eggman1414 » Tue Apr 29, 2014 3:06 am

it might be, it does an initial grab of items. like 4-5 items then waits. That's what is closing the mailbox.

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

Re: Mana Stone Tier Production Factory V2.4

#82 Post by rock5 » Tue Apr 29, 2014 3:23 am

Have you tried increasing the yrest on line 220 of the userfunction?

Code: Select all

	local lastInboxCount = RoMScript("UMMMailManager.MailCount")
	repeat
		yrest(2000)           -- Line 220
		InboxCount = RoMScript("UMMMailManager.MailCount")
		if InboxCount == lastInboxCount then
  • 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

User avatar
Eggman1414
Posts: 111
Joined: Sun Jun 17, 2012 2:27 pm

Re: Mana Stone Tier Production Factory V2.4

#83 Post by Eggman1414 » Tue Apr 29, 2014 3:37 am

May I ask why is there a yrest statement there? Wouldnt it be easier to have a if/until function there? like if there is mail then collect until mail =0? something like that.

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

Re: Mana Stone Tier Production Factory V2.4

#84 Post by rock5 » Tue Apr 29, 2014 4:55 am

I don't remember but there is a comment there that says "-- Stuck" so I assume it's for handling when it gets stuck.
  • 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

User avatar
cowbot7
Posts: 27
Joined: Tue Oct 04, 2011 4:25 pm

Re: Mana Stone Tier Production Factory V2.4

#85 Post by cowbot7 » Tue Apr 29, 2014 7:53 am

A I'm not sure what the problem is. It doesn't seem like it takes 2 secs per item its definitely less, but i did try changing the 2 sec (line 641) delay in rock5 UMM userfunction.lua it didn't help. the mailbox faults out and then u just stand there waiting on the 25 sec delay not sure why this is happening the sending portion of UMM works fine its the receiving part that's messed up.

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

Re: Mana Stone Tier Production Factory V2.4

#86 Post by rock5 » Tue Apr 29, 2014 8:02 am

What do you mean "the mailbox faults out"? Please be more specific. Does the mailbox close then it waits the 25s? Do you get an error message?
  • 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

User avatar
cowbot7
Posts: 27
Joined: Tue Oct 04, 2011 4:25 pm

Re: Mana Stone Tier Production Factory V2.4

#87 Post by cowbot7 » Tue Apr 29, 2014 8:23 am

The ROM chat box reads [UMM] Automation process failed - process halted. I changed line 641 in UMM userfunction back to orginal 2sec value. gonna try adjusting the line 210 value.

User avatar
cowbot7
Posts: 27
Joined: Tue Oct 04, 2011 4:25 pm

Re: Mana Stone Tier Production Factory V2.4

#88 Post by cowbot7 » Tue Apr 29, 2014 9:00 am

Got UMM to take 20 items had to change 3 things in UMM userfunction they need more adjustment but atleast it is working now.Altered alues are in RED color.
line 203 -- Taking mail
local starttimer = os.clock()
repeat
RoMScript("UMMFrameTab1Tools:ButtonClick('take');"); yrest(1000)
until RoMScript("UMMMailManager.priv_AutoRunning") == true or RoMScript("UMMMailManager.MailCount") == 0 or os.clock() - starttimer > 50
local lastInboxCount = RoMScript("UMMMailManager.MailCount")
repeat
yrest(20000)
InboxCount = RoMScript("UMMMailManager.MailCount")
if InboxCount == lastInboxCount then
-- Stuck
RoMScript("HideUIPanel(MailFrame)")
break
line 216 end


line 638 -- Waiting until finished
local st = os.clock()
repeat
yrest(20000)
if getLastWarning(getMailboxFullString(), os.clock()-st) then
inventory:update()
cprintf(cli.lightgreen,"Recipient's bags are full.\n")
return false, "Recipient's bags are full"
line 646 end

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

Re: Mana Stone Tier Production Factory V2.4

#89 Post by rock5 » Tue Apr 29, 2014 9:15 am

You're confusing me with those line numbers but if the addon fails then there is probably nothing you can do from the userfunctions to make it work other than reruning the function.

The error seems to have something to do with a timeout. It's a bit hard to follow but you could try changing UMM_GLOBAL_AUTOMATION_WAITTIMEOUT to a larger value. I think that's the value involved. It's found on line 108 of tools.lua in UltimateMailMod\Library folder. You could also try increasing UMM_GLOBAL_AUTOMATION_WAITTIME.
  • 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

User avatar
cowbot7
Posts: 27
Joined: Tue Oct 04, 2011 4:25 pm

Re: Mana Stone Tier Production Factory V2.4

#90 Post by cowbot7 » Wed Apr 30, 2014 4:33 am

I will try out your suggestions Rock5 but right now i have to be getting back on my work schedule witch is very time consuming it maybe a few days before i get back into testing out thoughts out so don't think of me as rude and blowing off. I will say your help is always appreciated :) thank you ROCK5!

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

Re: Mana Stone Tier Production Factory V2.4

#91 Post by rock5 » Wed Apr 30, 2014 5:35 am

That's ok. When I expect a reply I usually forget about it until there is a new post anyway.
  • 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

EastWood915
Posts: 2
Joined: Fri May 02, 2014 8:42 am

Re: Mana Stone Tier Production Factory V2.4

#92 Post by EastWood915 » Fri May 02, 2014 8:50 am

Hello, I have a little problem with this stuff:

I want the bot only to do the dailies, switch to another char/aaccount and repeat. So I have removed a bit of code from Daily.xml. It seems to work fine at the beginning, but after doing 10 dailies it keeps on running around instead of switching to another char.

Here's my edited Daily.xml:

Code: Select all

      NpcID = 112794
      QName = "Helping Them Grow" 
	  
	function relog()						<!--Put your Character list here see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=1245 for more info-->
         SetCharList({{
            {account=46 , chars= {}},
            {account=56 , chars= {}},
            {account=67 , chars= {}}

        }})
         LoginNextChar()
         yrest(3000)
         player:update()
         loadProfile()
         loadPaths("Daily.xml");
	end
											<!-- Uses botje's cleanbag functions, see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=2849 for more info -->
		function kill_stupid_newbie_pet()
			if player:findNearestNameOrId(113199) then  -- search vicinity for Newbie Pet
				inventory:update()
				if (inventory:itemTotalCount(207051) > 0) then
					inventory:useItem(207051)
					local newbEgg = inventory:findItem(207051); -- Newbie Pet Egg
					if newbEgg ~= nil then
						inventory:deleteItemInSlot(newbEgg.SlotNumber)
					end
				end
			end
		end
											<!-- Uses botje's cleanbag functions, see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=2849 for more info -->		
		function delete_atonement_voucher()
			if (inventory:itemTotalCount(207082) > 0) then
				local voucher = inventory:findItem(207082); -- Atonement Voucher
				if voucher ~= nil then
						inventory:deleteItemInSlot(voucher.SlotNumber)
				end
			end
		end
</onLoad>
<!-- # 1 --><waypoint x="31847" z="4592" tag ="Main">
	kill_stupid_newbie_pet();
	delete_atonement_voucher();
      if player.Level == 1 then
	  loadPaths("Pre_Daily.xml");
	  end
	  
	  local queststate = getQuestStatus(QName);
      if queststate == "complete" then
         player:target_NPC(NpcID);
         CompleteQuestByName(QName);
         yrest(300);
      end
      
      local dqCount, dqPerDay = RoMScript("Daily_count()");
      if dqPerDay == dqCount then      
         phirCoins = inventory:itemTotalCount(203038)
         print("We have "..phirCoins.." phirius coins")
         
      else
         player:target_NPC(NpcID);
         AcceptQuestByName(QName,NpcID);
         yrest(300);
      end
   </waypoint>
   <!-- #  3 --><waypoint x="31860" z="4646" y="9">   </waypoint>
   <!-- #  2 --><waypoint x="31742" z="5070" y="-11">   </waypoint>
   <!-- #  1 --><waypoint x="31416" z="5715" y="-33" tag = "Item">   
      queststate = getQuestStatus(QName)
      if queststate == "incomplete" then
         player:target_Object(112976,300);
         yrest(2500);
         __WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
      end
    </waypoint>
   <!-- #  1 --><waypoint x="31416" z="5715" y="-33">   </waypoint>
   <!-- #  2 --><waypoint x="31742" z="5070" y="-11">   </waypoint>
   <!-- #  3 --><waypoint x="31860" z="4646" y="9">   </waypoint>
   <!-- #  4 --><waypoint x="31847" z="4583" y="9">   </waypoint>
</waypoints>
I would be very grateful if you helped me with this problem.

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

Re: Mana Stone Tier Production Factory V2.4

#93 Post by rock5 » Fri May 02, 2014 9:10 am

You create the relog function in the onload but you never run it. When you finish the dailies, run relog(). At the moment it just prints how many Phirius Coins you have.

Also I noticed if the character is level 1 it loads the waypoint file "Pre_Daily.xml". You need to know that it will still finish the rest of the code at that waypoint before using the new waypoint file. If you want it to immediately start with the new file add a return just after the loadPaths and it will skip the rest of that waypoint code.
  • 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

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: Mana Stone Tier Production Factory V2.4

#94 Post by noobbotter » Fri May 02, 2014 9:14 am

Looks like you are missing the line that would actually call the relog() function.

In this code, inside the 1st waypoint, I added two comments and inserted a call to the relog function in the correct spot. I also added Rock5's recommendation of a return if the character is level 1:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
	NpcID = 112794
    QName = "Helping Them Grow"
    
   function relog()                  <!--Put your Character list here see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=1245 for more info-->
         SetCharList({{
            {account=46 , chars= {}},
            {account=56 , chars= {}},
            {account=67 , chars= {}}

        }})
         LoginNextChar()
         yrest(3000)
         player:update()
         loadProfile()
         loadPaths("Daily.xml");
   end
                                 <!-- Uses botje's cleanbag functions, see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=2849 for more info -->
      function kill_stupid_newbie_pet()
         if player:findNearestNameOrId(113199) then  -- search vicinity for Newbie Pet
            inventory:update()
            if (inventory:itemTotalCount(207051) > 0) then
               inventory:useItem(207051)
               local newbEgg = inventory:findItem(207051); -- Newbie Pet Egg
               if newbEgg ~= nil then
                  inventory:deleteItemInSlot(newbEgg.SlotNumber)
               end
            end
         end
      end
                                 <!-- Uses botje's cleanbag functions, see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=2849 for more info -->      
      function delete_atonement_voucher()
         if (inventory:itemTotalCount(207082) > 0) then
            local voucher = inventory:findItem(207082); -- Atonement Voucher
            if voucher ~= nil then
                  inventory:deleteItemInSlot(voucher.SlotNumber)
            end
         end
      end
</onLoad>
<!-- # 1 --><waypoint x="31847" z="4592" tag ="Main">
	kill_stupid_newbie_pet();
	delete_atonement_voucher();
	if player.Level == 1 then
		loadPaths("Pre_Daily.xml");
		return
	end
    
	local queststate = getQuestStatus(QName);
	if queststate == "complete" then
		player:target_NPC(NpcID);
		CompleteQuestByName(QName);
		yrest(300);
	end

	local dqCount, dqPerDay = RoMScript("Daily_count()");
	if dqPerDay == dqCount then     -- ****************** If this is true, then you are done with your 10 daily quests
		phirCoins = inventory:itemTotalCount(203038)
		print("We have "..phirCoins.." phirius coins")
		relog()                           --****************** I added this line.
	else
		player:target_NPC(NpcID);
		AcceptQuestByName(QName,NpcID);
		yrest(300);
	end
   </waypoint>
   <!-- #  3 --><waypoint x="31860" z="4646" y="9">   </waypoint>
   <!-- #  2 --><waypoint x="31742" z="5070" y="-11">   </waypoint>
   <!-- #  1 --><waypoint x="31416" z="5715" y="-33" tag = "Item">   
	queststate = getQuestStatus(QName)
	if queststate == "incomplete" then
		player:target_Object(112976,300);
		yrest(2500);
		__WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
	end
    </waypoint>
   <!-- #  1 --><waypoint x="31416" z="5715" y="-33">   </waypoint>
   <!-- #  2 --><waypoint x="31742" z="5070" y="-11">   </waypoint>
   <!-- #  3 --><waypoint x="31860" z="4646" y="9">   </waypoint>
   <!-- #  4 --><waypoint x="31847" z="4583" y="9">   </waypoint>
</waypoints>

EastWood915
Posts: 2
Joined: Fri May 02, 2014 8:42 am

Re: Mana Stone Tier Production Factory V2.4

#95 Post by EastWood915 » Fri May 02, 2014 12:09 pm

rock5, noobbotter - now it works perfectly! :) Thank you very much for amazingly quick answer!

famousk
Posts: 10
Joined: Sat Jun 07, 2014 9:20 am

Re: Mana Stone Tier Production Factory V2.4

#96 Post by famousk » Sat Jun 07, 2014 9:57 am

this is a great! group of waypoints, thank you eggman =]. the only problem i have is when the bot goes to clear the mail after it's finished with daily quests, it only opens the mailbox for about 5 seconds so i can't get all the belts and fusion stones i only get like 5 belts before the mailbox close

i just saw Cowbots edit it works now =] but it only deletes half of the empty mails
Last edited by famousk on Sat Jun 07, 2014 10:39 am, edited 1 time in total.

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

Re: Mana Stone Tier Production Factory V2.4

#97 Post by rock5 » Sat Jun 07, 2014 10:16 am

Sounds like a bug I fixed here. http://www.solarstrike.net/phpBB3/viewt ... 309#p58309. Try that version and tell me if it works.
  • 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

famousk
Posts: 10
Joined: Sat Jun 07, 2014 9:20 am

Re: Mana Stone Tier Production Factory V2.4

#98 Post by famousk » Sat Jun 07, 2014 10:41 am

rock5 wrote:Sounds like a bug I fixed here. http://www.solarstrike.net/phpBB3/viewt ... 309#p58309. Try that version and tell me if it works.
i used cowbots edit to the umm userfunction and it works now but it only clears half of the mailbox after its done talking the belts and fusion stones

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

Re: Mana Stone Tier Production Factory V2.4

#99 Post by rock5 » Sat Jun 07, 2014 11:10 am

Try my version. I think that will fix it completely.
  • 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

famousk
Posts: 10
Joined: Sat Jun 07, 2014 9:20 am

Re: Mana Stone Tier Production Factory V2.4

#100 Post by famousk » Sat Jun 07, 2014 11:47 pm

rock5 wrote:Try my version. I think that will fix it completely.
Your version works great think i have everything running 100% now =] thanks!!

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests