Advertisement
Guest User

Untitled

a guest
Nov 6th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. function Player:onGainExperience(source, exp, rawExp)
  2.     if not source or source:isPlayer() then
  3.         return exp
  4.     end
  5.    
  6.     if CASTEXP[self:getName()] then
  7.         if CASTEXP[self:getName()] <= os.time() then
  8.             exp = (exp * CASTEXP_PERCENT) + exp
  9.             self:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'Voce recebeu mais experiencia por manter o cast aberto.')
  10.         end
  11.     end
  12.    
  13.     return exp
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement