Jump to content
  • 0

Specific Job Changer


Question

Posted

Hi Guys, Need your help

 

[spoiler=Script]iz_ac01,100,39,4 script Captain Joe 470,{
if (BaseJob != Job_Swordman) {
if (BaseJob == Job_Knight) {
mes "Ah, a member of our Chivalry.";
mes "I hope you are living up to my expectations. We have vowed to be strong for our kingdom, even if death is upon us...";
mes "What brings you here?";
next;
switch(select("I want to change my job to a Knight.:Just visiting.")) {
case 1:
mes "[Captain Joe]";
mes "I see.";
mes "A Knight?, you say?";
mes "You've come to the right place, "+((Sex)?"lad":"lass")+".";
mes "but you dont need any quest if you want to become one!";
mes "I sense great honor and pride in you so I can change you now into a knight.";
next;
callfunc "Job_Change",Job_Knight;
callfunc "F_ClearJobVar"; // Clears all job variables for the current player
mes "[Captain Joe]";
mes "I hereby declare";
mes "you a member of";
mes "the Prontera Chivalry.";
mes "Protect the weak and";
mes "live with honor.";
next;
getitem 656,7; //Awakening_Potion
mes "[Captain Herman]";
mes "Oh...";
mes "We have prepared a small gift to congratulate you on your job change. Please use it when you are in battle as you honorably protect others.";
next;
mes "[Captain Herman]";
mes "Go forth!";
mes "The future of";
mes "Rune-Midgard";
mes "rests on your";
mes "shoulders!";
close;
case 2:
mes "[Captain Herman]";
mes "Ah, I see you can look around here for some quest in the mean time";
mes "Good luck, Honorable Knight.";
close;
}
else (BaseClass == Job_Novice) {
mes "Welcome,";
mes "this is the";
mes "Prontera Chivalry.";
mes "What brings you here?";
next;
switch(select("I want to change my job to Swordman.:I want to change my job to a Knight.:Just visiting.")) {
case 1:
mes "[Captain Joe]";
mes "I see.";
mes "A Swordman, you say?";
mes "You've come to the right place, "+((Sex)?"lad":"lass")+".";
mes "but you dont need any quest if you want to become one!";
mes "I sense great honor and pride in you so I can change you now into a swordsman.";
next;
callfunc "Job_Change",Job_Swordsman;
callfunc "F_ClearJobVar"; // Clears all job variables for the current player
mes "[Captain Joe]";
mes "I hereby declare";
mes "you a member of";
mes "the Prontera Chivalry.";
mes "Protect the weak and";
mes "live with honor.";
next;
getitem 656,7; //Awakening_Potion
mes "[Captain Herman]";
mes "Oh...";
mes "We have prepared a small gift to congratulate you on your job change. Please use it when you are in battle as you honorably protect others.";
next;
mes "[Captain Herman]";
mes "Go forth!";
mes "The future of";
mes "Rune-Midgard";
mes "rests on your";
mes "shoulders!";
close;
case 2:
mes "[Captain Herman]";
mes "Ah, I see that you have great ambition. But you must first become a Swordman before becoming";
mes "a Knight. One step at a time...";
next;
mes "[Captain Herman]";
mes "First, visit the Swordman guild in Izlude. Then, come visit us again once you have become a well experienced Swordman.";
close;
case 3:
mes "[Captain Herman]";
mes "Aha~";
mes "You must have lots of free time. Why don't you go hunt some monsters instead of wandering about aimlessly?";
close;
}

}
else {
mes "Welcome. We, the proud Knights of the Prontera Chivalry, will give our lives for king and country! Please enjoy your stay.";
close;
}
}
}

}

 

Clicking the NPC doesnt do anything. Help thanks in advance

2 answers to this question

Recommended Posts

Posted
iz_ac01,100,39,4 script Captain Joe 470,{
	if (BaseClass == Job_Novice) {
		mes "Welcome,";
		mes "this is the";
		mes "Prontera Chivalry.";
		mes "What brings you here?";
		next;
		switch(select("I want to change my job to Swordman.:I want to change my job to a Knight.:Just visiting.")) {
		case 1:
			mes "[Captain Joe]";
			mes "I see.";
			mes "A Swordman, you say?";
			mes "You've come to the right place, "+((Sex)?"lad":"lass")+".";
			mes "but you dont need any quest if you want to become one!";
			mes "I sense great honor and pride in you so I can change you now into a swordsman.";
			next;
			callfunc "Job_Change",Job_Swordsman;
			callfunc "F_ClearJobVar"; // Clears all job variables for the current player
			mes "[Captain Joe]";
			mes "I hereby declare you a member of the Prontera Chivalry.";
			mes "Protect the weak and live with honor.";
			next;
			getitem 656,7; //Awakening_Potion
			mes "[Captain Herman]";
			mes "Oh...";
			mes "We have prepared a small gift to congratulate you on your job change. Please use it when you are in battle as you honorably protect others.";
			next;
			mes "[Captain Herman]";
			mes "Go forth!";
			mes "The future of Rune-Midgard rests on your shoulders!";
			close;
				
		case 2:
			mes "[Captain Herman]";
			mes "Ah, I see that you have great ambition. But you must first become a Swordman before becoming";
			mes "a Knight. One step at a time...";
			next;
			mes "[Captain Herman]";
			mes "First, visit the Swordman guild in Izlude. Then, come visit us again once you have become a well experienced Swordman.";
			close;
				
		case 3:
			mes "[Captain Herman]";
			mes "Aha~";
			mes "You must have lots of free time. Why don't you go hunt some monsters instead of wandering about aimlessly?";
			close;
		}
	} else if (BaseJob == Job_Swordman) {
		mes "Ah, a member of our Chivalry.";
		mes "I hope you are living up to my expectations. We have vowed to be strong for our kingdom, even if death is upon us...";
		mes "What brings you here?";
		next;
		switch(select("I want to change my job to a Knight.:Just visiting.")) {
		case 1:
			mes "[Captain Joe]";
			mes "I see.";
			mes "A Knight?, you say?";
			mes "You've come to the right place, "+((Sex)?"lad":"lass")+".";
			mes "but you dont need any quest if you want to become one!";
			mes "I sense great honor and pride in you so I can change you now into a knight.";
			next;
			callfunc "Job_Change",Job_Knight;
			callfunc "F_ClearJobVar"; // Clears all job variables for the current player
			mes "[Captain Joe]";
			mes "I hereby declare";
			mes "you a member of";
			mes "the Prontera Chivalry.";
			mes "Protect the weak and";
			mes "live with honor.";
			next;
			getitem 656,7; //Awakening_Potion
			mes "[Captain Herman]";
			mes "Oh...";
			mes "We have prepared a small gift to congratulate you on your job change. Please use it when you are in battle as you honorably protect others.";
			next;
			mes "[Captain Herman]";
			mes "Go forth!";
			mes "The future of";
			mes "Rune-Midgard";
			mes "rests on your";
			mes "shoulders!";
			close;
			
		case 2:
			mes "[Captain Herman]";
			mes "Ah, I see you can look around here for some quest in the mean time";
			mes "Good luck, Honorable Knight.";
			close;
		}
	} else if (BaseJob == Job_Knight) {
		mes "Welcome back to the Prontera Chivalry, will give our lives for king and country! Please enjoy your stay.";
		close;
	} else {
		mes "Welcome. We, the proud Knights of the Prontera Chivalry, will give our lives for king and country! Please enjoy your stay.";
		close;
	}
}

Untested

Posted

not tested 

