SSky 2 Posted December 8, 2013 I always see this error when players delete quests.Is this normal? Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted December 10, 2013 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. Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted December 8, 2013 Yes if the character didn't have that quest. Quote Share this post Link to post Share on other sites
0 SSky 2 Posted December 8, 2013 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. Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted December 9, 2013 Try this if (checkquest(<QUEST_ID>) == -1) erasequest <QUEST_ID>; for each of your quests instead of trying to remove them directly. Quote Share this post Link to post Share on other sites
0 SSky 2 Posted December 9, 2013 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. Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted December 9, 2013 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. Quote Share this post Link to post Share on other sites
0 SSky 2 Posted December 10, 2013 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 Quote Share this post Link to post Share on other sites
0 SSky 2 Posted December 10, 2013 ^ it works, Thank you! Quote Share this post Link to post Share on other sites
I always see this error when players delete quests.Is this normal?
Share this post
Link to post
Share on other sites