in config.lua set the protect level, it should be in the tfs this script?
You need to edit sourcesbump
function onPrepareDeath(cid, deathList)
if(getPlayerLevel(cid) <= getConfigValue(protectionLevel)) then
doPlayerSetLossSkill(cid,false)
doCreatureSetDropLoot(cid, false)
return true
end
Haha i noticed, i just put something quick together so yeah.. xD fixed now :]@Milice:
There is getConfigInfo() function. Use this instead of loading config.lua. Also you are missing function word before onPrepareDeath, you are missing one end and you need to use return true, else character will not die.