Help with Quest NPC (Using Quest Log System)

Landoriel

New member
Messages
2
Points
0
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?

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

Code:
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;
 
Last edited by a moderator:
Thanks for the help ToiletMaster, much appreciated! That was what I looking for, gonna give it a shot later.

 
Back
Top