I'm not clever enought and I like to spam the forum with questions...
So here I go:
I accept a quest in Dalanis and it is possible to result in 3 different quests.
So actually the event npc offers one quest out of a pool of three. All of the same name but different things to do.
I accept the quest anyways but want do decide by id it's Id which path to take.
Or is there something like AcceptQuestById() so that i just try all three and see qhich is possible to accept?
if AcceptQuestByName(id1) then
-- do quest 1 stuff
elseif AcceptQuestByName(id2) then
-- do quest 2 stuff
elseif AcceptQuestByName(id3) then
-- do quest 3 stuff
end
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
if AcceptQuestByName(423751) then
-- do chain
__WPL:setWaypointIndex(__WPL:findWaypointTag("silverchain"));
elseif AcceptQuestByName(423662) then
-- do wooden box
__WPL:setWaypointIndex(__WPL:findWaypointTag("woodenbox"));
elseif AcceptQuestByName(413859) then
-- do puppet
player:sleep()
__WPL:setWaypointIndex(__WPL:findWaypointTag("clothpuppet"));
end
I definately gor the quest with finding cloth puppet, but the bot insists of saing he got another quest but not that one.
So now I'd like to recheck the Id of the quest with the given name.
AcceptQuestByName("Auermo's Confession") -- Or use any of the 3 ids
if getQuestStatus(423751) ~= "not accepted" then
-- do chain
__WPL:setWaypointIndex(__WPL:findWaypointTag("silverchain"));
elseif getQuestStatus(423662) ~= "not accepted" then
-- do wooden box
__WPL:setWaypointIndex(__WPL:findWaypointTag("woodenbox"));
elseif getQuestStatus(423859) ~= "not accepted" then
-- do puppet
player:sleep()
__WPL:setWaypointIndex(__WPL:findWaypointTag("clothpuppet"));
end
Note: the last id was wrong.
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.