• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Get oldlevel and newlevel like onAdvance with onDeath?

Hm.. you can just storage oldLevel and newlevel

Lua:
function onAdvance(cid, skill, oldlevel, newlevel)
if (skill == SKILL__LEVEL) then
setPlayerStorageValue(cid, 1000, oldLevel)
setPlayerStorageValue(cid, 1001, newLevel)
end
return true
end
 
tfs 0.4
Code:
onDeath(cid, corpse, deathList)
tfs 1.3
Code:
onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)
 
Last edited:
Back
Top