Jump to content
  • 0

EXP Giver


UnknownUser0317

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   1
  • Joined:  11/19/16
  • Last Seen:  

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
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

	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] );

 

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   1
  • Joined:  11/19/16
  • Last Seen:  

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.

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