[DailyQuest] Deadwood Hunters Auto!

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

[DailyQuest] Deadwood Hunters Auto!

#1 Post by Germangold » Wed Jan 27, 2010 9:07 am

I am working on a script for auto completing dailies in aoutila vulcan

I have a small waypoint for grinding Dead Tree mob
and another called duo_npc, a path to go from grinding to npc

the script auto accept the quest and auto completes it.

my problem is how to tell the the script that the requirements killing 12 Deadwood Hunters is filled? is there a trigger for that?

my code so far and its working splendid!

Code: Select all

player:target_NPC("Duo Bifish");   
player:rest(1);
	sendMacro("OnClick_QuestListButton(1,1)");	yrest(1000);
	sendMacro("AcceptQuest();");			yrest(1000);
	sendMacro("CloseWindows();"); yrest(1000);
   player:target_NPC("Duo Bifish"); yrest(1000);
   <!-- the 3 is for completed quests -->
   sendMacro("OnClick_QuestListButton(3,1);"); yrest(1000);
   sendMacro("CompleteQuest();"); yrest(1000);

Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: [DailyQuest] Deadwood Hunters Auto!

#2 Post by Germangold » Wed Jan 27, 2010 9:51 am

I am working now on a counting trigger


sth like this

Code: Select all

 
after completing 3 time the full path  
 Goto Npc
        complete quest,
         accepte quest 
   goto path

Questions
i want to use the variable self.player.free_counter1, how do i add "+1" each time a waypoint spot is passed?

i tought of

Code: Select all

self.player.free_counter1 = (self.player.free_counter1+1)

Code: Select all

if(self.free_counter1 = 3) then (self.free_counter1 = 0);  loadPaths("jagernpc");

User avatar
Administrator
Site Admin
Posts: 5306
Joined: Sat Jan 05, 2008 4:21 pm

Re: [DailyQuest] Deadwood Hunters Auto!

#3 Post by Administrator » Wed Jan 27, 2010 4:16 pm

Get rid of all the 'self' mentions in that code and just use player.free_counter1, and add an 'end' to that if statement. You should be fine.

j_schlott
Posts: 119
Joined: Tue Aug 18, 2009 11:42 pm

Re: [DailyQuest] Deadwood Hunters Auto!

#4 Post by j_schlott » Wed Jan 27, 2010 11:37 pm

Code: Select all

	<!-- # 1 --><waypoint x="00000" z="00000">
        player.free_counter1+1;
	if player.free_counter1 == 3  then
	   loadPaths("jagernpc.xml");
        end;
	</waypoint>
you want something like that, not sure if this will work as-is

the free counter will reset itself when a new path is loaded so you dont have to use free.counter = 0 to reset
and i think this bit is not necessary

Code: Select all

self.player.free_counter1 = (self.player.free_counter1+1),
i think you only would need to use that if you were using something like free.counter2 = free.counter1+1, where you use stats from 1 counter in another

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests