Page 1 of 1
Daily quests
Posted: Sat Jan 30, 2010 4:34 pm
by PutteN
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
Re: Daily quests
Posted: Sun Jan 31, 2010 3:30 pm
by j_schlott
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>
Re: Daily quests
Posted: Sun Jan 31, 2010 5:14 pm
by PutteN
Thanks!
I will try tomorrow!
/Putte
Re: Daily quests
Posted: Wed Feb 03, 2010 12:37 am
by PutteN
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
Re: Daily quests
Posted: Thu Feb 04, 2010 2:56 am
by j_schlott
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
Re: Daily quests
Posted: Thu Feb 04, 2010 5:00 pm
by PutteN
Hi and thanks,
You need to click 2 times to complete daily,
(He say some thing)
[Press to come to daily]
[Press to Complete]
Re: Daily quests
Posted: Sat Feb 06, 2010 12:02 am
by j_schlott
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)
Re: Daily quests
Posted: Sat Feb 06, 2010 5:37 pm
by PutteN
Thx!, it work now
!
Re: Daily quests
Posted: Mon Feb 08, 2010 12:22 pm
by ciccione
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>
Re: Daily quests
Posted: Mon Feb 08, 2010 1:21 pm
by Administrator
<!-- # 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.
Re: Daily quests
Posted: Mon Feb 08, 2010 6:21 pm
by ciccione
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?!?
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!
Re: Daily quests
Posted: Mon Feb 08, 2010 8:48 pm
by Administrator
<!-- # 2 --><waypoint x="-32567" z="6452"> **NPC
The bold is not proper Lua code, and therefor generates an error.
Re: Daily quests
Posted: Tue Feb 09, 2010 4:21 am
by j_schlott
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
Re: Daily quests
Posted: Tue Feb 09, 2010 11:01 am
by ciccione
Thanks guys you have been of great help, now everything works!