[Waypoint] Daily quest waypoint (help needed)
Posted: Sun Nov 18, 2012 11:38 am
Hello!
I'm new to MicroMacro and lua and I just started to learn yesterday.
I've searched and searched the forums to help me understand the code etc.
I have a problem with the waypoint I created for a daily quest.
The bot runs fine but it never turn in the quest (except if I have it completed when i start the waypoint)
Any help would be greatly appreciated.
Edit: Noticed that this post might be in the wrong section. If so, sorry in advance.
I'm new to MicroMacro and lua and I just started to learn yesterday.
I've searched and searched the forums to help me understand the code etc.
I have a problem with the waypoint I created for a daily quest.
The bot runs fine but it never turn in the quest (except if I have it completed when i start the waypoint)
Any help would be greatly appreciated.
Edit: Noticed that this post might be in the wrong section. If so, sorry in advance.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
farm = false --continue farm after daily capped?
dqNpc = 117517
dq = "Cute and Slimy"
</onLoad>
<!-- # 1 --><waypoint x="-4210" z="-338" y="395">
qStatus = getQuestStatus(dq);
if qStatus == "complete" then
player:target_NPC(dqNpc);
CompleteQuestByName(dq); yrest(1000);
end
qStatus = getQuestStatus(dq);
if qStatus == "not accepted" then
player:target_NPC(dqNpc);
AcceptQuestByName(dq); yrest(1000);
__WPL:setWaypointIndex(1);
end
</waypoint>
<!-- # 2 --><waypoint x="-4388" z="-493" y="387"></waypoint>
<!-- # 3 --><waypoint x="-4404" z="-586" y="385">
qStatus = getQuestStatus(dq);
if qStatus == "complete" then
__WPL:setWaypointIndex(1);
end
</waypoint>
</waypoints>