I am using a script to premium extra exp on login.lua, and works perfect in tfs 0.3 beta2, but when a changed to tfs rc1 (cryingdamson), the players cannot login, appear the screen of select characters, but when try to login comeback to screen of select characters, what could be?
PS: Doesn't get any error on console
function onLogin(cid)
registerCreatureEvent(cid, "PlayerDeath")
if isPremium(cid) == TRUE and getPlayerLevel(cid) <= 100 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid)+75)
setPlayerStorageValue(cid, 12345, 1)
elseif isPremium(cid) == TRUE and getPlayerLevel(cid) > 100 and getPlayerLevel(cid) <= 150 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid)+45)
setPlayerStorageValue(cid, 12345, 2)
elseif isPremium(cid) == TRUE and getPlayerLevel(cid) > 150 and getPlayerLevel(cid) <= 200 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid)+37.5)
setPlayerStorageValue(cid, 12345, 3)
elseif isPremium(cid) == TRUE and getPlayerLevel(cid) > 200 and getPlayerLevel(cid) <= 250 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid)+30)
setPlayerStorageValue(cid, 12345, 4)
elseif isPremium(cid) == TRUE and getPlayerLevel(cid) > 250 and getPlayerLevel(cid) <= 300 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid)+15)
setPlayerStorageValue(cid, 12345, 5)
elseif isPremium(cid) == TRUE and getPlayerLevel(cid) > 300 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid)+7.5)
setPlayerStorageValue(cid, 12345, 6)
elseif isPremium(cid) == FALSE and getPlayerStorageValue(cid, 12345) == 1 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid))
setPlayerStorageValue(cid, 12345, 0)
elseif isPremium(cid) == FALSE and getPlayerStorageValue(cid, 12345) == 2 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid))
setPlayerStorageValue(cid, 12345, 0)
elseif isPremium(cid) == FALSE and getPlayerStorageValue(cid, 12345) == 3 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid))
setPlayerStorageValue(cid, 12345, 0)
elseif isPremium(cid) == FALSE and getPlayerStorageValue(cid, 12345) == 4 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid))
setPlayerStorageValue(cid, 12345, 0)
elseif isPremium(cid) == FALSE and getPlayerStorageValue(cid, 12345) == 5 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid))
setPlayerStorageValue(cid, 12345, 0)
elseif isPremium(cid) == FALSE and getPlayerStorageValue(cid, 12345) == 6 then
setPlayerExtraExpRate(cid, getPlayerExtraExpRate(cid))
setPlayerStorageValue(cid, 12345, 0)
end
return TRUE
end
PS: Doesn't get any error on console