Aqui está funcionando ! Coloquei algumas coisas , que ele esqueceu de botar no post!
KillKD.lua
function onKill(cid, target)
if(isMonster(target)) then
updateK(cid)
updateD(target)
end
return true
end
showKD.lua
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and "\nShe" or "\nHe") .. " killed[" .. getK(thing.uid) .. " and death[" .. getD(thing.uid) .. "]/nKD is[" .. getKD(thing.uid) .. "].")
return true
end
if thing.uid == cid then
doPlayerSetSpecialDescription(thing.uid, "You have killed[" .. getK(thing.uid) .. " and death[" .. getD(thing.uid) .. "] your KD is [" .. getKD(thing.uid) .. "].")
return true
end
return true
end
Agora em Login.lua
Coloque:
registerCreatureEvent(cid, "killKD")
registerCreatureEvent(cid, "showKD")
Fiz isso , dai funfo de boa ! Tem alguns errinhos na script , como /n sem espaços, mas é fácil de arrumar,
Ahh , Desculpa por Reviver o post, Não consegui achar outro com este mesmo conteúdo!