Ir para conteúdo

Featured Replies

Postado
  • Autor

não funfo e deu erro :(

  • Respostas 20
  • Visualizações 1.2k
  • Created
  • Última resposta

Top Posters In This Topic

Postado

function onStatsChange(cid, target, combat, value)


if getCreatureTarget(cid) and isPlayer(target) and math.abs(value) >= getCreatureHealth(target) and getTileInfo(getCreaturePosition(target)).pvp then
doSendTextMessage(cid, MESSAGE_EXPERIENCE, "Your ".. getCreatureSummons(cid) .." deals ".. math.abs(value) .." damage to ".. getCreatureName(target) ..".")
end
return true
end


 

 

  • 2 weeks later...
Postado
  • Autor

function onStatsChange(cid, target, combat, value)

if getCreatureTarget(cid) and isPlayer(target) and math.abs(value) >= getCreatureHealth(target) and getTileInfo(getCreaturePosition(target)).pvp then

doSendTextMessage(cid, MESSAGE_EXPERIENCE, "Your ".. getCreatureSummons(cid) .." deals ".. math.abs(value) .." damage to ".. getCreatureName(target) ..".")

end

return true

end

quando ataco o player acontece isso

 

14:07 You advanced in fist fighting [1].
14:07 You advanced in fist fighting [2].
14:07 You advanced in fist fighting [3].
14:07 You advanced in fist fighting [4].
14:07 You advanced in fist fighting [5].
14:07 You advanced in fist fighting [6].
14:07 You advanced in fist fighting [7].
14:07 You advanced in fist fighting [8].

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.7k

Informação Importante

Confirmação de Termo