Ir para conteúdo

Pergunta

 function onKill(cid, target)
    if isPlayer(target) == TRUE then 
		    if ((isInParty(target) and isInParty(cid)) and (getPlayerParty(cid) == getPlayerParty(target))) and isPlayer(target)then
				    broadcastMessage("**** has killed ".. getCreatureName(target).." (Justified)",MESSAGE_STATUS_WARNING)

   elseif getCreatureSkullType(cid) == 4 or getCreatureSkullType(cid) == 3 and getCreatureSkullType(target) == 0 and isPlayer(target)then
				    broadcastMessage("**** has killed ".. getCreatureName(target).." (UnJustified)",MESSAGE_STATUS_WARNING)

   elseif getCreatureSkullType(target) == 3 or getCreatureSkullType(target) == 4 and isPlayer(target) then
				    broadcastMessage("**** has killed ".. getCreatureName(target).." (Justified)",MESSAGE_STATUS_WARNING)	 

   end

    end
    return TRUE
end

 

 

Eu tenho esse script e ele funciona bem, o problema é este.

Se três jogadores me matar .. três vezes a mensagem.

Se eu matar seis jogadores de seis vezes a mensagem para fora.

 

Eu quero apenas ir uma vez que você ver um para cada jogador.

Editado por Elexonic
Link para o comentário
https://xtibia.com/forum/topic/202184-kills-problem/
Compartilhar em outros sites

6 respostass a esta questão

Posts Recomendados

  • 0

amigo upar topicos eh contra as regras do forum, por favor nao repita isso!

tente trocar esse teu script por esse..

 

  Mostrar conteúdo oculto

 

nao esquece de trocar na tag tb para "death" q nem a aki de baixo \/

<event type="death" name="xxxx" event="script" value="yyyy.lua"/>

 

@Krhiegen

mano da onde tu tiro isso? o.O

Editado por Slicer
Link para o comentário
https://xtibia.com/forum/topic/202184-kills-problem/#findComment-1420938
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...