Jump to content
  • 0
Sign in to follow this  
Landoriel

Help with Quest NPC (Using Quest Log System)

Question

I'm trying to make an npc, or multiple npcs with various quests on them, but I am in a bind on what maybe a simple problem. When it comes to requiring items instead of killing monsters, how would you go checking to see if the items are there? I know countitem is a thing, but how can that be used in cases of (checkquest(ID) == 1 or 2). Such that if they have the items, they are gone to 2, but if they do not, they are at 1?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

not sure if you mean this way but here we go,

 

 

 

if(checkquest(ID) == 2) { //once finished with quest. mes "you've completed the quest already. Stop talking to me or I'll flush ya!";close; }if(checkquest(ID) == 1 && countitem(909) >=1){ //checks for whether the quest is                                                //active AND they have the item specified mes "Great job! you got the jellopy i required!";completequest ID;close;}else //if no items this happens{mes "You don't have the items I wanted.";close;} mes "Hey you! Get me 1 jellopy!";setquest ID; // provides the quest close; 
Edited by ToiletMaster

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.