Fully automatic Heroic Defens

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
silverclys
Posts: 12
Joined: Mon Jun 15, 2015 3:28 pm

Fully automatic Heroic Defens

#1 Post by silverclys » Mon Jun 15, 2015 3:37 pm

Hey guys last week i come over the Quest Heroic Defens.
I found a way to automate the part when my chars are online if u want to i will share this to you now my Problem:
i need to start like 15 clients and let them open my chars. After 8 Charakters it should switch the login is this possible?
It should be later on a one click bot that makes phirius like hell :). Would be nice if you could help me.
Update found some thing interessting. But i get an error in the first in the 90.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">

<onload>
function relog()
	SetCharList({{
		{account=1 , chars= {1,2,3,4,5,6,7,8}},
		{account=16 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=2 , chars= {1,2,3,4,5,6,7,8}},
		{account=17 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=3 , chars= {1,2,3,4,5,6,7,8}},
		{account=18 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=4 , chars= {1,2,3,4,5,6,7,8}},
		{account=19 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=5 , chars= {1,2,3,4,5,6,7,8}},
		{account=20 , chars= {1,2,3,4,5,6,78}},
	},{
		{account=6 , chars= {1,2,3,4,5,6,7,8}},
		{account=21 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=7 , chars= {1,2,3,4,5,6,7,8}},
		{account=22 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=8 , chars= {1,2,3,4,5,6,7,8}},
		{account=23 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=9 , chars= {1,2,3,4,5,6,7,8}},
		{account=24 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=10 , chars= {1,2,3,4,5,6,7,8}},
		{account=25 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=11 , chars= {1,2,3,4,5,6,7,8}},
		{account=26 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=12 , chars= {1,2,3,4,5,6,7,8}},
		{account=27 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=13 , chars= {1,2,3,4,5,6,7,8}},
		{account=28 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=14 , chars= {1,2,3,4,5,6,7,8}},
		{account=29 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=15 , chars= {1,2,3,4,5,6,7,8}},
		{account=30 , chars= {1,2,3,4,5,6,7,8}},
	},
 
	})
		LoginNextChar()
        yrest(30)
		player:update();
		loadProfile()
        loadPaths("VollAutomatischMana");
		doRelog = true;
	 end		
	doRelog = true;
</onload>



<!-- #  1 --><waypoint x="-9052" z="-5403" y="15" tag="Main"/>
 local queststate = getQuestStatus(Heldenhafte Verteidigung);
	 local occupiedSlots, totalSlots = sendMacro("GetBagCount();");
	 if occupiedSlots == totalSlots then
		item = inventory:findItem( 207051); --newbie pet egg
		if item then
			item:delete()
		end
	 end
    if queststate == "complete" then
        player:target_NPC(Tapferer Beeder);
        CompleteQuestByName(Heldenhafte Verteidigung);
        
     end

    local dqCount, dqPerDay = RoMScript("Daily_count()");
    if dqPerDay == dqCount then 
	    if doRelog then
           relog()
		else
		   error("Bot stopped.", 0); 
		end
    else
        player:target_NPC(Tapferer Beeder);
        AcceptQuestByName(Heldenhafte Verteidigung,Tapferer Beeder);
        
    end

	
	
	<!-- #  2 --><waypoint x="-9052" z="-5403" y="15">	
 	   queststate = getQuestStatus(Heldenhafte Verteidigung);
 	   if queststate == "not accepted" then
			__WPL:setWaypointIndex(1);
	   end
	</waypoint>

       </waypoints>
		   
	

I updatet the Script its now working :) the only problem i have is that i need to walk on a spezific kord. x="-9052" z="-5403" y="15" and the charakters are to close to the kords and cant go there so they dont accept the quest. Would nice if someone could help me out a little bit with this issue.

silverclys
Posts: 12
Joined: Mon Jun 15, 2015 3:28 pm

Re: Fully automatic Heroic Defens

#2 Post by silverclys » Tue Jun 16, 2015 3:59 pm

Fixed that Problem just put the hole thing in onload. Is this possible? And what do i need to change for it?
Would be nice if you could help me

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">