iz_ac01,100,39,4 script Captain Joe 470,{

switch( BaseClass )
{
	case Job_Novice:
		mes "Welcome,";
		mes "this is the";
		mes "Prontera Chivalry.";
		mes "What brings you here?";
		next;
		callsub S_NoviceMenu;
		break;

	case Job_Swordman:
		mes "Ah, a member of our Chivalry.";
		mes "I hope you are living up to my expectations. We have vowed to be strong for our kingdom, even if death is upon us...";
		mes "What brings you here?";
		next;
		callsub S_SwordmanMenu;
		break;

	case Job_Knight:
		mes "Welcome. We, the proud Knights of the Prontera Chivalry, will give our lives for king and country! Please enjoy your stay.";
		break;
}
end;

S_NoviceMenu:
	switch(select("I want to change my job to Swordman.", +
			 	  "I want to change my job to a Knight.", +
			 	  "Just visiting." ))
	{
		// Swordman
		case 1:
			mes "[Captain Joe]";
			mes "I see.";
			mes "A Swordman, you say?";
			mes "You've come to the right place, "+((Sex)?"lad":"lass")+".";
			mes "but you dont need any quest if you want to become one!";
			mes "I sense great honor and pride in you so I can change you now into a swordsman.";
			next;
			callfunc "Job_Change",Job_Swordsman;
			callfunc "F_ClearJobVar"; // Clears all job variables for the current player
			mes "[Captain Joe]";
			mes "I hereby declare";
			mes "you a member of";
			mes "the Prontera Chivalry.";
			mes "Protect the weak and";
			mes "live with honor.";
			next;
			getitem 656,7; //Awakening_Potion
			mes "[Captain Herman]";
			mes "Oh...";
			mes "We have prepared a small gift to congratulate you on your job change. Please use it when you are in battle as you honorably protect others.";
			next;
			mes "[Captain Herman]";
			mes "Go forth!";
			mes "The future of";
			mes "Rune-Midgard";
			mes "rests on your";
			mes "shoulders!";
			break;
		// Knight
		case 2:
			mes "[Captain Herman]";
			mes "Ah, I see that you have great ambition. But you must first become a Swordman before becoming";
			mes "a Knight. One step at a time...";
			next;
			mes "[Captain Herman]";
			mes "First, visit the Swordman guild in Izlude. Then, come visit us again once you have become a well experienced Swordman.";
			break;				
		// Just visiting
		case 3:
			mes "[Captain Herman]";
			mes "Aha~";
			mes "You must have lots of free time. Why don't you go hunt some monsters instead of wandering about aimlessly?";
			break;
	}
	return;
	end;

S_SwordmanMenu:
	switch( select( "I want to change my job to a Knight.", "Just visiting." ) )
	{
		case 1:
			mes "[Captain Joe]";
			mes "I see.";
			mes "A Knight?, you say?";
			mes "You've come to the right place, "+((Sex)?"lad":"lass")+".";
			mes "but you dont need any quest if you want to become one!";
			mes "I sense great honor and pride in you so I can change you now into a knight.";
			next;
			callfunc "Job_Change",Job_Knight;
			callfunc "F_ClearJobVar"; // Clears all job variables for the current player
			mes "[Captain Joe]";
			mes "I hereby declare";
			mes "you a member of";
			mes "the Prontera Chivalry.";
			mes "Protect the weak and";
			mes "live with honor.";
			next;
			getitem 656,7; //Awakening_Potion
			mes "[Captain Herman]";
			mes "Oh...";
			mes "We have prepared a small gift to congratulate you on your job change. Please use it when you are in battle as you honorably protect others.";
			next;
			mes "[Captain Herman]";
			mes "Go forth!";
			mes "The future of";
			mes "Rune-Midgard";
			mes "rests on your";
			mes "shoulders!";
			break;
		case 2:
			mes "[Captain Herman]";
			mes "Ah, I see you can look around here for some quest in the mean time";
			mes "Good luck, Honorable Knight.";
			break;
	}
	return;
	end;
}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...