Jump to content
  • 0
Sign in to follow this  
SSky

Quest_delete

Question

8 answers to this question

Recommended Posts

  • 0

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.

 

 

Share this post


Link to post
Share on other sites
  • 0

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. 

Share this post


Link to post
Share on other sites
  • 0

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. 

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.