Quest_delete

SSky

New member
Messages
81
Points
0
Emulator
I always see this error when players delete quests.Is this normal?

quest.png

 
When i finish a quest, The NPCs arent deleting the quest automatically. So when i try to delete it manually, i have the error in map server. 

 
Try this

if (checkquest(<QUEST_ID>) == -1) erasequest <QUEST_ID>;
for each of your quests instead of trying to remove them directly.

 
Last edited by a moderator:
Try this

if (checkquest(<QUEST_ID>) != -1) erasequest <QUEST_ID>;
for each of your quests instead of trying to remove them directly.
I tried it, Still getting the error. Oh well. Its not a big problem so i guess ill just leave it as is. 

 
Oh, damn. I made the contrary script code. It should be:

if (checkquest(<QUEST_ID>) == -1) erasequest <QUEST_ID>;
Sorry!

BTW you should change <QUEST_ID> to the quest id you want to remove, but I hope you already knew that.

P.S.: I've also edited above to avoid others getting this problem.

 
Last edited by a moderator:
Oh, damn. I made the contrary script code. It should be:

if (checkquest(<QUEST_ID>) == -1) erasequest <QUEST_ID>;
Sorry!

BTW you should change <QUEST_ID> to the quest id you want to remove, but I hope you already knew that.

P.S.: I've also edited above to avoid others getting this problem.
I'm using arrays to do it. Still doesnt work. xD Still getting the error. And if i am going to put it 1 by 1. It will take time. haha

 
You can do this way then

for (@i=0; @i<=getarraysize(.array); @i++){ if (checkquest(.array[@i]) == -1) erasequest .array[@i];} 
Just change .array to your array variable.

 
Back
Top