Page 1 of 1

Accept Quest function doesnt work for me

Posted: Fri Dec 23, 2011 7:43 am
by IronWolf
i've updated the ingamefunctions 5 times now..
the "Complete quest" works perfect, also i can see that comunicating with the NPC also works great,
the only problem is i dont automaticly accept the quest,

would love your help guys, thanks alot :)

thats the call from the script:
(taken from here some1 on forum posted it, i use it and thank him :) )

<!-- # 1 --><waypoint x="6427" z="5435" y="154" type ="RUN">
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
if 10 == dailyQuestCount then
printf ("Done "..dailyQuestCount.." of " .. dailyQuestsPerDay .. " Quests. STOP.");
error("Bot ending.", 0); -- ends the script.
else
printf("Done "..dailyQuestCount.." of " .. dailyQuestsPerDay .. " Left " .. dailyQuestsPerDay - dailyQuestCount .. " Quests.");
end
player:target_NPC("Robbie Butcher");
sendMacro("OnClick_QuestListButton(1, 2)"); yrest(750);
sendMacro("AcceptQuest()"); yrest(2000);
player:mount();
player:rest(2);
</waypoint>

---------------------
EDIT
---------------------

i just took another deeper look, its not the acceptQuest function, its the "OnClick_QuestListButton(1, 2)"
it wont do what it should, trying to work on that :)
if any1 got notes, im open for suggetions :)

---------------------
EDIT2
---------------------
Issue solved, it seems that by taking the dog meat quest, i messed up the menu in some way, by giving up the dog meat quest, i can now take the butterfly quest again, thanks for reading so far, sorry to have wasted your time :\

Re: Accept Quest function doesnt work for me

Posted: Fri Dec 23, 2011 1:27 pm
by rock5
Try the QuestByName userfunctions.