function onPrepareDeath(cid, deathList)
if isPlayer(cid) then
if getPlayerLevel(cid) <= 1000 then
return true
end
local exp = getPlayerExperience(cid)
if getPlayerLevel(cid) <= 120000 and getPlayerLevel(cid) > 1000 then
--local lost3 = math.floor(-exp*0.0000001/100)
--doPlayerAddExperience(cid, -lost3)
doPlayerSendTextMessage(cid, 22, "You have lost experience.")
elseif getPlayerBlessing(cid, 1) == false then
--doPlayerAddLevel(cid, 1000, true)
doPlayerSendTextMessage(cid, 22, "You died without bless and lost lvls")
end
doCreatureSetPartyShield(cid,0)
local store = getPlayerStorageValue(cid,47823)
if type(store) == "number" then
setPlayerStorageValue(cid,47823,store+1)
setPlayerStorageValue(cid,23047)
end
if getPlayerStorageValue(cid,59463) == 1 then
setPlayerStorageValue(cid,59463)
setGlobalStorageValue(59955,-1)
end
--[[ if getPlayerLevel(cid) > getGlobalStorageValue(50511) then
local paraStat = getParalyzeStatistics(getPlayerByName(getCreatureName(cid)))
if paraStat then
doPlayerSendTextMessage(getPlayerByName("Hitman"),20,parastat)
for i = 1, #paraStat do
local delay = paraStat[i].timepush-paraStat[i].timepara
if (delay < 190) then
local file = io.open("data/scores/parabotters.txt", "a")
file:write("T: ".. os.date("[%dth] %X") .."N: ".. getCreatureName(cid) .."D: ".. delay .." O: ".. getPlayerNameByGUID(paraStat[i].id) .."\n")
file:close()
end
end
end ]]--
end
return true
end