⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 npc_1stjob.txt

📁 CS反恐精英1.6的部分C源代码。
💻 TXT
📖 第 1 页 / 共 2 页
字号:
// JOB NPC

//Swordman job change
izlude_in.gat,74,172,5	script	Sword Master	119,{
mes "[Swordman]";
mes "Welcome to the Swordman Association.";
mes "So you want to be a Swordman?";
next;
menu "Yes",Lyes,"No",Lno;
	Lyes:
		mes "[Swordman]";
		mes "First, you must learn Basic Skill until Level 9. If you can't qualify this condition, you won't be able to become anything.";
		next;

		if(joblevel<10) goto LnoLvl;

		mes "[Swordman]";
		mes "Become a Swordman will not be that easy. You will need to pass through a test with 3 levels.";
		mes "Do you want to subscribe to the test?";
		menu "Yes",LyesB,"No",Lno;

			LyesB:
				if(getjob==Job_Novice) goto GoToMission;
				mes "You must be kidding me! You already have a job.";
				close;
	Lno:
		mes "[Sword Master]";
		mes "Thank you for your interesting.";
		close;

	LnoLvl:
		mes "[Sword Master]";
		mes "Oh, you can't qualify the required conditions to become a Swordman. Come back later.";
		close;

	GoToMission:
		jobchange Job_Swordman;
		warp "sword_1-1.gat",12,244;
		close;

close; }

//Archer

payon_in02.gat,65,71,2	script	Archer	88,{
if(getjob!=Job_Novice) goto LOtherjobs;
mes "[Archer]";
mes "Welcome to Payon, traveller";
mes "So, have you decided if you want to be an archer?";
menu "Yes, I choose to be an archer!",LArcherChoose,"No, I have not decided yet",LEndCancel;
	LArcherChoose:
		if(joblevel<10) goto LNotQualified;
		if(getjob !=Job_Novice) goto LNotNovice;
		mes "[Archer]";
		mes "That's nice... but do you think you can be an archer that easily?";
		mes "First, I need you to collect some trunks.";
		menu "I've got them!",LCheckItems,"What trunks?",LTrunkInfo,"Err, I've changed my mind",LEndCancel;
		close;
	LCheckItems:
		if(countitem(1066)<1) goto Lnotenoughtrunks;
		if(countitem(1067)<1) goto Lnotenoughtrunks;
		if(countitem(1068)<1) goto Lnotenoughtrunks;
		mes "Congratulations on passing the test! You are now an archer!";
		jobchange Job_Archer;
		set joblevel,1;
		delitem 1066,1;
		delitem 1067,1;
		delitem 1068,1;
		close;
	Lnotenoughtrunks:
		mes "Sorry, you've not gotten what I asked you to get.";
		mes "Come back again when you find all the trunks.";
		mes "Willows drop trunks, if you forgot.";
		close;
	LTrunkInfo:
		mes "[Archer]";
		mes "First, I need you to collect some trunks.";
		next;
		mes "1 Solid Trunk, 1 Barren Trunk and 1 Fine Grained Trunk will do.";
		next;
		mes "Come back to me once you've completed gathering those 3 trunks";
		next;
		mes "Hint: The trunks are dropped by a monster called Willow";
		next;
		close;
	LEndCancel:
		mes "Well, come back and tell me if you've decided to be an archer!";
		close;
	LNotQualified:
		mes "[Archer]";
		mes "Sorry, but you don't qualify for the basic requirements of being an archer...";
		mes "You need to have acquired Basic Skills Level 9 first";
		mes "Come back again when you have that, okay?";
		close;
	LOtherjobs:
		mes "[Archer]";
		mes "Welcome to Payon, traveller";
		mes "This is the place where you apply to be an archer, but you've already another job";
		mes "Wish you good luck in your job!";
		close;
close;	}

//Mage job change NPC 1
geffen_in.gat,164,124,2	script	Guildsman	120,{
mes "[Guildsman]";
mes "Hello there wonderer. You came to sign up for the mage job?";
next;
menu "Yes",LyesA,"No",LnoA;
		LyesA:
			mes "[Guildsman]";
			mes "Have you made the solution?";
			menu "Yes",LyesB,"No",LnoB;
			close;

		LyesB:
			if(getjob !=Job_Novice) goto LNotNovice;
			if(joblevel<10) goto LnoLvl;
			if(countitem(1089)<1) goto Llessitem;

			mes "[Guildsman]";
			mes "Thank you for the solution, you have proven your skills and will become a Mage.";

			jobchange Job_Mage;
			delitem 1089,1;
			close;
		LnoB:
			if(getjob !=Job_Novice) goto LNotNovice;
			mes "[Guildsman]";
			mes "You need to be on Job level 10 and ";
			mes "I will need to test your skills, so you must find some itens and make a solution for me.";
			next;
			mes "[Guildsman]";
			mes "The itens you will need are:";
			mes "Jellopy 2ea, Fluff 3ea, Milk 1ea and an Payon Solution from the";
			mes "Archer Village, Mixing machine of Payon.";
			mes "To complete your quest you must mix them at the Mixing Machine and enter this";
			mes "Code: 8472.";
			mes "Please remember it and bring the solution back to me.";
			close;
		LnoA:
			mes "[Guildsman]";
			mes "Thank you for your interesting.";
			close;

		LnoLvl:
			mes "[Guildsman]";
			mes "Oh, you does not have can't qualify the required conditions to become a Mage. You need Job Skill at level 10 before trying to become a Mage. Come back later.";
			close;
		Llessitem:
			mes "[Guildsman]";
			mes "Come back when you make the solution.";
			mes "The itens you will need are:";
			mes "Jellopy 2ea, Fluff 3ea, Milk 1ea and an Aqueous Solution from the";
			mes "Archer Village, Payon.";
			mes "To complete your quest you must mix them at the Mixing Machine and enter this";
			mes "Code: 8472.";
			mes "Please remember it and bring the solution back to me.";
			close;
		LNotNovice:
			mes "You must be kidding me! You already have a job.";
			close;
close; }

