local isSorc = {1, 5, 9}
local isDruid = {2, 6, 10}
local isPaladin = {3, 7, 11}
local isKnight = {4, 8, 12}
function onPrepareDeath(cid)
if getPlayerVocation(cid) == isSorc then
doCreateItem(corpseid, getPlayerPosition(cid))
return true
end
end
LUA:local isSorc = {1, 5, 9} local isDruid = {2, 6, 10} local isPaladin = {3, 7, 11} local isKnight = {4, 8, 12} function onPrepareDeath(cid) if getPlayerVocation(cid) == isSorc then doCreateItem(corpseid, getPlayerPosition(cid)) return true end end