Yuna Posted February 15, 2020 Posted February 15, 2020 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! Quote
0 Litro Endemic Posted February 15, 2020 Posted February 15, 2020 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; 1 Quote
0 sader1992 Posted February 15, 2020 Posted February 15, 2020 didn't test it , but i guess this would work 5% .@rate = 5; .@s = ((BaseExp + NextBaseExp)/100); getexp2 (.@s * .@rate),0; 1 Quote
0 Yuna Posted February 15, 2020 Author Posted February 15, 2020 (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 February 15, 2020 by Yuna Quote
Question
Yuna
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.