Ir para conteúdo

[CREATUREEVENT] Mensagem no Default quando um player for morto por outro

Featured Replies

Postado

ajeite ae,se for possivel ajeita essa daqui  \/ pra aparecer no default ,ela ta aparecendo no server log

 

 

function onKill(cid, target, lastHit)
 
if not isPlayer(target) or not isPlayer(cid) then
    return true
end
 
doBroadcastMessage(str:format""..getCreatureName(target).."["..getPlayerLevel(target).."] acabou de morrer para o jogador "..getCreatureName(cid).."["..getPlayerLevel(cid).."].")
    return true
end
  • 1 month later...
  • Respostas 12
  • Visualizações 6k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • eunaosei123
    eunaosei123

    Use esse aqui    

  • ajeite ae,se for possivel ajeita essa daqui  \/ pra aparecer no default ,ela ta aparecendo no server log     function onKill(cid, target, lastHit)   if not isPlayer(target) or not isPlayer(cid) the

  • 1 month later...
Postado

Botei tudo só nao entendi esse bang onde eu boto ?

MESSAGE_FIRST = 18
MESSAGE_STATUS_CONSOLE_RED = MESSAGE_FIRST
MESSAGE_EVENT_ORANGE
= 19
MESSAGE_STATUS_CONSOLE_ORANGE = 20
MESSAGE_STATUS_WARNING = 21
MESSAGE_EVENT_ADVANCE = 22
MESSAGE_EVENT_DEFAULT = 23
MESSAGE_STATUS_DEFAULT = 24
MESSAGE_INFO_DESCR = 25
MESSAGE_STATUS_SMALL = 26
MESSAGE_STATUS_CONSOLE_BLUE = 27
MESSAGE_LAST = MESSAGE_STATUS_CONSOLE_BLUE

Postado

function onKill(cid, target, lastHit)

doBroadcastMessage = "O player %s acaba de ser morto no nível %d por %s"

if isPlayer(cid) and isPlayer(target) then
doBroadcastMessage(str:format(getCreatureName(target), getPlayerLevel(target), getCreatureName(cid)), 27)
end

return true
end

 

Tenta esse e ver se vai dar

Atenciosamente, Anuudek.

                                                               banner.gif

Postado

Use esse aqui

 

 

 

function onKill(cid, target, lastHit)

 
if not isPlayer(target) or not isPlayer(cid) then
    return true
end
 
doBroadcastMessage(""..getCreatureName(cid).."["..getPlayerLevel(cid).."] acabou de Matar o jogador "..getCreatureName(target).."["..getPlayerLevel(target).."].", 18)
    return true
end

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo