Heffner Daily - Wont accept quest
Posted: Sun Oct 21, 2012 1:51 am
Just putting together a waypoint file for the daily quest "Earn a Reputation". Using:
Currently it all works fine, except for accepting and completing the quest so just runs in an endless loop...too tired to think clearly atm so thought i would ask here...lol
Code: Select all
<!-- # 10 --><waypoint x="-7107" z="-4130" y="172" tag='Main'> </waypoint>
local dqCount, dqPerDay = RoMScript("Daily_count()");
if 10 > dqCount then
queststate = getQuestStatus("Earn a Reputation");
if queststate = "complete" then
-- Complete quest
player:target_NPC("Hugope");
CompleteQuestByName("Earn a Reputation");
__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));
else
-- Accept quest
player:target_NPC("Hugope");
AcceptQuestByName("Earn a Reputation");
__WPL:setWaypointIndex(__WPL:findWaypointTag("Quest"));
end
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("Done"));
end