Closed Elise39u closed 6 years ago
I found the issue and its sit currently in the number that`s been given in the ajax call rl: "/checkQuest", dataType: 'json', data: {npc_id: dialoginfo[0]['npc_id']}
By chaneing it to the npc_id the issue now remains to no dialog box at all but the still the quest get`s Actvatied
The issue has been solved by making a ajax call on the page load and then set a var to NotAllowed to either true or false and the same goes for Allowed. And we gave the Npc_id now with the call and inside the call i Now ask for a token to activate the quest so The user can discover the quest without the quest starts right at the visit And if the user is not Allowed the open dialog button wil not shown
Now is the fact that npc
s without a quest won
t show there dialog box because of a offset 0 errorIt can be too to the quest_id = 0 Or a new error