Jump to content
  • 0

Specific Job Changer


Light

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   1
  • Joined:  12/09/12
  • Last Seen:  

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   345
  • Joined:  02/26/12
  • Last Seen:  

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