Rock5's Mail Mods

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
User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#681 Post by Desmond » Wed Oct 01, 2014 8:08 am

that is, need to check if the bot has bought the most stones then it checks if the Valid backpack full - then open mail

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#682 Post by Desmond » Wed Oct 01, 2014 8:12 am

that is, need to check if the bot has bought the most stones then it checks if the Valid backpack full - then open mail

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

Re: Rock5's Mail Mods

#683 Post by noobbotter » Wed Oct 01, 2014 9:19 am

If you are buying the stones in Varanas West and sending them from mailbox in varanas central, this script should do the trick. It will check number of available bag slots, buy enough random fusion stones to fill your bags, go to Varanas Central, and then mail those stones to the character that you specify. To run this, first change the "sendTo" varaiable to the character you want to send to, then go to the fusion stone vendor in Varanas West (Odeley Prole). You must also have the travelTo userfunction installed.

here's the script:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
	sendTo = "CharName" -- ENTER CHARACTER NAME TO SEND STONES TO
	local npcName = 110576 -- "Odeley Prole"
	local stoneName = "Random Fusion Stone"
	__WPL:setWaypointIndex(1)
</onLoad>		
		
	<!-- # 1 --><waypoint x="2752" z="-1631" y="53" tag="at_shop">
		local empty = inventory:itemTotalCount(0)
		player:openStore(npcName)
		store:buyItem(stoneName, empty)
	</waypoint>
	<!-- # 2 --><waypoint x="2478" z="-1242" y="53">	</waypoint>
	<!-- # 3 --><waypoint x="2475" z="-1153" y="53">	</waypoint>
	<!-- # 4 --><waypoint x="2897" z="-825" y="56">
		travelTo("VaranasCentral")
		yrest(2000)
	</waypoint>
	<!-- # 5 --><waypoint x="4592" z="-2040" y="103" tag="gotomail">	</waypoint>
	<!-- # 6 --><waypoint x="4557" z="-2169" y="103">	
		if inventory:itemTotalCount(stoneName) > 0 then
			UMM_SendByNameOrId(sendTo,stoneName);
			yrest(1000);
			RoMScript("UMMFrame:Hide()");
		end
		Error("All Done")
	</waypoint>
</waypoints>

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#684 Post by Desmond » Wed Oct 01, 2014 9:25 am

thank you I'll try, I think that if I insert a lot of name code I think it all will have to send thank you

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#685 Post by Desmond » Wed Oct 01, 2014 10:03 am

noobbotter wrote:If you are buying the stones in Varanas West and sending them from mailbox in varanas central, this script should do the trick. It will check number of available bag slots, buy enough random fusion stones to fill your bags, go to Varanas Central, and then mail those stones to the character that you specify. To run this, first change the "sendTo" varaiable to the character you want to send to, then go to the fusion stone vendor in Varanas West (Odeley Prole). You must also have the travelTo userfunction installed.

here's the script:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
	sendTo = "CharName" -- ENTER CHARACTER NAME TO SEND STONES TO
	local npcName = 110576 -- "Odeley Prole"
	local stoneName = "Random Fusion Stone"
	__WPL:setWaypointIndex(1)
</onLoad>		
		
	<!-- # 1 --><waypoint x="2752" z="-1631" y="53" tag="at_shop">
		local empty = inventory:itemTotalCount(0)
		player:openStore(npcName)
		store:buyItem(stoneName, empty)
	</waypoint>
	<!-- # 2 --><waypoint x="2478" z="-1242" y="53">	</waypoint>
	<!-- # 3 --><waypoint x="2475" z="-1153" y="53">	</waypoint>
	<!-- # 4 --><waypoint x="2897" z="-825" y="56">
		travelTo("VaranasCentral")
		yrest(2000)
	</waypoint>
	<!-- # 5 --><waypoint x="4592" z="-2040" y="103" tag="gotomail">	</waypoint>
	<!-- # 6 --><waypoint x="4557" z="-2169" y="103">	
		if inventory:itemTotalCount(stoneName) > 0 then
			UMM_SendByNameOrId(sendTo,stoneName);
			yrest(1000);
			RoMScript("UMMFrame:Hide()");
		end
		Error("All Done")
	</waypoint>
</waypoints>
Here's a code I think should work it sends my twin stones immediately produces an error

Code: Select all

local names ={"Albisno", "Albisnoo", "Albisnooo", "Albisnoooo","Albisnooooo", "Albisnoooooo", "Albisnooooooo", "Albisnoooooooo", "Pegko", "Pegkoo", "Pegkooo", "Pegkoooo", "Pegkooooo", "Pegkoooooo", "Pegkooooooo", "Pegkoooooooo", "Kiboto", "Kibotoo", "Kibotooo", "Kibotoooo", "Kibotooooo", "Kibotoooooo", "Kibotooooooo", "Kibotoooooooo", "Starsko", "Starskoo", "Starskooo", "Starskoooo", "Starskooooo", "Starskoooooo", "Starskooooooo", "Starskoooooooo"}
for k, recipient in pairs(names) do
    UMM_SendByNameOrId(recipient, 202999, 8)
end

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#686 Post by Desmond » Wed Oct 01, 2014 10:49 am

does not work with my code to send
Last edited by Desmond on Wed Oct 01, 2014 3:52 pm, edited 1 time in total.

User avatar
Bot_romka
Posts: 96
Joined: Tue Apr 05, 2011 2:59 am
Location: Russia

Re: Rock5's Mail Mods

#687 Post by Bot_romka » Wed Oct 01, 2014 3:31 pm

Desmond wrote:does not work with my code to send
Удали код самопальной функции Error("All Done") в шестой точке вэйпоинта.
Remove code of function Error("All Done") in waypoint.

Code: Select all

   <!-- # 6 --><waypoint x="4557" z="-2169" y="103">   
      if inventory:itemTotalCount(stoneName) > 0 then
         UMM_SendByNameOrId(sendTo,stoneName);
         yrest(1000);
         RoMScript("UMMFrame:Hide()");
      end
   </waypoint>

p.s. Desmon а ты на каком сервере играешь?

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#688 Post by Desmond » Wed Oct 01, 2014 3:47 pm

Gebo

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#689 Post by Desmond » Thu Oct 02, 2014 2:15 pm

I do not I do not why sending mail does not work

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>    
	<!-- #  1 --><waypoint x="-10291" z="2206" y="19">
		local empty = inventory:itemTotalCount(0)
        player:openStore("Sys123010_name")
        store:buyItem(228966, 1)
		player:openStore("Sys123010_name")
		yrest(5000)
	</waypoint>
	<!-- #  2 --><waypoint x="-10061" z="2245" y="22">	</waypoint>
	<!-- #  3 --><waypoint x="-9886" z="2295" y="23">		
	if inventory:itemTotalCount("228966") > 0 then
	local names ={"Albisno", "Albisnoo", "Albisnooo", "Albisnoooo", "Albisnooooo", "Albisnoooooo", "Albisnooooooo", "Albisnoooooooo", "Pegko", "Pegkoo", "Pegkooo", "Pegkoooo", "Pegkooooo", "Pegkoooooo", "Pegkooooooo", "Pegkoooooooo", "Kiboto", "Kibotoo", "Kibotooo", "Kibotoooo", "Kibotooooo", "Kibotoooooo", "Kibotooooooo", "Kibotoooooooo", "Starsko", "Starskoo", "Starskooo", "Starskoooo", "Starskooooo", "Starskoooooo", "Starskooooooo", "Starskoooooooo"}
for k, recipient in pairs(names) do
    UMM_SendByNameOrId(recipient, 228966, 8)
end
         yrest(1000);
         RoMScript("UMMFrame:Hide()");
      end
	</waypoint>
</waypoints>

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

Re: Rock5's Mail Mods

#690 Post by rock5 » Fri Oct 03, 2014 1:03 am

itemTotalCount does not accept ids as strings. Write the id as a number.

Code: Select all

if inventory:itemTotalCount(228966) > 0 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
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#691 Post by Desmond » Fri Oct 03, 2014 12:58 pm

I have a problem when my bot send Belt when he posted 180 belt when they have run out to buy it ex after he re-sends all the characters, I need to continue to send

User avatar
cibervagos
Posts: 26
Joined: Sat Apr 12, 2014 10:36 pm
Location: Argentina

Re: Rock5's Mail Mods

#692 Post by cibervagos » Fri Oct 03, 2014 8:46 pm

Desmond wrote:I have a problem when my bot send Belt when he posted 180 belt when they have run out to buy it ex after he re-sends all the characters, I need to continue to send
Hi! I use this waypoint to buy and send belts. Use TWorkers userfunction. But You can modify to make it work for you.
Attachments
BuyBelts.xml
Buy and Send Belt with Rock5's Mail Mods and TWorkers
(3.09 KiB) Downloaded 293 times

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#693 Post by Desmond » Sat Oct 04, 2014 6:16 pm

I ask to help, when for me a boat bought the complete backpack of Belts, then he is to mail and sends to the personages when Belts made off then is back to buy when he again bought in a backpack Belts then is back to mail but does not continue to send and all first begins personages to send, and I need that he continued farther to send to whom did not send.
My Code Here.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
   local npcName = 228966 -- "Sys123010_name"
   local BeltName = "Belt Returns"
   __WPL:setWaypointIndex(1)
</onLoad>
	<!-- #  1 --><waypoint x="-10291" z="2206" y="19">
		local empty = inventory:itemTotalCount(0)
        player:openStore("Sys123010_name")
        store:buyItem(228966, 1)
	</waypoint>
	<!-- #  2 --><waypoint x="-10061" z="2245" y="22">	</waypoint>
	<!-- #  3 --><waypoint x="-9886" z="2295" y="23">		
	if inventory:itemTotalCount(228966) > 0 then
local names ={"Albisno", "Albisnoo", "Albisnooo", "Albisnoooo", "Albisnooooo", "Albisnoooooo", "Albisnooooooo", "Albisnoooooooo", "Pegko", "Pegkoo", "Pegkooo", "Pegkoooo", "Pegkooooo", "Pegkoooooo", "Pegkooooooo", "Pegkoooooooo", "Kiboto", "Kibotoo", "Kibotooo", "Kibotoooo", "Kibotooooo", "Kibotoooooo", "Kibotooooooo", "Kibotoooooooo", "Starsko", "Starskoo", "Starskooo", "Starskoooo", "Starskooooo", "Starskoooooo", "Starskooooooo", "Sosko", "Soskoo", "Soskooo", "Soskoooo", "Soskooooo", "Soskoooooo", "Soskooooooo", "Soskoooooooo"}
for k, recipient in pairs(names) do
    UMM_SendByNameOrId(recipient, 228966, 8)
end
         yrest(1000);
         RoMScript("UMMFrame:Hide()");
      end
	</waypoint>
</waypoints>
There is another large nuance I buy Straps in Roaring Bay and there npc walks in different directions a boat will buy in belts he stepped back a boat whipped off an aim((
sorry for my english, I translate translator sorry.

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

Re: Rock5's Mail Mods

#694 Post by rock5 » Sat Oct 04, 2014 7:59 pm

Try this. It will buy only the number you need and will go back and buy more when needed. Note: This is untested.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<onLoad>
		npcName = 123010 -- Didide Spiderfoot
		BeltName = 228966 -- Recall Belt
		__WPL:setWaypointIndex(1)
		names ={"Albisno", "Albisnoo", "Albisnooo", "Albisnoooo", "Albisnooooo", "Albisnoooooo", "Albisnooooooo", "Albisnoooooooo", "Pegko", "Pegkoo", "Pegkooo", "Pegkoooo", "Pegkooooo", "Pegkoooooo", "Pegkooooooo", "Pegkoooooooo", "Kiboto", "Kibotoo", "Kibotooo", "Kibotoooo", "Kibotooooo", "Kibotoooooo", "Kibotooooooo", "Kibotoooooooo", "Starsko", "Starskoo", "Starskooo", "Starskoooo", "Starskooooo", "Starskoooooo", "Starskooooooo", "Sosko", "Soskoo", "Soskooo", "Soskoooo", "Soskooooo", "Soskoooooo", "Soskooooooo", "Soskoooooooo"}
		name_index = 0
		number_to_send = 8
	</onLoad>
	<!-- #  1 --><waypoint x="-10291" z="2206" y="19">
		local empty = inventory:itemTotalCount(0)
		local needed = (#names - name_index) * number_to_send - inventory:itemTotalCount(BeltName)
		player:openStore(npcName)
		if needed > empty then
			store:buyItem(BeltName, empty)
		else
			store:buyItem(BeltName, needed)
		end
	</waypoint>
	<!-- #  2 --><waypoint x="-10061" z="2245" y="22">   </waypoint>
	<!-- #  3 --><waypoint x="-9886" z="2295" y="23">
		while inventory:itemTotalCount(BeltName) >= number_to_send do
			name_index = name_index + 1
			if name_index > #names then
				error("Finished.")
			end
			UMM_SendByNameOrId(names[name_index], BeltName, number_to_send)
		end
		yrest(1000);
		RoMScript("UMMFrame:Hide()");
	</waypoint>
</waypoints>
If you use 'local' then the variable will only be available in the local scope. This means if you define a variable local in the onload then it will only be available in the onload. If you want to use a variable throughout the waypoint file then don't use 'local'.
  • 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
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#695 Post by Desmond » Sun Oct 05, 2014 3:59 am

Thank you very much I'll check

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#696 Post by Desmond » Sun Oct 05, 2014 4:23 pm

Thanks works if still solve the problem over the channel

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

Re: Rock5's Mail Mods

#697 Post by rock5 » Sun Oct 05, 2014 10:06 pm

I didn't understand the part about "channel". Could you explain it again?
  • 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
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#698 Post by Desmond » Mon Oct 06, 2014 5:58 am

I'm talking about the addon auto login, it belongs to any channel even when I'm standing 2

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: Rock5's Mail Mods

#699 Post by Desmond » Mon Oct 06, 2014 6:35 am

I have remade the purchase of stones just something it does not work as a non-strange

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
   <onLoad>
      npcName = 111392 -- Didide Spiderfoot
      StoneName = 202999 -- Recall Stone
      __WPL:setWaypointIndex(1)
      names ={"Albisno", "Albisnoo", "Albisnooo", "Albisnoooo", "Albisnooooo", "Albisnoooooo", "Albisnooooooo", "Albisnoooooooo", "Pegko", "Pegkoo", "Pegkooo", "Pegkoooo", "Pegkooooo", "Pegkoooooo", "Pegkooooooo", "Pegkoooooooo", "Kiboto", "Kibotoo", "Kibotooo", "Kibotoooo", "Kibotooooo", "Kibotoooooo", "Kibotooooooo", "Kibotoooooooo", "Starsko", "Starskoo", "Starskooo", "Starskoooo", "Starskooooo", "Starskoooooo", "Starskooooooo", "Sosko", "Soskoo", "Soskooo", "Soskoooo", "Soskooooo", "Soskoooooo", "Soskooooooo", "Soskoooooooo"}
      name_index = 0
      number_to_send = 8
   </onLoad>
   <!-- #  1 --><waypoint x="-22991" z="4634" y="-260">
      local empty = inventory:itemTotalCount(0)
      local needed = (#names - name_index) * number_to_send - inventory:itemTotalCount(StoneName)
      player:openStore(npcName)
      if needed > empty then
         store:buyItem(StoneName, empty)
      else
         store:buyItem(StoneName, needed)
      end
   </waypoint>
   <!-- #  2 --><waypoint x="-22986" z="4475" y="-260">	</waypoint>
   <!-- #  3 --><waypoint x="-23255" z="4250" y="-242">	</waypoint>
<!-- #  4 --><waypoint x="-23466" z="4089" y="-178">
      while inventory:itemTotalCount(StoneName) >= number_to_send do
         name_index = name_index + 1
         if name_index > #names then
            error("Finished.")
         end
         UMM_SendByNameOrId(names[name_index], StoneName, number_to_send)
      end
      yrest(1000);
      RoMScript("UMMFrame:Hide()");
   </waypoint>
</waypoints>

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

Re: Rock5's Mail Mods

#700 Post by rock5 » Mon Oct 06, 2014 8:38 am

Desmond wrote:I'm talking about the addon auto login, it belongs to any channel even when I'm standing 2
Are you saying you want to start the game in channel 2 but it's not working? How are you starting the game?
Desmond wrote:I have remade the purchase of stones just something it does not work as a non-strange
Are yo saying it's not working? Did the belt code I posted work? What happened when you tried it?
  • 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

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests