president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
I have this script from 0.4 TFS, and I'm trying using in TFS 1.0 and didn't work I tryed use the function player:getSkull() == SKULL_NONE but didn't work as well.
I got this problem:
Thanks.
I got this problem:

Code:
function onPrepareDeath(cid, deathList)
if (getCreatureSkullType(cid) == SKULL_NONE) and (player:getLevel() <= 100) then
doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
else
doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 100)
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 30)
end
return true
end
Thanks.