• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

VIP Exp bonus

data/events/player.lua
Code:
function Player:onGainExperience(source, exp, rawExp)
     if self:isVip() then
         return exp * 1.5
     end
     return exp
end
You also have to enable it in events.xml.
 
Okay i try with this command:

<event class="Player" method="onGainExperience" enabled="1" />

but i receive this on distro:

[Warning - Events::load] Unknown player method: onGainExperience

help pleaseee :(
 
Last edited:
Okay i try with this command:

<event class="Player" method="onGainExperience" enabled="1" />

but i receive this on distro:

[Warning - Events::load] Unknown player method: onGainExperience

help pleaseee :(
I know nothing about 1.0 TFS.
[Warning - Events::load] Unknown player method: onGainExperience
That warning means i think that action doesn't exist.
 
Back
Top