Jump to content
  • 0

NPC Unlock Options Quest


Sashimi

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  03/12/21
  • Last Seen:  

NPC Quest, that gives you 1 quest option and that when you deliver an object, you unlock a 2nd option and thus this 2nd option when you deliver an object unlocks a third option. All with the same NPC, something like the 2 options are kept hidden until you finish option 1.

If i finish Quest 1 => Quest 2 => Quest 3 (all are repeatable)

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

Put this on your script:

NPC 1:

prontera,151,174,4	script	NPC A	829,{
	mes "bla bla bla..";
	set #npcA, 1;
	close;
}

NPC 2:

prontera,X,Y,4	script	NPC B	829,{
	if (#npcA) {
		mes "bla bla bla..";
		set #npcB, 1;
		close;
	}
	else {
		mes "sorry!";
		close;
	}
}

NPC 3:

prontera,X,Y,4	script	NPC C	829,{
	if (#npcA && #npcB) {
		mes "bla bla bla..";
		getitem 501,1;
		set #npcA, 0
		set #npcB, 0;
		close;
	}
	else {
		mes "sorry!";
		close;
	}
}

 

This is just a structure..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  03/12/21
  • Last Seen:  

8 hours ago, mrfizi said:

Put this on your script:

NPC 1:


prontera,151,174,4	script	NPC A	829,{
	mes "bla bla bla..";
	set #npcA, 1;
	close;
}

NPC 2:


prontera,X,Y,4	script	NPC B	829,{
	if (#npcA) {
		mes "bla bla bla..";
		set #npcB, 1;
		close;
	}
	else {
		mes "sorry!";
		close;
	}
}

NPC 3:


prontera,X,Y,4	script	NPC C	829,{
	if (#npcA && #npcB) {
		mes "bla bla bla..";
		getitem 501,1;
		set #npcA, 0
		set #npcB, 0;
		close;
	}
	else {
		mes "sorry!";
		close;
	}
}

 

This is just a structure..

Thank u very much uwu but I don't want a Chain NPC, I want a single NPC that restricts you options until you unlock the first one and then unlock the second one.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

the structure still same, just combine all in one npc ?

OR maybe you can just use this quest template by @CalciumKid

 

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...