Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

player:SendQuestTemplate(questID) #149

Open
28269890 opened this issue Jul 13, 2023 · 2 comments
Open

player:SendQuestTemplate(questID) #149

28269890 opened this issue Jul 13, 2023 · 2 comments

Comments

@28269890
Copy link

I'm having trouble using the player:SendQuestTemplate(questID) function to allow players to accept quests. The function displays quest details but doesn't enable quest acceptance. Could someone please advise me on how to implement quest acceptance for players? Thank you!

@r-o-b-o-t-o
Copy link
Member

Does this happen only with a specific quest id or with any quest?

@28269890
Copy link
Author

    player:GossipMenuAddItem(0, "aaaa", 4289,0)
    player:GossipMenuAddItem(0, "bbbb", 10713,0)
    player:GossipMenuAddItem(0, "cccc", 13082,0)
    player:GossipMenuAddItem(0, "dddd", 11262,0)
    player:GossipMenuAddItem(0, "eeee", 11252,0)
    player:GossipMenuAddItem(0, "ffff", 3379,0)
    player:GossipMenuAddItem(0, "ffff", 1718,0)

local selectQuest = function(event, player, unit, sender, intid, code, menu_id)
    local questID = sender
    player:GossipComplete()
    player:SendQuestTemplate( questID ) 
    --player:AddQuest(questID)
end

I have tested the above task IDs, but none of them worked. It seems that none of the tasks can be accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants