Jump to content
  • 0

How do i check this?


Question

Posted
if (
// BaseThird == Job_Rune_Knight || 
// BaseThird == Job_Warlock || 
// BaseThird == Job_Ranger || 
BaseThird == Job_Arch_Bishop || 
BaseThird == Job_Mechanic || 
BaseThird == Job_Guillotine_Cross || 
BaseThird == Job_Royal_Guard || 
// BaseThird == Job_Sorcerer || 
// BaseThird == Job_Minstrel || 
// BaseThird == Job_Wanderer || 
// BaseThird == Job_Sura || 
BaseThird == Job_Genetic
// BaseThird == Job_Shadow_Chaser
)
set @bodystylemax,1;
else
set @bodystylemax,0;

I cant seem to make this work...

 

what is wrong?

 I want @bodystyle to be 1 if the job is not comment with //

3 answers to this question

Recommended Posts

  • 0
Posted

You can try something like that:

switch( BaseThird )
{
	case Job_Arch_Bishop:
	case Job_Mechanic:
	case Job_Guillotine_Cross:
	case Job_Royal_Guard:
	case Job_Genetic:
		set @bodystylemax,1;
		break;
	default:
		set @bodystylemax,0;
		break;
}

That means we doing loop switch though all classes, if we have this variable in switched variable then we do 1 thing, if we do not have this variable, then we do another thing (default:)

  • 0
Posted

You can try something like that:

switch( BaseThird )
{
	case Job_Arch_Bishop:
	case Job_Mechanic:
	case Job_Guillotine_Cross:
	case Job_Royal_Guard:
	case Job_Genetic:
		set @bodystylemax,1;
		break;
	default:
		set @bodystylemax,0;
		break;
}

That means we doing loop switch though all classes, if we have this variable in switched variable then we do 1 thing, if we do not have this variable, then we do another thing (default:)

 

it still return 0 even if my job is AB or mecha or GX or gene or RG :((

  • 0
Posted

 

You can try something like that:

switch( BaseThird )
{
	case Job_Arch_Bishop:
	case Job_Mechanic:
	case Job_Guillotine_Cross:
	case Job_Royal_Guard:
	case Job_Genetic:
		set @bodystylemax,1;
		break;
	default:
		set @bodystylemax,0;
		break;
}

That means we doing loop switch though all classes, if we have this variable in switched variable then we do 1 thing, if we do not have this variable, then we do another thing (default:)

 

it still return 0 even if my job is AB or mecha or GX or gene or RG :((

 

 

can you show full script?

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