Postado Março 10, 2015 10 anos Autor Dava Erro direto 1 atras do outro Erro No Na linha 7 Do Codigo Tive q tirar pq tava tendo war ai os cara n morria :s
Postado Março 10, 2015 10 anos Solução Certo, agora testei e funcionou perfeitamente. function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) then if not isPlayer(lastHitKiller[1]) and not isPlayer(getCreatureMaster(lastHitKiller[1])) then doBroadcastMessage("O jogador "..getCreatureName(cid).." [level: "..getPlayerLevel(cid).."] acaba de morrer para "..getCreatureName(lastHitKiller[1])..".", MESSAGE_STATUS_CONSOLE_ORANGE) end end return true end Registre em creaturescripts.xml a tag abaixo: <event type="preparedeath" name="YouDead" event="script" value="youdead.lua"/> E em login.lua a tag: registerCreatureEvent(cid, "YouDead") Boa sorte. Editado Março 10, 2015 10 anos por Adriano SwaTT (veja o histórico de edições) Gosta do meu trabalho? Curta e siga a página do meu projeto de 2016 e 2017 (Lab Z Games) que trará vários servidores OTServs. Atenciosamente,Adriano Swatt' Para ver meus tutoriais acesse meu perfil.
Postado Março 10, 2015 10 anos Funcionou mas n tem como por no default? function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) then if not isPlayer(lastHitKiller[1]) and not isPlayer(getCreatureMaster(lastHitKiller[1])) then doBroadcastMessage("O jogador "..getCreatureName(cid).." [level: "..getPlayerLevel(cid).."] acaba de morrer para "..getCreatureName(lastHitKiller[1])..".", MESSAGE_STATUS_CONSOLE_ORANGE) else doBroadcastMessage("O jogador "..getCreatureName(cid).." [level: "..getPlayerLevel(cid).."] acaba de morrer para "..getCreatureName(lastHitKiller[1]).." [level: "..getPlayerLevel(lastHitKiller[1]).."].", MESSAGE_STATUS_CONSOLE_ORANGE) end end return true end ➥ Regras | Seções OTServ | Seções BOT
Postado Março 10, 2015 10 anos Autor Meu Ot ja tem o de anunciar Ciclano morreu por fulano teria como tirar? so quero o de bixo msm
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.