Tier Stone Production: 2 Scripts to Rule them All

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Elf Daily And Tier Stones

#21 Post by rock5 » Sat Jan 26, 2013 12:02 am

I don't know why you are using the advanced function. You should only really need to use it if one of the other functions can't do what you want. I'd just use

Code: Select all

UMM_SendByNameOrId(nameTable[counter],getIdsFrom(armor),10)
  • 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: Elf Daily And Tier Stones

#22 Post by Eggman1414 » Sat Jan 26, 2013 12:08 am

Ok how would I use this command but for fusion stones?

Code: Select all

function sendBelts()
   local armor=MGbuildItemTableOfType("Armor");
   armor=selectItemsByName(armor, itemName);
What does armor change to? What do I need to change the local armor variable too? If I have itemName = "Random Fusion Stone"

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

Re: Elf Daily And Tier Stones

#23 Post by Eggman1414 » Sat Jan 26, 2013 1:42 am

Ok got this working it is similar to the Belts Script but this is for the Random Fusion Stones in Varnans.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
-- Buy Belts script - V1.0 - written by Jandrana - Used as a Layout
-- Edited by Eggman1414

nameTable =
{
---characters go here,
}
 counter = 1

itemName = "Random Fusion Stone"; 

function buyFusion()
	player:openStore("Odeley Prole")
	store:buyItem(itemName, 10);
	yrest(1000)
end

function sendFusion()
	UMM_SendAdvanced(nameTable[counter], 202999, nil, nil, nil, nil, nil, nil, 10, nil, nil);
	yrest(500);
	sendMacro("CloseAllWindows()");
		counter = counter  + 1;
end
</onLoad>
	<!-- #  1 --><waypoint x="2755" z="-1627" y="53">	
		buyFusion();
	</waypoint>
	<!-- #  2 --><waypoint x="2914" z="-1633" y="77">	</waypoint>
	<!-- #  3 --><waypoint x="3110" z="-1760" y="126">	</waypoint>
	<!-- #  4 --><waypoint x="3518" z="-1611" y="126">	</waypoint>
	<!-- #  5 --><waypoint x="3669" z="-1774" y="126">	</waypoint>
	<!-- #  6 --><waypoint x="3933" z="-1676" y="175">	</waypoint>
	<!-- #  7 --><waypoint x="4308" z="-2048" y="126">	</waypoint>
	<!-- #  8 --><waypoint x="4540" z="-2151" y="126">
         if nameTable[counter] == "Last characters Name" then
            print("Done mailing.")
            player:sleep()
		else
		sendFusion();
end
</waypoint>
	<!-- #  1 --><waypoint x="4545" z="-2163" y="103">	</waypoint>
	<!-- #  2 --><waypoint x="4084" z="-1733" y="150">	</waypoint>
	<!-- #  3 --><waypoint x="3805" z="-1694" y="156">	</waypoint>
	<!-- #  4 --><waypoint x="3613" z="-1700" y="102">	</waypoint>
	<!-- #  5 --><waypoint x="3491" z="-1564" y="102">	</waypoint>
	<!-- #  6 --><waypoint x="3078" z="-1738" y="102">	</waypoint>
	<!-- #  7 --><waypoint x="2802" z="-1590" y="53">	</waypoint>
	<!-- #  8 --><waypoint x="2756" z="-1625" y="53">
	</waypoint>
</waypoints>
Thank you Rock5 and Lisa and Jandrana for all your help.

Next step is to use Rock5's fusion commands and make a script for makeing Tier Stones and Sending them away.

Will post an update once I get that script to work

User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: Elf Daily And Tier Stones

#24 Post by lolita » Sat Jan 26, 2013 6:35 am

this is what i use for my lv 10 alts.
sending fusions

Code: Select all

UMM_SendByNameOrId(nameTable[counter],{"Fusion Stone","Random Fusion Stone"}, 10)
then i clear bag and set speed

Code: Select all

sendMacro("Fusion_ClearBagOnClick()")	yrest(1000);
		sendMacro("FusionConfig_OnShow()");  yrest(500);
		Fusion_Config("Speed", .7)
		sendMacro("FusionConfig_Save()") yrest(500);
this is on load

Code: Select all

<onLoad>		
		function SendStones()
			if inventory:itemTotalCount(202844) == 10 then
				UMM_SendByNameOrId("char_name","Mana Stone Tier 5"); yrest(1000); 
			else
				player:sleep();
			end
		end
		
		function CheckForStone()
			if inventory:itemTotalCount(202844) > 0 then
				player:sleep();
			end
		end
	</onLoad>
and then when arive at mail

Code: Select all

		UMM_TakeMail()		yrest(1000);
		RoMScript("UMMFrame:Hide()")	yrest(1000);
		Fusion_MakeMaxManaStones(4)	-- change number of tier you want to make							
		player:target_Object ("Mailbox")	yrest(1000);
		SendStones()		
		RoMScript("UMMFrame:Hide()")	yrest(1000);
		CheckForStone()	player:rest(1);
		sendMacro("}LoginNextToon=true a={") -- Tell autologin to log next character
		sendMacro("Logout()") -- Logout
		waitForLoadingScreen() -- Wait until the next character has finished loading
		loadPaths("name_of_script_here");
i make only 10 tier 5 stones, so SendStones() function chek if you make secesfuly 10 stones and then seng them, else player go to sleep, and CheckForStone() check if you secesfuly sended items, so if you make t6,t7 you need to modify it a litle bit.
hope this will help you
Life is a journey, not destination :D

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

Re: Elf Daily And Tier Stones

#25 Post by Eggman1414 » Sat Jan 26, 2013 1:20 pm

lolita wrote:this is what i use for my lv 10 alts.
sending fusions

Code: Select all

UMM_SendByNameOrId(nameTable[counter],{"Fusion Stone","Random Fusion Stone"}, 10)
then i clear bag and set speed

Code: Select all

sendMacro("Fusion_ClearBagOnClick()")	yrest(1000);
		sendMacro("FusionConfig_OnShow()");  yrest(500);
		Fusion_Config("Speed", .7)
		sendMacro("FusionConfig_Save()") yrest(500);
this is on load

Code: Select all

<onLoad>		
		function SendStones()
			if inventory:itemTotalCount(202844) == 10 then
				UMM_SendByNameOrId("char_name","Mana Stone Tier 5"); yrest(1000); 
			else
				player:sleep();
			end
		end
		
		function CheckForStone()
			if inventory:itemTotalCount(202844) > 0 then
				player:sleep();
			end
		end
	</onLoad>
and then when arive at mail

Code: Select all

		UMM_TakeMail()		yrest(1000);
		RoMScript("UMMFrame:Hide()")	yrest(1000);
		Fusion_MakeMaxManaStones(4)	-- change number of tier you want to make							
		player:target_Object ("Mailbox")	yrest(1000);
		SendStones()		
		RoMScript("UMMFrame:Hide()")	yrest(1000);
		CheckForStone()	player:rest(1);
		sendMacro("}LoginNextToon=true a={") -- Tell autologin to log next character
		sendMacro("Logout()") -- Logout
		waitForLoadingScreen() -- Wait until the next character has finished loading
		loadPaths("name_of_script_here");
i make only 10 tier 5 stones, so SendStones() function chek if you make secesfuly 10 stones and then send them, else player go to sleep, and CheckForStone() check if you successively sent items, so if you make t6,t7 you need to modify it a little bit.
hope this will help you
Thanks Lolita, I'm sure this will be great. I do have a question though. What does the return path argument do? For Instance, When I buy belts in Limo I want to use the goto portal function and Noobbotter's World Traveler Userfunction http://www.solarstrike.net/phpBB3/viewt ... =27&t=4183 to go to Varanas to start the buy Fusion Script. Is there a way to link the two? Like once it loads the Fusion Script, it has a couple of waypoints to make it to the vender, but once it makes it, it just does the script normally?

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

Re: Elf Daily And Tier Stones

#26 Post by Eggman1414 » Sat Jan 26, 2013 6:51 pm

Im having so troubles understanding why I get this error:
"C:/micromacro/lib/mods/xml.lua:336: error closing parser: no element found"

Here is my code:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
	  function relog()
         SetCharList({
            {account=2 , chars= {2,3,4,5,6,7,8}},
            {account=54 , chars= {1,2,3,4,5,6,7,8}},
            {account=55 , chars= {1,2,3,4,5,6,7,8}},
            })
         LoginNextChar()
         yrest(3000)
         player:update()
         loadProfile()
         loadPaths("makefusion.xml");
		end

nameTable =
{
"Mana Stone Tier 8","Mana Stone Tier 9","Mana Stone Tier 10"
}
      function SendStones()
            UMM_SendByNameOrId("character's Name Here","nameTable");
			yrest(1000); 
            relog();
      end
</onLoad>
<!-- #  1 --><waypoint x="31846" z="4590" y="9" tag ="Main">>	</waypoint>
<!-- #  2 --><waypoint x="31880" z="4567" y="4">	</waypoint>
<!-- #  3 --><waypoint x="32042" z="4455" y="23">	</waypoint>
<!-- #  4 --><waypoint x="32154" z="4410" y="39">	</waypoint>
<!-- #  5 --><waypoint x="32101" z="4242" y="62">	</waypoint>
<!-- #  6 --><waypoint x="32152" z="4127" y="62">	</waypoint>
<!-- #  7 --><waypoint x="32031" z="4057" y="62">	</waypoint>
<!-- #  8 --><waypoint x="31956" z="3836" y="8">	</waypoint>
<!-- #  9 --><waypoint x="31830" z="3699" y="-15">	</waypoint>
<!-- # 10 --><waypoint x="31757" z="3617" y="-17">	</waypoint>
<!-- # 11 --><waypoint x="31768" z="3607" y="-16">
	  UMM_TakeMail()
	  yrest(1000);
      RoMScript("UMMFrame:Hide()")
	  yrest(1000);
      Fusion_MakeMaxManaStones()            
      player:target_Object ("Mailbox")
	  yrest(1000);
      SendStones()
      RoMScript("UMMFrame:Hide()")
	  yrest(1000);
	</waypoint>
<!-- # 12 --><waypoint x="31757" z="3617" y="-17">	</waypoint>
<!-- # 13 --><waypoint x="31830" z="3699" y="-15">	</waypoint>
<!-- # 14 --><waypoint x="31956" z="3836" y="8">	</waypoint>
<!-- # 15 --><waypoint x="32031" z="4057" y="62">	</waypoint>
<!-- # 16 --><waypoint x="32152" z="4127" y="62">	</waypoint>
<!-- # 17 --><waypoint x="32101" z="4242" y="62">	</waypoint>
<!-- # 18 --><waypoint x="32154" z="4410" y="39">	</waypoint>
<!-- # 19 --><waypoint x="32042" z="4455" y="23">	</waypoint>
<!-- # 20 --><waypoint x="31880" z="4567" y="4">	</waypoint>
<!-- # 21 --><waypoint x="31846" z="4590" y="9">
	yrest(1000);
	relog()
</waypoint>

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Elf Daily And Tier Stones

#27 Post by lisa » Sat Jan 26, 2013 7:20 pm

if that is the entire file you are missing </waypoints> at the end.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

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

Re: Elf Daily And Tier Stones

#28 Post by Eggman1414 » Sat Jan 26, 2013 9:16 pm

Thanks lisa ha ha. Felt kind of dumb after that. Is there a command for using an item? For example: I just sent xp orbs to every character so they can be lvl 10 and use a waypoint to get them to Varanas to get the Arcane Transmuter. How do I get the character to get the mail and use the xp orbs?

User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: Elf Daily And Tier Stones

#29 Post by lolita » Sat Jan 26, 2013 9:26 pm

Code: Select all

UMM_TakeMail()

Code: Select all

inventory:useItem("name or id")
Life is a journey, not destination :D

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

Re: Elf Daily And Tier Stones

#30 Post by Eggman1414 » Sat Jan 26, 2013 9:30 pm

lolita wrote:

Code: Select all

UMM_TakeMail()

Code: Select all

inventory:useItem("name or id")
ok thats what I thought. But now something weird is going on. I tried using the UMM_TakeMail() function and it opens the first page in the Elf's Mailbox but says Please close the mail to open it. (like it was already open)? Not sure what to do. Have logged off and reload ui. Still nothing

*EDIT* Nvm I closed ROM and opened it again and now its working

*EDIT* Ok it broke again. It runs up to it and says Attempt to open mailbox failed

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

Re: Elf Daily And Tier Stones

#31 Post by rock5 » Sat Jan 26, 2013 11:40 pm

That's because you didn't close the mailbox before changing character. Just add a

Code: Select all

RoMScript("MailFrame:Hide()")
after finishing your mailing and before reloging.
  • 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: Elf Daily And Tier Stones

#32 Post by Eggman1414 » Sun Jan 27, 2013 2:51 am

So after a couple of hours and a lot of Dr. Pepper. I have a complex way of Buying Excellent Belts and Random Fusion Stones and sending them to every character on all accounts. And then for that character to make the make Tier Mana Stone possible, then send Tier 8,9, and 10's to one main account. Along the way I realized that every character needed to be level 10 and had to go to Varanas to get the arcane transmutor, Then had to go back to the Elf starting area to do the dailys again. WOW. :o

So I have 8 Scripts and most of it is: Run this script and your good to go.

1. buybelts.xml and buyfusion.xml: are linked so that, you run buybelts and it will buy 10 Excellent Belts and send it to each character on all acounts. Then uses Noobbotter's World Traveler Userfunction to get you to Varanas West to the fusion shop and does the same thing, sends 10 random fusion stones to every character on all accounts. Then player:sleep(). Run once a day to send all items to all alt's.

2. daily.xml and makefusion.xml: are linked so that, the character runs the "Helping them grow" daily 10 times then buys 10 arcane charges using the Phirius Tokens. Then it goes to the mailbox to get the belts and fusion stones. Then loads makefusion.xml. Which makes the highest tier mana stone possible and only sends Mana Stone Tier 9, or 10's to one main account. Then relogs and does the same for the next character.

3. altat.xml is from a different poster (xrozhija) http://www.solarstrike.net/phpBB3/viewt ... =27&t=4119 which he wrote to make a character go to varanas to get the transmutor. I edited it so that it makes a return trip back to the "Helping them grow" daily. You only need to run this if your alt's do not have the transmutor and are lvl 10.

4. The other scripts are just waypoints between places (i.e mailbox to snoop) Im sure there is a way to add it to the main file but I couldn't get it to work.

5. I also put down other userfunctions that people sent me and found here, along with credit to the poster.

I want to say Thanks to everyone who helped me get this right.

Userfunctions (needed): Not sure if I was allowed to upload the userfunctions so I just linked them instead
addon_Rock5s_Mail_Functions.lua -- http://solarstrike.net/phpBB3/viewtopic ... e6f5f24af8
userfunction_BuyFromItemShop.lua -- http://www.solarstrike.net/phpBB3/viewt ... =27&t=3039
userfunction_Fusion_Functions.lua -- http://solarstrike.net/phpBB3/viewtopic ... e6f5f24af8
userfunction_GeneralHelper.lua -- (Jandrana see First Page) http://solarstrike.net/phpBB3/viewtopic ... e6f5f24af8
userfunction_gotoportal.lua -- http://solarstrike.net/phpBB3/viewtopic ... e6f5f24af8
userfunction_worldtraveler.lua -- http://solarstrike.net/phpBB3/viewtopic ... e6f5f24af8
userfunction_LoginNextChar.lua (fast login) -- http://solarstrike.net/phpBB3/viewtopic ... 6f10476a6a


***EDIT*** Ok I messed up :shock: When I run the altat.xml waypoint it auto logs me out and into the next character. Need to figure out a way to say to start at waypoint 1 and go through all of them rather than it say that waypoint 129 is closer and then relog to the next character. Any Hints???
Attachments
altAT.xml
(8.55 KiB) Downloaded 255 times
varntoelf.xml
(5.19 KiB) Downloaded 329 times
pathtosnooplimo.xml
(811 Bytes) Downloaded 170 times
pathtoshopvaranas.xml
(767 Bytes) Downloaded 311 times
makefusion.xml
(2.19 KiB) Downloaded 348 times
buyfusion.xml
(1.85 KiB) Downloaded 200 times
buybelts.xml
(1.25 KiB) Downloaded 162 times
Daily.xml
(2.19 KiB) Downloaded 213 times
Last edited by Eggman1414 on Sun Jan 27, 2013 11:53 am, edited 1 time in total.

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

Re: Elf Daily And Tier Stones

#33 Post by rock5 » Sun Jan 27, 2013 6:42 am

You could just say in the onload

Code: Select all

__WPL:setWaypointIndex(1)
Or you could move the code from the last waypoint into the first waypoint and make a decision which way to go, get the magicbox or change character. eg.

Code: Select all

if RoMScript("IsMagicBoxEnable()") then 
    code to change character
end
But I'm a bit confused. altat doesn't have 129 waypoints and it doesn't relog, it loads the return file.
  • 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
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: Elf Daily And Tier Stones

#34 Post by lolita » Sun Jan 27, 2013 6:44 am

try

Code: Select all

<onLoad>
   __WPL:setWaypointIndex( 1);
</onLoad>
or

Code: Select all

<onLoad>
   __WPL:setWaypointIndex(__WPL:findWaypointTag("One"));
</onLoad>
Life is a journey, not destination :D

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

Re: Elf Daily And Tier Stones

#35 Post by Eggman1414 » Sun Jan 27, 2013 11:52 am

Yeah Rock I just saw that I upload the wrong one.
Here is the correct one.


So by using:

Code: Select all

__WPL:setWaypointIndex(1)
Is that just telling the bot to start at waypoint #1 no matter where the character is?
Attachments
altAT.xml
(8.55 KiB) Downloaded 278 times

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

Re: Elf Daily And Tier Stones

#36 Post by rock5 » Sun Jan 27, 2013 1:20 pm

Eggman1414 wrote:So by using:

Code: Select all

__WPL:setWaypointIndex(1)
Is that just telling the bot to start at waypoint #1 no matter where the character is?
Yes which is why I wouldn't do it like that. What I would do it clear the last waypoint so it will loop back to the first waypoint then add this in the first waypoint

Code: Select all

if RoMScript("IsMagicBoxEnable()") then
    relog()
end
The beauty of this is it checks if you have the magic box when you start as well. Which means it wont needlessly go to get it if it already has 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

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

Re: Elf Daily And Tier Stones

#37 Post by Eggman1414 » Sun Jan 27, 2013 4:58 pm

Thanks Rock those two pieces of code worked like a charm. The altat.xml is supposed to be used only once so that the character gets the transmutor. After that I wont be using it unless I add another account.

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Elf Daily And Tier Stones

#38 Post by Ego95 » Sun Jan 27, 2013 6:44 pm

Nice work Eggman1414. I am going to try this the next days. One thing I have noticed is, that you let the char port from limo to varanas to buy fusion stones. The normal fusion stones can be bought in dalanis, too. This would be a shorter way ;)

AlterEgo95
Last edited by Ego95 on Sun Jan 27, 2013 6:55 pm, edited 2 times in total.

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

Re: Elf Daily And Tier Stones

#39 Post by Eggman1414 » Sun Jan 27, 2013 6:52 pm

The reason I didnt want to use dalanis was because of the lag that I get there. I thought it would be safer and less crash prone to use varanas.

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Elf Daily And Tier Stones

#40 Post by Ego95 » Sun Jan 27, 2013 6:54 pm

Ok, understandable :D Although for me I don't get as much crits as I got a year ago in dalanis :P

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest