trollebror
Developer
Used the search, found nothing about this.
NPC: "Then I shall give you some exp as reward for you effort!"
~NPC adds x% exp to the current level~
PLAYER: "k-tnx-bye"
If you have a solution, please halp! :ninja:
SOLUTION:
By soul4soul. 0 added by me
should be there or else it won't work as it should.
NPC: "Then I shall give you some exp as reward for you effort!"
~NPC adds x% exp to the current level~
PLAYER: "k-tnx-bye"
If you have a solution, please halp! :ninja:
SOLUTION:
By soul4soul. 0 added by me
local lvl = getPlayerLevel(cid)
local percent = 0.05 --5%
local exp = (50 * (lvl) * (lvl) * (lvl) - 150 * (lvl) * (lvl) + 400 * (lvl)) / 3
local nexp = (50 * (lvl+1) * (lvl+1) * (lvl+1) - 150 * (lvl+1) * (lvl+1) + 400 * (lvl+1)) / 3
local percentexp = nexp-exp * percent
doPlayerAddExp(cid,percentexp)
Last edited: