president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
Hi everyone, I'm having a problem with the function doPlayerAddExp check the image below
Just want the 150000 multiplied by the actual stages.
and I have the function in the compat.lua
Code:
player:doPlayerAddExp(150000, true)
Just want the 150000 multiplied by the actual stages.
and I have the function in the compat.lua
Code:
function doPlayerAddExp(cid, exp, useMult, ...)
local player = Player(cid)
if player == nil then
return false
end
if useMult then
exp = exp * Game.getExperienceStage(player:getLevel())
end
return player:addExperience(exp, ...)
end