Daily quests

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
PutteN
Posts: 15
Joined: Thu Jan 14, 2010 11:16 am

Daily quests

#1 Post by PutteN » Sat Jan 30, 2010 4:34 pm

Hi again :)
I would like to know if its possible to take a daily from bulletin with bot
I mean 100% bot and no manual work.

And if it work how?
I have look wiki but did not find any thing ;)

Regards
Putte

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

Re: Daily quests

#2 Post by j_schlott » Sun Jan 31, 2010 3:30 pm

this is 100% auto but the only way to interact with the Bulletin board is with mouseclicks, so the window will always have to be in the foreground.
this is my code for a daily quest in dragonfang

Code: Select all

<waypoints>
	<!-- #  1 --><waypoint x="-19263" z="-11470">	</waypoint>
	<!-- #  2 --><waypoint x="-19238" z="-11403">
		player:rest(1.2)
		keyboardHold(key.VK_SHIFT); --hold shift to target through people
		player:mouseclickL(640, 450, 1280, 972); --mouse click bulletin
		player:mouseclickL(640, 450, 1280, 972); --mouse click bulletin
		keyboardRelease(key.VK_SHIFT);
		player:rest(.8)
		sendMacro("OnClick_QuestListButton(1,4);"); --4 is the quest # on the bulletins list
		player:rest(.5)
		sendMacro("AcceptQuest();");
		player:rest(.2);
	</waypoint>
	<!-- #  6 --><waypoint x="-19207" z="-11464">	</waypoint>
	<!-- #  7 --><waypoint x="-19205" z="-11652">	</waypoint>
	<!-- #  8 --><waypoint x="-19196" z="-11856">	</waypoint>
	<!-- #  9 --><waypoint x="-19165" z="-11901">	</waypoint>
	<!-- # 10 --><waypoint x="-19117" z="-11882">
		player:rest(1.2)
		player:target_NPC("Sheor");
		player:rest(1)
		sendMacro("CompleteQuest();");
		player:rest(.2)
  		player.free_counter1 = player.free_counter1 + 1;
   		if(player.free_counter1 == 10) then
	        player:sleep();
         	end;
	</waypoint>
	<!-- # 12 --><waypoint x="-19157" z="-11893">	</waypoint>
	<!-- # 13 --><waypoint x="-19185" z="-11859">	</waypoint>
	<!-- # 14 --><waypoint x="-19232" z="-11636">	</waypoint>
</waypoints>

PutteN
Posts: 15
Joined: Thu Jan 14, 2010 11:16 am

Re: Daily quests

#3 Post by PutteN » Sun Jan 31, 2010 5:14 pm

Thanks!
I will try tomorrow!
/Putte

PutteN
Posts: 15
Joined: Thu Jan 14, 2010 11:16 am

Re: Daily quests

#4 Post by PutteN » Wed Feb 03, 2010 12:37 am

Hi i have now test your script,
I can take daily but not hand it in

Code: Select all

	<!-- #  5 --><waypoint x="-3696" z="-8629">	
	 player:rest(1.2)
      player:target_NPC("Leighton");
      player:rest(1)
      sendMacro("CompleteQuest();");
      player:rest(.2)
        player.free_counter1 = player.free_counter1 + 1;
         if(player.free_counter1 == 10) then
           player:sleep();
            end;
</waypoint>
	<!-- #  6 --><waypoint x="-3696" z="-8640">	</waypoint>
	<!-- #  7 --><waypoint x="-3730" z="-8493">	</waypoint>
</waypoints>
It open the chat dialog with Leighton
Did work once but thats was all ;P
/Putte

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

Re: Daily quests

#5 Post by j_schlott » Thu Feb 04, 2010 2:56 am

when you open leightons chat, does it go right into the quest panel, or does it go to a list that you have to click on to go into the specific quest

if it goes to a list that you have to click on to get to the complete quest page youll need to add another command in there

PutteN
Posts: 15
Joined: Thu Jan 14, 2010 11:16 am

Re: Daily quests

#6 Post by PutteN » Thu Feb 04, 2010 5:00 pm

Hi and thanks,
You need to click 2 times to complete daily,

(He say some thing)
[Press to come to daily]
[Press to Complete]

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

Re: Daily quests

#7 Post by j_schlott » Sat Feb 06, 2010 12:02 am

try adding this:
sendMacro("OnClick_QuestListButton(3,1);");
player:rest(.7)
so it looks like this:
<!-- # 5 --><waypoint x="-3696" z="-8629">
player:rest(1.2)
player:target_NPC("Leighton");
player:rest(1);
sendMacro("OnClick_QuestListButton(3,1);");
player:rest(.7)
sendMacro("CompleteQuest();");
player:rest(.2)

PutteN
Posts: 15
Joined: Thu Jan 14, 2010 11:16 am

Re: Daily quests

#8 Post by PutteN » Sat Feb 06, 2010 5:37 pm

Thx!, it work now :)!

ciccione
Posts: 9
Joined: Sat Jan 30, 2010 8:36 am

Re: Daily quests

#9 Post by ciccione » Mon Feb 08, 2010 12:22 pm

Hi guys, I tried to create my own automated daily quest script but it does not apper to work, when I run it it give me this error:
...micromacro/lib/mods/xml.lua:316: error closing parser: no element found
I am no programmer so I probably messed up something with the script, is there somabody who could help me?
This is the script, based on j_schlott post:

<waypoints>
<!-- # 1 --><waypoint x="-32468" z="6523"> </waypoint> **Bullettin
player:rest(1.2)
keyboardHold(key.VK_SHIFT); --hold shift to target through people
player:mouseclickL(640, 450, 1280, 972); --mouse click bulletin
player:mouseclickL(640, 450, 1280, 972); --mouse click bulletin
keyboardRelease(key.VK_SHIFT);
player:rest(.8)
sendMacro("OnClick_QuestListButton(2);"); --4 is the quest # on the bulletins list
player:rest(.5)
sendMacro("AcceptQuest();");
player:rest(.2);
<waypoints>
<!-- # 2 --><waypoint x="-32567" z="6452"> </waypoint> **NPC
player:rest(1.2)
player:target_NPC("Craftsman_Nicks");
player:rest(1)
sendMacro("CompleteQuest();");
player:rest(.2)
player.free_counter1 = player.free_counter1 + 1;
if(player.free_counter1 == 10) then
player:sleep();
end;
<waypoints>
<!-- # 1 --><waypoint x="-32468" z="6523"> </waypoint>
</waypoints>

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

Re: Daily quests

#10 Post by Administrator » Mon Feb 08, 2010 1:21 pm

<!-- # 2 --><waypoint x="-32567" z="6452"> </waypoint> **NPC
player:rest(1.2)
player:target_NPC("Craftsman_Nicks");
player:rest(1)
sendMacro("CompleteQuest();");
player:rest(.2)
player.free_counter1 = player.free_counter1 + 1;
if(player.free_counter1 == 10) then
player:sleep();
end;
<waypoints>
<!-- # 1 --><waypoint x="-32468" z="6523"> </waypoint>
</waypoints>
You don't see a problem with closing 'waypoints' twice? You also didn't put that Lua code inside the waypoint tag, so it's not going to do anything.

ciccione
Posts: 9
Joined: Sat Jan 30, 2010 8:36 am

Re: Daily quests

#11 Post by ciccione » Mon Feb 08, 2010 6:21 pm

You don't see a problem with closing 'waypoints' twice? You also didn't put that Lua code inside the waypoint tag, so it's not going to do anything.
I put the Lua code in the right position (I think...), now the bot starts his work but after reaching the waypoint #1 it stops, saying it can't load the Lua code... does this mean I screwed it up again?!? :oops: :oops:
This is the "correct" script:

Code: Select all

<waypoints>
	<!-- #  1 --><waypoint x="-32468" z="6523">	**Bullettin
      player:rest(1.2)
      keyboardHold(key.VK_SHIFT); --hold shift to target through people
      player:mouseclickL(640, 450, 1280, 972); --mouse click bulletin
      player:mouseclickL(640, 450, 1280, 972); --mouse click bulletin
      keyboardRelease(key.VK_SHIFT);
      player:rest(.8)
      sendMacro("OnClick_QuestListButton(2);"); --4 is the quest # on the bulletins list
      player:rest(.5)
      sendMacro("AcceptQuest();");
      player:rest(.2);
 </waypoint>
	<!-- #  2 --><waypoint x="-32567" z="6452">	 **NPC
      player:rest(1.2)
      player:target_NPC("Craftsman_Nicks");
      player:rest(1)
      sendMacro("CompleteQuest();");
      player:rest(.2)
        player.free_counter1 = player.free_counter1 + 1;
         if(player.free_counter1 == 10) then
           player:sleep();
            end;
 </waypoint>
	<!-- #  1 --><waypoint x="-32468" z="6523">	</waypoint>   
</waypoints>
By the way you have been of great help, thanks man for the quick answer!

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

Re: Daily quests

#12 Post by Administrator » Mon Feb 08, 2010 8:48 pm

<!-- # 2 --><waypoint x="-32567" z="6452"> **NPC
The bold is not proper Lua code, and therefor generates an error.

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

Re: Daily quests

#13 Post by j_schlott » Tue Feb 09, 2010 4:21 am

yes it should be --bulletin/ --npc not **bulletin/ **npc or jus take it out its not needed, -- means anythin after that isnt a part of the code, its just a description or a note

also im not sure if this will work

Code: Select all

sendMacro("OnClick_QuestListButton(2);");
it should be

Code: Select all

sendMacro("OnClick_QuestListButton(1,2);");
and finally you dont need waypoint #1 repeated at the end, since the code is looping, it will run to waypoint#1 twice in a row,
possibly making you face a different direction which is bad since you need to be facing the bulletin

ciccione
Posts: 9
Joined: Sat Jan 30, 2010 8:36 am

Re: Daily quests

#14 Post by ciccione » Tue Feb 09, 2010 11:01 am

Thanks guys you have been of great help, now everything works!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 50 guests