<onload>
function relog()
	SetCharList({{
		{account=11 , chars= {1,2,3,4,5,6,7,8}},
		--{account=16 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=2 , chars= {1,2,3,4,5,6,7,8}},
		--{account=17 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=3 , chars= {1,2,3,4,5,6,7,8}},
		--{account=18 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=4 , chars= {1,2,3,4,5,6,7,8}},
		--{account=19 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=5 , chars= {1,2,3,4,5,6,7,8}},
		--{account=20 , chars= {1,2,3,4,5,6,78}},
	},{
		{account=6 , chars= {1,2,3,4,5,6,7,8}},
		--{account=21 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=7 , chars= {1,2,3,4,5,6,7,8}},
		--{account=22 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=8 , chars= {1,2,3,4,5,6,7,8}},
		--{account=23 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=9 , chars= {1,2,3,4,5,6,7,8}},
		--{account=24 , chars= {1,2,3,4,5,6,7,8}},
	},{
		{account=10 , chars= {1,2,3,4,5,6,7,8}},
		--{account=25 , chars= {1,2,3,4,5,6,7,8}},
	}
 
	})
		LoginNextChar()
        yrest(30)
		player:update();
		loadProfile()
        loadPaths("VollAutomatischMana");
		doRelog = true;
	 end		
	doRelog = true;








    if queststate == "complete" then
        player:target_NPC(Tapferer Beeder);
        CompleteQuestByName(Heldenhafte Verteidigung);
        
     end

    local dqCount, dqPerDay = RoMScript("Daily_count()");
    if dqPerDay == dqCount then 
	    if doRelog then
           relog()
		else
		   error("Bot stopped.", 0); 
		end
    else
        player:target_NPC(Tapferer Beeder);
        AcceptQuestByName(Heldenhafte Verteidigung,Tapferer Beeder);
        
    end







</onload>




	

       </waypoints>
		   
		   
		   

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

Re: Fully automatic Heroic Defens

#3 Post by rock5 » Wed Jun 17, 2015 4:07 am

As long as you don't need to move and you are in the right location, then you can put everything in the onload.

You said you wanted it to change accounts when it finishes with all the characters on the current account. The way you have SetCharList set up it will only do 1 account then stop. SetCharList can be used 2 ways. It can be given 1 list that 1 client will go through or it can be given multiple lists so you can have multiple clients, one for each list.

Here is 1 list for 1 client. In this case 1 client will go through all the accounts

Code: Select all

SetCharList ({
    {account=11 , chars= {1,2,3,4,5,6,7,8}},
    {account=2 , chars= {1,2,3,4,5,6,7,8}},
    {account=3 , chars= {1,2,3,4,5,6,7,8}},
    -- etc.
})
Here is 2 lists for 2 clients. 1 client will go through the first list then end and the second client will go through the second list and end.

Code: Select all

SetCharList ( {{
    {account=11 , chars= {1,2,3,4,5,6,7,8}},
    {account=2 , chars= {1,2,3,4,5,6,7,8}},
},{
    {account=3 , chars= {1,2,3,4,5,6,7,8}},
    {account=4 , chars= {1,2,3,4,5,6,7,8}}
}}
Hope that helps.
  • 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

silverclys
Posts: 12
Joined: Mon Jun 15, 2015 3:28 pm

Re: Fully automatic Heroic Defens

#4 Post by silverclys » Wed Jun 17, 2015 4:22 am

Thank you for the reply i will change that but if i run the code like the one i postet in onload i get a error massage that something in onload is wrong ( no lines or something to look it up) Image i just dont get what there is wrong o.o I hope we can fix this together :) I think this file would be nice for some others too

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

Re: Fully automatic Heroic Defens

#5 Post by rock5 » Wed Jun 17, 2015 4:46 am

Is the npcs name Tapferer Beeder? Then that should be a string, ie. in quotes.

Code: Select all

player:target_NPC("Tapferer Beeder");
The same goes for quest names.
  • 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

silverclys
Posts: 12
Joined: Mon Jun 15, 2015 3:28 pm

Re: Fully automatic Heroic Defens

#6 Post by silverclys » Wed Jun 17, 2015 4:51 am

oh man iam a idiot xD happes to me every time thank you i change that. should i post this to use for others any were else? Now i just need something that keeps this running that the bot wont try to go to the waypoint section. After the quest is acceptet the bot jumps in the waypoint section and crashes.

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

Re: Fully automatic Heroic Defens

#7 Post by rock5 » Wed Jun 17, 2015 5:23 am

If you want it to repeat just use a loop such as a 'repeat' or 'while' loop.
  • 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

silverclys
Posts: 12
Joined: Mon Jun 15, 2015 3:28 pm

Re: Fully automatic Heroic Defens

#8 Post by silverclys » Wed Jun 17, 2015 5:47 am

Done that now i build a bot for the mob killing part and the group invite is there a function to kick players out of the group if they are offline? I found nothing in the Forum.

Post Reply

Who is online

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