Jump to content
  • 0
Sign in to follow this  
JoyRo

Change style script.

Question


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.

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

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

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

Share this post


Link to post
Share on other sites
  • 0
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.  ;)

Share this post


Link to post
Share on other sites
  • 0

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.

 

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

Share this post


Link to post
Share on other sites
  • 0

can you post your error here? Btw, I forgot to write close; on my first reply. Sorry..

 

 

try this:

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;
}
Edited by Fizi

Share this post


Link to post
Share on other sites
  • 0

Nope there is still something wrong with 

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

i think.

Share this post


Link to post
Share on other sites
  • 0

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:

Job_Mechanic
Job_Guillotine_Cross
Job_Genetic

Job_Mechanic_T
Job_Guillotine_Cross_T
Job_Genetic_T

Job_Mechanic2
Job_Mechanic_T2

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.