Jump to content
  • 0

Item that gives a set EXP %


Yuna

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   5
  • Joined:  03/16/16
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   76
  • Joined:  06/13/13
  • Last Seen:  

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

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

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

5%

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

 

  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   5
  • Joined:  03/16/16
  • Last Seen:  

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