Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Player:onGainExperience(source, exp, rawExp)
- if not source or source:isPlayer() then
- return exp
- end
- if CASTEXP[self:getName()] then
- if CASTEXP[self:getName()] <= os.time() then
- exp = (exp * CASTEXP_PERCENT) + exp
- self:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'Voce recebeu mais experiencia por manter o cast aberto.')
- end
- end
- return exp
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement