<?xml version="1.0" encoding="UTF-8"?>
<mod name="viploss" author="C" enabled="yes">
<event type="login" name="viploss" event="script">
<![CDATA[
function onLogin(cid)
if getPlayerVipDays(cid) > 0 then
local f = getConfigValue('deathLostPercent') * 5
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, f)
doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, f)
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, f)
end
return true
end
]]>
</event>
</mod>
local rates = {
PLAYERLOSS_EXPERIENCE,
PLAYERLOSS_CONTAINERS,
PLAYERLOSS_ITEMS
}
function onLogin(cid)
for i = 1, #rates do
if getPlayerVipDays(cid) >= 1 then
doPlayerSetRate(cid, i, getConfigValue('deathLostPercent') * 5)
else
doPlayerSetRate(cid, i, getConfigValue('deathLostPercent') * 10)
end
break
end
return true
end