Jump to content
  • 0

Item that gives a set EXP %


Question

Posted

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!

3 answers to this question

Recommended Posts

  • 0
Posted

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

.@rate = 5; .@s = (NextBaseExp * .@rate) / 100; getexp2 .@s,0;
.@rate = 5; .@s = ((NextBaseExp - BaseExp) * .@rate) / 100; getexp2 .@s,0;

 

  • MVP 1
  • 0
Posted (edited)
On 2/15/2020 at 4:35 PM, sader1992 said:

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

5%


.@rate = 5; .@s = ((BaseExp + NextBaseExp)/100); getexp2 (.@s * .@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


.@rate = 5; .@s = (NextBaseExp * .@rate) / 100; getexp2 .@s,0;
.@rate = 5; .@s = ((NextBaseExp - BaseExp) * .@rate) / 100; getexp2 .@s,0;

 

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

Edited by Yuna

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