Você não é registrado, por favor registre-se para ter acesso ao conteúdo completo.
Caso seja registrado, efetue login.
Esqueceu sua senha? Clique aqui
Recomendamos o uso do Mozilla Firefox para uma melhor visualização.    


Início Postados Hoje Marcar Fóruns Como Lidos Álbums Banidos SE Team Medalhas
Voltar   Secret Experience > Área L2J > [L2J] Dúvidas
Registrar Loteria VIPStaff SERegras do fórum Comunidade Arcade Postados Hoje Pesquisar Experience
   

Secret Experience.NET   Secret Experience Corporation - Welcome To The Real World
     Anúncios SE

 
 
Ferramentas do Tópico Modos de Exibição
Prev Post Anterior   Próximo Post Next
Antigo 08-06-2010, 01:01 PM   #1
B1Z4R0
Membro - Karma
 
Avatar de B1Z4R0
 
Registrado em: Sep 2009
Localização: Rio Verde GO
Posts: 383
Agradeceu: 265
Agradecido 274 Vezes em 113 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Sistema
Meu Estado:
Enviar mensagem via Windows Live Messenger para B1Z4R0
Nome Real: Paulo Eduardo Ferreira

Inventório de B1Z4R0

Padrão Announces PVP/PK MOD

estou colocando esse mod Announces pvp/pk na teon podem esta anuncionando em chat GM , oq mudo pra anunciar onde mostra, damages, etc?


Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
--- C:/Documents and Settings/YO/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java   (revision 1156)
+++ C:/Documents and Settings/YO/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java   (working copy)
@@ -35,6 +35,7 @@
 import javolution.util.FastMap;
 import net.sf.l2j.Config;
 import net.sf.l2j.L2DatabaseFactory;
+import net.sf.l2j.gameserver.Announcements;
 import net.sf.l2j.gameserver.GameTimeController;
 import net.sf.l2j.gameserver.GeoData;
 import net.sf.l2j.gameserver.GmListTable;
@@ -4446,6 +4447,9 @@
       )
       {
             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
       {
@@ -4458,6 +4462,10 @@
                     {
                         // 'Both way war' -> 'PvP 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 ( target instanceof L2PcInstance && Config.ANNOUNCE_ALL_KILL ) // Announces a kill
+                           Announcements.getInstance().announceToAll("Player "+this.getName()+" killed Player "+target.getName());
                         return;
                     }
                 }
@@ -4469,13 +4477,19 @@
             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());
    }
 
     /**

B1Z4R0 está offline   Responder com Citação
Links Patrocinados
 


Regras para Posts
Você não pode postar novos tópicos
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar seus posts

Código [IMG] Sim
Código HTML Não

Ir para...


Horários baseados na GMT -3. Agora são 10:53 PM.