Change style script.

JoyRo

New member
Messages
120
Points
0
Location
Netherlands
Emulator
prontera,145,158,4 script 3rd Job Sprite 4_ELEPHANT,{
.@choose = select( "New 3rd Class", "Exit" );
if ( .@choose == 1 && ( Class == Job_Mechanic || Class == Job_Guillotine_Cross || Class == Job_Genetic ) ) {
setlook 13, 1;
close;
}
else
mes "I am sorry but you cant change.";
mes "Only Mechanic Guillotine Cross and Genetic can use this npc.";
emotion e_swt,1;
setlook 13, 0;
close;
}

Can any 1 help me with this script i made.

The script should make a mechenic GX and Genetic able to use the npc and set off the command setlook13, 1;

But somehow i only get the else command if i logged with genetic or other class.

 
prontera,145,158,4 script 3rd Job Sprite 4_ELEPHANT,{

menu "New 3rd Class:Exit", -1;

switch (@menu) {
case 1:

if ( Class == Job_Mechanic || Class == Job_Guillotine_Cross || Class == Job_Genetic ) {
setlook 13, 1;
close;
}

else {
mes "I am sorry but you cant change.";
mes "Only Mechanic Guillotine Cross and Genetic can use this npc.";
emotion e_swt,1;
close;
}
break;

default:
mes "Okay, bye..";
break;
}
}


Try this. I don't test it. Hope it work. 
default_wink.png


 
Hey thanx for the Reply

The code isent working  i had to change it abit to remove the errors but still says i am not a good class.

Code:
prontera,145,158,4	script	3rd Job Sprite	4_ELEPHANT,{
	mes "[PVP Narrator]";
	mes "Hello and welcome!";
	mes "I am in charge of";
	mes "explaining the new Job Sprites.";
	next;
	switch(select("Change me!:Explain please:End Dialog.")) {
		case 1:
			if ( Class == Job_Mechanic || Class == Job_Guillotine_Cross_Trans || Class == Job_Genetic ) {
				setlook 13, 1;
				close;
			}  
			else {
				mes "I am sorry but you cant change.";
				mes "Only Mechanic Guillotine Cross and Genetic can use this npc.";
				emotion e_swt,1;
				close;    
			}
			break;
			
		default:
			mes "Okay, bye..";
			break;
	}
}
 
can you post your error here? Btw, I forgot to write close; on my first reply. Sorry..

try this:

Code:
prontera,145,158,4	script	3rd Job Sprite	4_ELEPHANT,{
	mes "[PVP Narrator]";
	mes "Hello and welcome!";
	mes "I am in charge of";
	mes "explaining the new Job Sprites.";
	next;
	switch(select("Change me!:Explain please:End Dialog.")) {
		case 1:
			if ( Class == Job_Mechanic || Class == Job_Guillotine_Cross_Trans || Class == Job_Genetic ) {
				setlook 13, 1;
				close;
			}  
			else {
				mes "I am sorry but you cant change.";
				mes "Only Mechanic Guillotine Cross and Genetic can use this npc.";
				emotion e_swt,1;
				close;    
			}
			break;
		
		case 2:
			mes"Your explanation.. bla bla bla..";
			break;

		case 3:
			mes "Okay, bye..";
			break;
	}
	close;
}
 
Last edited by a moderator:
Nope there is still something wrong with 

if ( Class == Job_Mechanic || Class == Job_Guillotine_Cross_Trans || Class == Job_Genetic ) {

i think.

 
Iirc there are at least 2 classes for each 3rd job: One that went without going trans, and one with. For mechanic there's 2 more, as each path has a sprite job for mech.

So, you'd need to include:

Code:
Job_Mechanic
Job_Guillotine_Cross
Job_Genetic

Job_Mechanic_T
Job_Guillotine_Cross_T
Job_Genetic_T

Job_Mechanic2
Job_Mechanic_T2
 
Please send your error on map server or picture. So others can help you easily.

 
Wish there was a error than we could find the problem easy.
I changed my script and it seems to work now.

Code:
		case 1:
	if( (eaclass()&EAJ_THIRDMASK) == EAJ_MECHANIC )
		setlook 13, 1;
 
Back
Top