Help My script vip exp dont work bonus exp. All msgs work but bonus exp dont work. I registred creature event.
I add Rep ++
function onLogin(cid)
local rate = 1.4 -- 40%
local config = {
welvip = "[VIP Status]: Você possui ".. getPlayerVipDays(cid) .." dias de VIP e "..((rate - 1)*100).."% de Bonus Exp!",
not_vip = "[VIP Status]: Você possui 0 dias de VIP. Adiquira VIP para obter "..((rate - 1)*100).."% de Bonus Exp e muitas outras vantagens!",
vip = getPlayerVipDays(cid) >= 1
}
if (config.vip == TRUE) then
doPlayerSetExperienceRate(cid, rate)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.welvip)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.not_vip)
end
return TRUE
end
I add Rep ++