06-07-2010, 12:46 PM
|
#1 (permalink)
|
|
Membro - Veterano
Registrado em: Dec 2009
Posts: 1,335
Agradecido 803 Vezes em 427 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Rate
Designer:
Meu Estado:
|
Annuncios PVP PK
Queria Tirar Uma Duvida Onde Estao Todos Os
[B]Codigos Abaixo Se eu Alterar Pro ToPlayers
Troca em Todos Qui Estao em Baixo Annunciara no Chat Superior ?
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Citação:
|
Announcements.getInstance().announceToAll(sm);
|
Troco Pelo
Citação:
|
Announcements.getInstance().announceToPlayers(sm);
|
increasePvpKills();
if ( target instanceof L2PcInstance && Config.ANNOUNCE_PVP_KILL ) // Announces a PvP kill
Announcements.getInstance().announceToAll("Player "+this.getName()+" hunted Player "+target.getName());
return;
}
else // Target player doesn't have pvp flag set
{
// check about wars
if (targetPlayer.getClan() != null && getClan() != null)
{
if (getClan().isAtWarWith(targetPlayer.getClanId()))
{
if (targetPlayer.getClan().isAtWarWith(getClanId()))
{
// 'Both way war' -> 'PvP Kill'
increasePvpKills();
if ( target instanceof L2PcInstance && Config.ANNOUNCE_PVP_KILL ) // Announces a PvP kill
Announcements.getInstance().announceToPlayers("Player "+this.getName()+" hunted Player "+target.getName());
else if ( target instanceof L2PcInstance && Config.ANNOUNCE_ALL_KILL ) // Announces a kill
Announcements.getInstance().announceToPlayers("Player "+this.getName()+" killed Player "+target.getName());
return;
}
}
}
// 'No war' or 'One way war' -> 'Normal PK'
if (targetPlayer.getKarma() > 0) // Target player has karma
{
if ( Config.KARMA_AWARD_PK_KILL )
{
increasePvpKills();
if ( target instanceof L2PcInstance && Config.ANNOUNCE_PVP_KILL ) // Announces a PvP kill
Announcements.getInstance().announceToAll("Player "+this.getName()+" hunted Player "+target.getName());
}
}
else if (targetPlayer.getPvpFlag() == 0) // Target player doesn't have karma
{
increasePkKillsAndKarma(targetPlayer.getLevel());
if ( target instanceof L2PcInstance && Config.ANNOUNCE_PK_KILL ) // Announces a Pk kill
Announcements.getInstance().announceToAll("Player "+this.getName()+" has assassinated Player "+target.getName());
}
}
if ( target instanceof L2PcInstance && Config.ANNOUNCE_ALL_KILL ) // Announces a kill
Announcements.getInstance().announceToAll("Player "+this.getName()+" killed Player "+target.getName());
}
|
|
|