Jump to content

Question

Posted (edited)

Hi! How can I make this using setarray? And the exp give depends on type of job i am, for example.

If the NPC detects that im swordsman my base level is level 1, it will give me 2 basexp and 3 job exp.

else if acolyte and baselevel 1 4 bexp 5 jexp

and so on.

Thanks!

Edited by UnknownUser0317

3 answers to this question

Recommended Posts

  • 1
Posted
	switch ( Class ) {
		case Job_Swordman:
			setarray .@base_exp,1,2,3,4,5,6,7,8,9,10;
			setarray .@job_exp,1,2,3,4,5,6,7,8,9,10;
			break;
		case Job_Acolyte:
			setarray .@base_exp,1,2,3,4,5,6,7,8,9,10;
			setarray .@job_exp,1,2,3,4,5,6,7,8,9,10;
			break;
		default: 
			break;
	}
	getexp( .@base_exp[BaseLevel - 1], .@job_exp[BaseLevel - 1] );

 

  • 0
Posted
if ( BaseLevel > 1 ) {
	mes "Only Base Level 1 can get EXP.";
}
else {
	switch ( Class ) {
		case Job_Swordman:
			getexp( 2, 3 );
			break;
		case Job_Acolyte:
			getexp( 4, 5 );
			break;
		default: break;
	}
}

 

  • 0
Posted
13 minutes ago, Emistry said:

if ( BaseLevel > 1 ) {
	mes "Only Base Level 1 can get EXP.";
}
else {
	switch ( Class ) {
		case Job_Swordman:
			getexp( 2, 3 );
			break;
		case Job_Acolyte:
			getexp( 4, 5 );
			break;
		default: break;
	}
}

 

@Emistry Hmm, thank you for this, But where's the checking the level of the player? and must use array.

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