Jump to content
  • 0

1 time per character?


eboni001

Question


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

Hello guys how i can make this 2 quest only 1 time per character?

 

Weapons:

aldebaran,209,196,4	script	Kyojin Whitesmith	600,{
	mes "[^0000ff Kyojin Whitesmith ^000000]";
	mes "Hello ^FF0000 "+strcharinfo(0)+" ^000000";
	mes "Are you an owner of a pair of Kyojin Wings?";
	next;
	if (isequipped(8025)) goto L_CONTINUE;
	mes "[^0000ff Kyojin Whitesmith ^000000]";
	mes "You dont have a pair of icarus wings equipped.";
	close;

L_CONTINUE:
	mes "[^0000ff Kyojin Whitesmith ^000000]";
	mes "Which weapon would you like to make?";
	mes "Each of them has the potential to give you powers that you can only dream of.";
	next;
	switch(select("Kyojin Bow:Kyojin Sword:Kyojin Staff:Kyojin Spear:Kyojin Fist")) {
		case 1:
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "Here is what you need, take note of it.";
			next;
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "1 Pair of Angel Wings";
			mes "1 Pair of Devil Wings";
			mes "1 Crossbow[3]";
			mes "20,000,000 zeny";
			next;
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "Make it now?";
			next;
			switch(select("Yeah !:No Thanks.")) {
				case 1:
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Let me check if you bring all the items.";
					next;
					if(countitem(8017) < 1) goto L_notall;
					if(countitem(8016) < 1) goto L_notall;
					if(countitem(1711) < 1) goto L_notall;
					if(Zeny<20000000) goto L_notall;
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, let me craft this weapon for you.";
					delitem 8017,1;
					delitem 8016,1;
					delitem 1711,1;
					set Zeny,zeny - 20000000;
					next;
					mes "[^ff0000Some Time After wait for your Kyojin Weapon^000000]";
					next;
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Here is your Weapon, Enjoy it, Remember you can only make 1 weapon per account!!";
					getitem 1745,1; // item reward
					close;

				case 2:
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Come back when you get ready for it.";
					close;
}
		case 2:
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "Here is what you need, take note of it.";
			next;
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "1 Pair of Angel Wings";
			mes "1 Pair of Devil Wings";
			mes "1 Ring Pommel Saber[3]";
			mes "20,000,000 zeny";
			next;
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "Make it now?";
			next;
			switch(select("Yeah !:No Thanks.")) {
				case 1:
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Let me check if you bring all the items.";
					next;
					if(countitem(8017) < 1) goto L_notall;
					if(countitem(8016) < 1) goto L_notall;
					if(countitem(1125) < 1) goto L_notall;
					if(Zeny<20000000) goto L_notall;
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, let me craft this weapon for you.";
					delitem 8017,1;
					delitem 8016,1;
					delitem 1125,1;
					set Zeny,zeny - 20000000;
					next;
					mes "[^ff0000Some Time After wait for your Kyojin Weapon^000000]";
					next;
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Here is your Weapon, Enjoy it, Remember you can only make 1 weapon per account!!";
					getitem 1148,1; // item reward
					close;

				case 2:
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Come back when you get ready for it.";
					close;
}
		case 3:
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "Here is what you need, take note of it.";
			next;
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "1 Pair of Angel Wings";
			mes "1 Pair of Devil Wings";
			mes "1 Staff[3]";
			mes "20,000,000 zeny";
			next;
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "Make it now?";
			next;
			switch(select("Yeah !:No Thanks.")) {
				case 1:
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Let me check if you bring all the items.";
					next;
					if(countitem(8017) < 1) goto L_notall;
					if(countitem(8016) < 1) goto L_notall;
					if(countitem(1608) < 1) goto L_notall;
					if(Zeny<20000000) goto L_notall;
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, let me craft this weapon for you.";
					delitem 8017,1;
					delitem 8016,1;
					delitem 1608,1;
					set Zeny,zeny - 20000000;
					next;
					mes "[^ff0000Some Time After wait for your Kyojin Weapon^000000]";
					next;
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Here is your Weapon, Enjoy it, Remember you can only make 1 weapon per account!!";
					getitem 1648,1; // item reward
					close;

				case 2:
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Come back when you get ready for it.";
					close;
}
		case 4:
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "Here is what you need, take note of it.";
			next;
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "1 Pair of Angel Wings";
			mes "1 Pair of Devil Wings";
			mes "1 Spear[3]";
			mes "20,000,000 zeny";
			next;
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "Make it now?";
			next;
			switch(select("Yeah !:No Thanks.")) {
				case 1:
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Let me check if you bring all the items.";
					next;
					if(countitem(8017) < 1) goto L_notall;
					if(countitem(8016) < 1) goto L_notall;
					if(countitem(1404) < 1) goto L_notall;
					if(Zeny<20000000) goto L_notall;
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, let me craft this weapon for you.";
					delitem 8017,1;
					delitem 8016,1;
					delitem 1404,1;
					set Zeny,zeny - 20000000;
					next;
					mes "[^ff0000Some Time After wait for your Kyojin Weapon^000000]";
					next;
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Here is your Weapon, Enjoy it, Remember you can only make 1 weapon per account!!";
					getitem 1470,1; // item reward
					close;

				case 2:
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Come back when you get ready for it.";
					close;
}
		case 5:
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "Here is what you need, take note of it.";
			next;
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "1 Pair of Angel Wings";
			mes "1 Pair of Devil Wings";
			mes "1 Studded Knuckles[3]";
			mes "20,000,000 zeny";
			next;
			mes "[^0000ff Kyojin Whitesmith ^000000]";
			mes "Make it now?";
			next;
			switch(select("Yeah !:No Thanks.")) {
				case 1:
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Let me check if you bring all the items.";
					next;
					if(countitem(8017) < 1) goto L_notall;
					if(countitem(8016) < 1) goto L_notall;
					if(countitem(1806) < 1) goto L_notall;
					if(Zeny<20000000) goto L_notall;
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, let me craft this weapon for you.";
					delitem 8017,1;
					delitem 8016,1;
					delitem 1806,1;
					set Zeny,zeny - 20000000;
					next;
					mes "[^ff0000Some Time After wait for your Kyojin Weapon^000000]";
					next;
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Here is your Weapon, Enjoy it, Remember you can only make 1 weapon per account!!";
					getitem 1830,1; // item reward
					close;

				case 2:
					mes "[^0000ff Kyojin Whitesmith ^000000]";
					mes "Ok, Come back when you get ready for it.";
					close;
}

L_notall:
	mes "[^0000ff Kyojin Whitesmith ^000000]";
	mes "Oops, it seems like you forgot any of the requirements.";			

}
	end;
}

 

Headgears:

Note: with this npc i have a problem when somebody talk him and press cancel the cuttin remains there, can somebody fix that please? thank you.

louyang,276,113,1	script	Kakashi#1::KKS	658,{
	cutin "kakashi_01",2;
	mes "[^0000ff Kakashi Sensei ^000000]";
	mes "Hello Young!";
	mes "I was too busy reading my books when Tsunade Sama sent Iruka to a Class A Mission.";
	mes "Now I have to make his job helping childs like you to become a genin.";
	next;
	mes "[^0000ff Kakashi Sensei ^000000]";	
	mes "Hhmm, what should I do now?";
	mes "Aah, I can help you to get your Headprotector as soon as possible, so I can keep reading.";
	mes "You can choose 1 of 6 Headprotectors to become a genin.";
	next;
	mes "[^0000ff Kakashi Sensei ^000000]";	
	mes "Can you tell me of which headprotector would you like to get??";
	switch(select(" Fire: Water: Earth: Wind: Lightning: Sound: Hhmm, I'm udecided yet, I'll come back later.")) {
		case 1:
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "Wise Desition, you want to be from our country, OK, to become a genin from konoha you will need to bring some materials to prove you deserve to be accepted.";
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "This Are The Materials You Will Need To Make A Fire Headprotector:";	
			mes "5x Majestic Goat[0]";
			mes "50x Live Coal";
			mes "50x Fabric";
			mes "50x Steel";			
			mes "10,000,000 zeny for the crafting fees.";
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "Are you ready to make your headprotector??";
			next;
			switch(select("Sure, I got all the items!:no I don't have all the items yet...")) {
				case 1:
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, let me check if you are ready to this";
					next;
					if(countitem(2256) < 5) goto L_manque;
					if(countitem(7098) < 50) goto L_manque;
					if(countitem(1059) < 50) goto L_manque;
					if(countitem(999) < 50) goto L_manque;
					if(Zeny<10000000) goto L_manque;
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, let me craft this wings for you.";
					delitem 2256,5;
					delitem 7098,50;
					delitem 1059,50;
					delitem 999,50;
					set Zeny,zeny - 10000000;
					next;
					mes "[^ff0000Some Time After Wait For Your Headprotector^000000]";
					next;
					mes "[^0000ff Kakashi Sensei ^000000]";					
					mes "Ok, Here is your Headprotector, Now you are an authorized genin!!";
					getitem 8049,1; // item reward
					close;

				case 2:
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, come to see me when you feel prepared to become a ninja";
					close;
}
		case 2:
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "Hmm, so you want to be from Water country, OK, to become a genin from there you will need to bring some materials to prove you deserve to be accepted.";
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "This Are The Materials You Will Need To Make A Water Headprotector:";	
			mes "5x Majestic Goat[0]";
			mes "50x Aquamarine";
			mes "50x Fabric";
			mes "50x Steel";			
			mes "10,000,000 zeny for the crafting fees.";
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "Are you ready to make your headprotector??";
			next;
			switch(select("Sure, I got all the items!:no I don't have all the items yet...")) {
				case 1:
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, let me check if you are ready to this";
					next;
					if(countitem(2256) < 5) goto L_manque;
					if(countitem(720) < 50) goto L_manque;
					if(countitem(1059) < 50) goto L_manque;
					if(countitem(999) < 50) goto L_manque;
					if(Zeny<10000000) goto L_manque;
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, let me craft this wings for you.";
					delitem 2256,5;
					delitem 720,50;
					delitem 1059,50;
					delitem 999,50;
					set Zeny,zeny - 10000000;
					next;
					mes "[^ff0000Some Time After Wait For Your Headprotector^000000]";
					next;
					mes "[^0000ff Kakashi Sensei ^000000]";					
					mes "Ok, Here is your Headprotector, Now you are an authorized genin!!";
					getitem 8052,1; // item reward
					close;

				case 2:
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, come to see me when you feel prepared to become a ninja";
					close;
}
		case 3:
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "Wise Desition, you want to be from Earth country, OK, to become a genin from konoha you will need to bring some materials to prove you deserve to be accepted.";
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "This Are The Materials You Will Need To Make An Earth Headprotector:";	
			mes "5x Majestic Goat[0]";
			mes "50x Stone Fragment";
			mes "50x Fabric";
			mes "50x Steel";			
			mes "10,000,000 zeny for the crafting fees.";
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "Are you ready to make your headprotector??";
			next;
			switch(select("Sure, I got all the items!:no I don't have all the items yet...")) {
				case 1:
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, let me check if you are ready to this";
					next;
					if(countitem(2256) < 5) goto L_manque;
					if(countitem(7067) < 50) goto L_manque;
					if(countitem(1059) < 50) goto L_manque;
					if(countitem(999) < 50) goto L_manque;
					if(Zeny<10000000) goto L_manque;
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, let me craft this wings for you.";
					delitem 2256,5;
					delitem 7067,50;
					delitem 1059,50;
					delitem 999,50;
					set Zeny,zeny - 10000000;
					next;
					mes "[^ff0000Some Time After Wait For Your Headprotector^000000]";
					next;
					mes "[^0000ff Kakashi Sensei ^000000]";					
					mes "Ok, Here is your Headprotector, Now you are an authorized genin!!";
					getitem 8048,1; // item reward
					close;

				case 2:
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, come to see me when you feel prepared to become a ninja";
					close;
}
		case 4:
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "Wise Desition, you want to be from Wind country, OK, to become a genin from konoha you will need to bring some materials to prove you deserve to be accepted.";
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "This Are The Materials You Will Need To Make A Wind Headprotector:";	
			mes "5x Majestic Goat[0]";
			mes "50x Fine Sand";
			mes "50x Fabric";
			mes "50x Steel";			
			mes "10,000,000 zeny for the crafting fees.";
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "Are you ready to make your headprotector??";
			next;
			switch(select("Sure, I got all the items!:no I don't have all the items yet...")) {
				case 1:
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, let me check if you are ready to this";
					next;
					if(countitem(2256) < 5) goto L_manque;
					if(countitem(7043) < 50) goto L_manque;
					if(countitem(1059) < 50) goto L_manque;
					if(countitem(999) < 50) goto L_manque;
					if(Zeny<10000000) goto L_manque;
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, let me craft this wings for you.";
					delitem 2256,5;
					delitem 7043,50;
					delitem 1059,50;
					delitem 999,50;
					set Zeny,zeny - 10000000;
					next;
					mes "[^ff0000Some Time After Wait For Your Headprotector^000000]";
					next;
					mes "[^0000ff Kakashi Sensei ^000000]";					
					mes "Ok, Here is your Headprotector, Now you are an authorized genin!!";
					getitem 8053,1; // item reward
					close;

				case 2:
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, come to see me when you feel prepared to become a ninja";
					close;
}
		case 5:
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "Wise Desition, you want to be from Lightning country, OK, to become a genin from konoha you will need to bring some materials to prove you deserve to be accepted.";
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "This Are The Materials You Will Need To Make A Lightning Headprotector:";	
			mes "5x Majestic Goat[0]";
			mes "50x Rough Wind";
			mes "50x Fabric";
			mes "50x Steel";			
			mes "10,000,000 zeny for the crafting fees.";
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "Are you ready to make your headprotector??";
			next;
			switch(select("Sure, I got all the items!:no I don't have all the items yet...")) {
				case 1:
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, let me check if you are ready to this";
					next;
					if(countitem(2256) < 5) goto L_manque;
					if(countitem(996) < 50) goto L_manque;
					if(countitem(1059) < 50) goto L_manque;
					if(countitem(999) < 50) goto L_manque;
					if(Zeny<10000000) goto L_manque;
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, let me craft this wings for you.";
					delitem 2256,5;
					delitem 996,50;
					delitem 1059,50;
					delitem 999,50;
					set Zeny,zeny - 10000000;
					next;
					mes "[^ff0000Some Time After Wait For Your Headprotector^000000]";
					next;
					mes "[^0000ff Kakashi Sensei ^000000]";					
					mes "Ok, Here is your Headprotector, Now you are an authorized genin!!";
					getitem 8050,1; // item reward
					close;

				case 2:
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, come to see me when you feel prepared to become a ninja";
					close;
}
		case 6:
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "Wise Desition, you want to be from Sound Clan, OK, to become a genin from konoha you will need to bring some materials to prove you deserve to be accepted.";
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "This Are The Materials You Will Need To Make A Sound Headprotector:";	
			mes "5x Majestic Goat[0]";
			mes "50x Research Chart";
			mes "50x Fabric";
			mes "50x Steel";			
			mes "10,000,000 zeny for the crafting fees.";
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "Are you ready to make your headprotector??";
			next;
			switch(select("Sure, I got all the items!:no I don't have all the items yet...")) {
				case 1:
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, let me check if you are ready to this";
					next;
					if(countitem(2256) < 5) goto L_manque;
					if(countitem(7347) < 50) goto L_manque;
					if(countitem(1059) < 50) goto L_manque;
					if(countitem(999) < 50) goto L_manque;
					if(Zeny<10000000) goto L_manque;
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, let me craft this wings for you.";
					delitem 2256,5;
					delitem 7347,50;
					delitem 1059,50;
					delitem 999,50;
					set Zeny,zeny - 10000000;
					next;
					mes "[^ff0000Some Time After Wait For Your Headprotector^000000]";
					next;
					mes "[^0000ff Kakashi Sensei ^000000]";					
					mes "Ok, Here is your Headprotector, Now you are an authorized genin!!";
					getitem 8051,1; // item reward
					close;

				case 2:
					mes "[^0000ff Kakashi Sensei ^000000]";
					mes "Ok, come to see me when you feel prepared to become a ninja";
					close;
}
		case 7:
			next;
			mes "[^0000ff Kakashi Sensei ^000000]";
			mes "OK, thank you, now i can keep reading my novels.";
			mes "Aah, Remember, Im here because Tsunade Sama sent me to do Iruka's job, Here on ^009900KyojinRO^000000.";
			close;

			L_manque:
				mes "[^0000ff Kakashi Sensei ^000000]";
				mes "Hey! I'm a Jounin, you can't fool me so easily. Did you think I wouldn't notice an item missing?";
				mes "Get out of here, you are not ready to become a genin.";
}
			cutin "",255;
			end;
}	

 



bump

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Read: Basic_Scripting

Set a permanent character variable at the end of the quest, check for the variable at the beginning of it.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

Read: Basic_Scripting

Set a permanent character variable at the end of the quest, check for the variable at the beginning of it.

Thank you, this was very helpful.

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