Jump to content
  • 0

R > Simple quest with 2 npc.


eclud

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  80
  • Reputation:   0
  • Joined:  08/29/15
  • Last Seen:  

Hi guys i know how to make easy and very basic scripts. But i cant make this one, can some one help me? I need this:

Quest script with two npc,i mean player go talk with one npc, the npc ask for some items and zeny so when the player give the items to the npc it will say the ubication of the other npc the other npc will ask for some items and zeny too. When u give the items the npc will give some reward (ítem). Always u need to talk with the first npc to talk with the other. Thanks hope u guys get the idea

Edited by eclud
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  545
  • Reputation:   220
  • Joined:  03/01/13
  • Last Seen:  

Not tested. Also check out the basic_scripting page of rA's Wiki.

 

payon,107,327,0	script	Man#NPC1	82,{
​if (variablex < 1){
	mes "[Man]";
	mes "Would you spare 500Zeny";
	mes "and some food- perhaps an apple?";
	next;
	if (select("Yes:No") == 1){
		if (Zeny > 500 && countitem(512) > 0) {
			mes "[Man]";
			mes "Thank you!";
			mes "God bless you.";
			set Zeny,Zeny-500;
			delitem 512,1;//Apple
			set variablex,1;
		}
		else {
		}
	mes "[Man]";
	mes "I understand if you";
	mes "don't have anything to spare...";
	}
}
else {
	mes "[Man]";
	mes "Thank you for your patronage.";
	end;
}
}

payon,104,325,0	script	Man#NPC2	919,{
if (variablex < 1) {
	mes "[Man]";
	mes "Life on the strees is";
	mes "rough this time of year.";
	end;
}
​if (variablex == 1){
	mes "[Man]";
	mes "Such a generous soul...";
	mes "Would you also spare me";
	mes " 500Zeny and an apple?";
	next;
	if (select("Yes:No") == 1){
		if (Zeny > 500 && countitem(512) > 0) {
			mes "[Man]";
			mes "Thank you!";
			mes "God bless you.";
			next;
			mes "[Man]";
			mes "It isn't much, but please";
			mes "take this with you.";
			set Zeny,Zeny-500;
			delitem 512,1;//Apple
			getitem 713,1;//Empty Bottle
			set variablex,2;
			end;
		}
		else {
		}
	mes "[Man]";
	mes "I understand if you";
	mes "don't have anything to spare...";
	}
}
else {
	mes "[Man]";
	mes "I hope you find a good";
	mes "home for that bottle.";
	end;
}
}

Regards,
~Azura Skyy

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  80
  • Reputation:   0
  • Joined:  08/29/15
  • Last Seen:  

Thanks! Will Edit and check :)

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...