Page 1 of 1

Fully automatic Heroic Defens

Posted: Mon Jun 15, 2015 3:37 pm
by silverclys
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.

Re: Fully automatic Heroic Defens

Posted: Tue Jun 16, 2015 3:59 pm
by silverclys
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>
		   
		   
		   

Re: Fully automatic Heroic Defens

Posted: Wed Jun 17, 2015 4:07 am
by rock5
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.

Re: Fully automatic Heroic Defens

Posted: Wed Jun 17, 2015 4:22 am
by silverclys
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

Re: Fully automatic Heroic Defens

Posted: Wed Jun 17, 2015 4:46 am
by rock5
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.

Re: Fully automatic Heroic Defens

Posted: Wed Jun 17, 2015 4:51 am
by silverclys
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.

Re: Fully automatic Heroic Defens

Posted: Wed Jun 17, 2015 5:23 am
by rock5
If you want it to repeat just use a loop such as a 'repeat' or 'while' loop.

Re: Fully automatic Heroic Defens

Posted: Wed Jun 17, 2015 5:47 am
by silverclys
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.