function onKill(cid, target, lastHit)
if(getCreatureName(cid) ~= getCreatureName(target)) then
if(isPlayer(target)) then
doPlayerAddLevel(target, -getPlayerLevel(target))
end
end
return TRUE
end
function onKill(cid, target, lastHit)
if(isPlayer(target)) then
doPlayerAddLevel(target, -(getPlayerLevel(cid) - 8))
end
return TRUE
end
<event type="kill" name="resetLevel" script="resetLevel.lua"/>
registerCreatureEvent(cid, "resetLevel")
function onKill(cid, target, lastHit)
if(isPlayer(target)) then
doPlayerAddLevel(target, -(getPlayerLevel(cid) - 8))
end
return TRUE
end
reset lvl z tym skryptem?
function doPlayerSetLevel(cid, level)
return doPlayerAddExperience(cid, (getExperienceForLevel(level) - getPlayerExperience(cid)))
end