Elise39u / LaravelAvontuur

A remade of my kilk game in larvael
0 stars 0 forks source link

Npc dialog #8

Closed Elise39u closed 6 years ago

Elise39u commented 6 years ago

Now is the fact that npcs without a quest wont show there dialog box because of a offset 0 error
It can be too to the quest_id = 0 Or a new error

Elise39u commented 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

Elise39u commented 6 years ago

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