Hello,
On my ots when player dead on 100 lvl he is dowgnraded to 1 lvl.Hof fix it?
This is my file login.lua
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 2)
end
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "PlayerDeath")
registerCreatureEvent(cid, "Pacccheck")
return TRUE
end
function onLogin(cid)
local premStorage = 5598
if isPremium(cid) == TRUE and getPlayerStorageValue(cid, premStorage) == -1 then
setPlayerStorageValue(cid, premStorage, 1)
elseif isPremium(cid) == FALSE and getPlayerStorageValue(cid, premStorage) == 1 then
setPlayerStorageValue(cid, premStorage, -1)
elseif isPremium(cid) == FALSE and getPlayerStorageValue(cid, premStorage) == 1 and getPlayerVocation(cid) > 4 then
doPlayerSetVocation(cid, getPlayerVocation(cid) -4)
end
return TRUE
end
On my ots when player dead on 100 lvl he is dowgnraded to 1 lvl.Hof fix it?
This is my file login.lua
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 2)
end
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "PlayerDeath")
registerCreatureEvent(cid, "Pacccheck")
return TRUE
end
function onLogin(cid)
local premStorage = 5598
if isPremium(cid) == TRUE and getPlayerStorageValue(cid, premStorage) == -1 then
setPlayerStorageValue(cid, premStorage, 1)
elseif isPremium(cid) == FALSE and getPlayerStorageValue(cid, premStorage) == 1 then
setPlayerStorageValue(cid, premStorage, -1)
elseif isPremium(cid) == FALSE and getPlayerStorageValue(cid, premStorage) == 1 and getPlayerVocation(cid) > 4 then
doPlayerSetVocation(cid, getPlayerVocation(cid) -4)
end
return TRUE
end