Page 35 of 39

Re: Rock5's Mail Mods

Posted: Wed Oct 01, 2014 8:08 am
by Desmond
that is, need to check if the bot has bought the most stones then it checks if the Valid backpack full - then open mail

Re: Rock5's Mail Mods

Posted: Wed Oct 01, 2014 8:12 am
by Desmond
that is, need to check if the bot has bought the most stones then it checks if the Valid backpack full - then open mail

Re: Rock5's Mail Mods

Posted: Wed Oct 01, 2014 9:19 am
by noobbotter
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>

Re: Rock5's Mail Mods

Posted: Wed Oct 01, 2014 9:25 am
by Desmond
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

Re: Rock5's Mail Mods

Posted: Wed Oct 01, 2014 10:03 am
by Desmond
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

Re: Rock5's Mail Mods

Posted: Wed Oct 01, 2014 10:49 am
by Desmond
does not work with my code to send

Re: Rock5's Mail Mods

Posted: Wed Oct 01, 2014 3:31 pm
by Bot_romka
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 а ты на каком сервере играешь?

Re: Rock5's Mail Mods

Posted: Wed Oct 01, 2014 3:47 pm
by Desmond
Gebo

Re: Rock5's Mail Mods

Posted: Thu Oct 02, 2014 2:15 pm
by Desmond
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>

Re: Rock5's Mail Mods

Posted: Fri Oct 03, 2014 1:03 am
by rock5
itemTotalCount does not accept ids as strings. Write the id as a number.

Code: Select all

if inventory:itemTotalCount(228966) > 0 then

Re: Rock5's Mail Mods

Posted: Fri Oct 03, 2014 12:58 pm
by Desmond
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

Re: Rock5's Mail Mods

Posted: Fri Oct 03, 2014 8:46 pm
by cibervagos
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.

Re: Rock5's Mail Mods

Posted: Sat Oct 04, 2014 6:16 pm
by Desmond
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.

Re: Rock5's Mail Mods

Posted: Sat Oct 04, 2014 7:59 pm
by rock5
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'.

Re: Rock5's Mail Mods

Posted: Sun Oct 05, 2014 3:59 am
by Desmond
Thank you very much I'll check

Re: Rock5's Mail Mods

Posted: Sun Oct 05, 2014 4:23 pm
by Desmond
Thanks works if still solve the problem over the channel

Re: Rock5's Mail Mods

Posted: Sun Oct 05, 2014 10:06 pm
by rock5
I didn't understand the part about "channel". Could you explain it again?

Re: Rock5's Mail Mods

Posted: Mon Oct 06, 2014 5:58 am
by Desmond
I'm talking about the addon auto login, it belongs to any channel even when I'm standing 2

Re: Rock5's Mail Mods

Posted: Mon Oct 06, 2014 6:35 am
by Desmond
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>

Re: Rock5's Mail Mods

Posted: Mon Oct 06, 2014 8:38 am
by rock5
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?