Jump to content
  • 0
Yuna

Item that gives a set EXP %

Question

I'm trying to make a usable item that gives you a set % of exp.
For example, if the % is set to 5%, when the item is used it will give you 5% EXP regardless of your level.
Can this be done? and please show an example. Thank you!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

According script doc

BaseExp     - Amount of base experience points.
JobExp      - Amount of job experience points.
NextBaseExp - Amount of base experience points needed to reach the next level.
NextJobExp  - Amount of job experience points needed to reach the next level.

since i didn't test it on game, i am not sure if NextBaseExp is full amount or has been reduced by BaseExp, if not reduced use the first one, if reduced use the 2nd one

[email protected] = 5; [email protected] = (NextBaseExp * [email protected]) / 100; getexp2 [email protected],0;
[email protected] = 5; [email protected] = ((NextBaseExp - BaseExp) * [email protected]) / 100; getexp2 [email protected],0;

 

  • MVP 1
Link to comment
Share on other sites

  • 0

didn't test it , but i guess this would work

5%

[email protected]rate = 5; [email protected]s = ((BaseExp + NextBaseExp)/100); getexp2 ([email protected]s * [email protected]rate),0;

 

  • Like 1
Link to comment
Share on other sites

  • 0
On 2/15/2020 at 4:35 PM, sader1992 said:

didn't test it , but i guess this would work

5%

[email protected]rate = 5; [email protected]s = ((BaseExp + NextBaseExp)/100); getexp2 ([email protected]s * [email protected]rate),0;

 

Thanks for the response! 
I tried it out, but it didn't give any EXP at all..🤔
And no errors.

 

On 2/15/2020 at 5:12 PM, Litro Endemic said:

According script doc

BaseExp     - Amount of base experience points.
JobExp      - Amount of job experience points.
NextBaseExp - Amount of base experience points needed to reach the next level.
NextJobExp  - Amount of job experience points needed to reach the next level.

since i didn't test it on game, i am not sure if NextBaseExp is full amount or has been reduced by BaseExp, if not reduced use the first one, if reduced use the 2nd one

[email protected] = 5; [email protected] = (NextBaseExp * [email protected]) / 100; getexp2 [email protected],0;
[email protected] = 5; [email protected] = ((NextBaseExp - BaseExp) * [email protected]) / 100; getexp2 [email protected],0;

 

Thank you very much @Litro Endemic !
I used the 1st one, and it worked 🙂 
 

Edited by Yuna
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...

Important Information

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