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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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