Page 1 of 1

daily quests help

Posted: Fri Apr 23, 2010 8:18 am
by extremeuser
Trying a few things, basically trying to get the macro to accept a daily quest then run to hand it in, and having so much trouble. any help be appreciated


<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-9585" z="6125"> </waypoint>
<!-- # 2 --><waypoint x="-9583" z="6076"> player:target_NPC("npc name here");
player:rest(1);
player:mouseclickL(225, 371, 1680, 975);
player:rest(1);
sendMacro("AcceptQuest();");
player:rest(1);
<waypoints type="TRAVEL">
<!-- # 6 --><waypoint x="-9591" z="6047"> </waypoint>
<!-- # 7 --><waypoint x="-9581" z="6096"> </waypoint>
<!-- # 8 --><waypoint x="-9432" z="6157"> </waypoint>
<!-- # 9 --><waypoint x="-9298" z="6173"> </waypoint>
<!-- # 10 --><waypoint x="-9034" z="6083"> </waypoint>
<!-- # 11 --><waypoint x="-8854" z="5902"> </waypoint>
<!-- # 12 --><waypoint x="-8695" z="5745"> </waypoint>
<!-- # 13 --><waypoint x="-8466" z="5519"> </waypoint>
<!-- # 14 --><waypoint x="-8204" z="5347"> </waypoint>
<!-- # 15 --><waypoint x="-8021" z="5220"> </waypoint>
<!-- # 16 --><waypoint x="-7835" z="5097"> </waypoint>
<!-- # 17 --><waypoint x="-7584" z="5078"> </waypoint>
<!-- # 18 --><waypoint x="-7359" z="5087"> </waypoint>
<!-- # 19 --><waypoint x="-7143" z="4839"> </waypoint>
<!-- # 20 --><waypoint x="-7174" z="4780"> </waypoint>
<!-- # 21 --><waypoint x="-7071" z="4667"> </waypoint>
<!-- # 22 --><waypoint x="-6875" z="4470"> </waypoint>
<!-- # 23 --><waypoint x="-6838" z="4353"> </waypoint>
<!-- # 24 --><waypoint x="-6686" z="4192"> </waypoint>
<!-- # 25 --><waypoint x="-6525" z="4110"> </waypoint>
<!-- # 26 --><waypoint x="-6320" z="3993"> </waypoint>
<!-- # 27 --><waypoint x="-6079" z="3949"> </waypoint>
<!-- # 28 --><waypoint x="-5888" z="3907"> </waypoint>
<!-- # 29 --><waypoint x="-5688" z="3872"> </waypoint>
<!-- # 30 --><waypoint x="-5491" z="3838"> </waypoint>
<!-- # 31 --><waypoint x="-5361" z="3800"> </waypoint>
<!-- # 32 --><waypoint x="-5391" z="3623"> </waypoint>
<!-- # 33 --><waypoint x="-5412" z="3429"> </waypoint>
<!-- # 34 --><waypoint x="-5386" z="3259"> </waypoint>
<!-- # 35 --><waypoint x="-5385" z="3255"> </waypoint>
</waypoints>

Re: daily quests help

Posted: Fri Apr 23, 2010 8:33 am
by extremeuser
the travel waypoint isnt working if i remove that it works.... i want the 'travel' part on tho

Re: daily quests help

Posted: Fri Apr 23, 2010 8:42 am
by rock5
First, the waypoints tags have to be at the top and bottom of the file. If you want to change to travel mode part way use the correct command or use it in the first waypoints tag.

Second, you don't need to use mouse click to select the quest. Use OnClick_QuestListButton(type, index)
To accept a quest use

Code: Select all

sendMacro("OnClick_QuestListButton(1, 2)") -- Accept quest 2
And to Complete a quest use

Code: Select all

sendMacro("OnClick_QuestListButton(3, 2)") -- Complete quest 2
So the start of your file should look something like this;

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="-9585" z="6125"> </waypoint>
<!-- # 2 --><waypoint x="-9583" z="6076"> player:target_NPC("npc name here"); -- Don't forget to edit npc name here
player:rest(1);
sendMacro("OnClick_QuestListButton(1, 2)"); -- Use the correct quest number
player:rest(1);
sendMacro("AcceptQuest();");
player:rest(1);
</waypoint>
<!-- # 6 --><waypoint x="-9591" z="6047"> </waypoint>
Thirdly don't forget to put your code between code tags here in the forum or Administrator gets annoyed. :)