//Mage job change NPC 2
payon_in02.gat,86,29,1	script	Aqueur-Alquimist	54,{
mes "[Solution Maker]";
mes "Searching needed items...";
next;
if(getjob !=Job_Novice) goto LNotNovice;
if(countitem(909)<2) goto Llessitem0;
if(countitem(914)<3) goto Llessitem1;
if(countitem(519)<1) goto Llessitem2;
mes "Mixing completed successful.";
next;
getitem 1089,1;
close;

	Llessitem0:
		mes "Not enough Jellopy.";
		close;
	Llessitem1:
		mes "Not enough Fluff.";
		close;
	Llessitem2:
		mes "Not enough Milk.";
		close;
	LNotNovice:
		mes "Sorry this machine is only for novices.";
		close;
close; }

//Thief job change
moc_prydb1.gat,46,130,0	script	Thief Guildsman	117,{
mes "[Thief Guildsman]";
mes "Hey baby, you came here for the Thief job?";
next;
menu "Yes",LyesA,"No",LnoA;
	LyesA:
		if(getjob!=Job_Novice) goto NotNovice;
		mes "[Thief Guildsman]";
		mes "Have you found the Mushrooms?";
		menu "Yes",LyesB,"No",LnoB;
		LyesB:
			if(joblevel<10) goto LnoLvl;
			if(countitem(1069)<1) goto Llessitem;
			if(countitem(1070)<1) goto Llessitem;

			mes "[Thief Guildsman]";
			mes "Thank you for the Mushrooms, as I promised, you will become a Thief.";

			jobchange Job_Thief;
			close;
		LnoB:
			if(getjob!=Job_Novice) goto Lnojob;
			getitem 1069,1;
			next;
			mes "[Thief Guildsman]";
			mes "You will need to collect some mushrooms for me.";
			mes "These are no ordinary mushrooms, you need to find The Orange Govey Mushroom and";
			mes "The Orange Net Mushroom.";
			mes "Go outside the pyramids and talk to the NPC guild";
			mes "he can warp you where the mushrooms are.";
			mes "Come and see me when you have all the musrooms.";
			close;
		LnoA:
			mes "[Thief Guildsman]";
			mes "Thank you for your interesting.";
			close;

		Lnojob:
			mes "You already have an job buddy.";
			close;

		LnoLvl:
			mes "[Thief Guildsman]";
			mes "Oh, you does not have can't qualify the required conditions to become a Thief. You need Job Skill at level 10 before trying to become a Thief. Come back later.";
			next;
			close;
	Llessitem:
			mes "[Thief Guildsman]";
			mes "Come back when you found the Mushrooms.";
			mes "These are no ordinary mushrooms, you need to find The Orange Govey Mushroom and";
			mes "The Orange Net Mushroom.";
			mes "Go outside the pyramids and talk to the NPC guild";
			mes "he can warp you where the mushrooms are.";
			next;
			close;
	NotNovice:
			mes "You must be kidding me! You already have a job.";
			close;
close; }

//ThiefQuest 2nd NPC
moc_ruins.gat,99,118,4	script	Strange Man	54,{
	if(countitem(1069)>0) goto Linqst;
	goto Lnotqst;
	Linqst:
		mes "Ah ha! So I see that you are the fool who is here for the theif exam.";
		mes "Yes, I can get you into the garden. Hahaha.";
		mes "Good Luck buddy.";
		next;
		warp "job_thief1.gat",38,323;
	close;
	Lnotqst:
		mes "I have nothing to say to you.";
		mes "if you are looking for thief quest.";
		mes "find the first npc on pyramides and,";
		mes "come back here buddy :P";

close; }

//Merchant job change NPC 1
alberta_in.gat,53,44,2	script	Merchant Guild	88,{
mes "[NPC Guild]";
mes "Hi there! Are you here for the Merchant job?";
next;
menu "Yes",LyesA,"No",LnoA;
	LyesA:
		mes "[NPC Guild]";
		mes "Do you have the Voucher?";
		menu "Yes",LyesB,"No",LnoB;
		close;
		LyesB:
			if(getjob !=Job_Novice) goto LNotNovice;
			if(joblevel<10) goto LnoLvl;
			if(countitem(1073)<1) goto Llessitem;

			mes "Oh, you already have the Voucher. Now you will become a Merchant.";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -