Jump to content
  • 0

Hello, help about editing the exp rate via script


Onairda

Question


  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.03
  • Content Count:  167
  • Reputation:   8
  • Joined:  12/30/16
  • Last Seen:  

Hello there, ? . i want to change the experience for player who have fame 100+.  the fame is stored inside cha_reg_num e

 

example

if( fame >= 100){

//Baselevel exp + 10k

}

else if( fame >= 150){

//BaseLevel exp + 20k

}

thank you so much

Edited by G-RO
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.03
  • Content Count:  167
  • Reputation:   8
  • Joined:  12/30/16
  • Last Seen:  

 

20 hours ago, crazyarashi said:

You can use bonus2 bExpAddClass
 


if(fame >= 100){
	bonus2 bExpAddClass,Class_All,20; //= Increase EXP gain from killing mobs by 20%
}


 

Thank you sir crazyarashi for fast response. Do i need to put OnPCLoginEvent:?  or i just need to build like this
 

// btw i solve it :

 

 

sc_start SC_EXPBOOST,864000000,1000;
		sc_start SC_JEXPBOOST,864000000,1000;

 

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

You can use bonus2 bExpAddClass
 

if(fame >= 100){
	bonus2 bExpAddClass,Class_All,20; //= Increase EXP gain from killing mobs by 20%
}


 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.03
  • Content Count:  167
  • Reputation:   8
  • Joined:  12/30/16
  • Last Seen:  

 

15 hours ago, crazyarashi said:

You can use bonus2 bExpAddClass
 


if(fame >= 100){
	bonus2 bExpAddClass,Class_All,20; //= Increase EXP gain from killing mobs by 20%
}


 

Thank you sir crazyarashi for fast response. 
 

-	script	expratesfloat	-1,{
OnPCLoginEvent:
OnPCJobLvUpEvent:
OnPCBaseLvUpEvent:
mes "Hi"; 
if( fame >= 1){
	bonus2 bExpAddClass,Class_All,100; //= Increase EXP gain from killing mobs by 20%
close;
}
}

Its not working , i check my exp still the same 

Edited by G-RO
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...