Ir para conteúdo
  • Cadastre-se
  • 0

erro no eclipse ANNOUNCE PVP/PK


SCRASH0

Pergunta

ALGUÉM PODERIA ME AJUDAR ESTOU COM UM ERRO NO CODIGO ANNOUNCE PVP/PK
O ERRO OCORRE SOMENTE NESSA PARTE. O RESTO DA CERTO. NÃO SEI O QUE FAZER,
REV L2JLISVUS, O CODIGO FUNCIONA SEM ESSE TARGET POREM N MOSTRA O NOME DO PLAYER QUE FOI MORTO.
SOMENTE DE QUEM O MATO. PARA MOSTRAR O NOME PRECISO DESSA PARTE CORRETA.

spacer.png

Link para o comentário
Compartilhar em outros sites

5 respostass a esta questão

Posts recomendados


  • 0
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java;

===================================================================

---java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java    (revision 0)

+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java    (working copy)


                setPvpKills(getPvpKills() + 1);

+                if (Config.ANNOUNCE_PVP_KILL)
+                     Broadcast.toAllOnlinePlayers(SystemMessage.sendString("Player " +getName()+ " Derrotou Player " + target.getName()));


                setPkKills(getPkKills() + 1);

+            if (Config.ANNOUNCE_PK_KILL)
+                  Broadcast.toAllOnlinePlayers(SystemMessage.sendString("Player " +getName()+ " Assassinou Player " + target.getName()));


Index: java/net/sf/l2j/Config.java

===================================================================

---java/net/sf/l2j/Config.java (revision 0)

+++ java/net/sf/l2j/Config.java (working copy)


          public static int BUFFS_MAX_AMOUNT;

+        public static boolean ANNOUNCE_PVP_KILL;
+        public static boolean ANNOUNCE_PK_KILL;

          STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);

+         ANNOUNCE_PVP_KILL = players.getProperty("AnnouncePvPKill", false);
+         ANNOUNCE_PK_KILL = players.getProperty("AnnouncePkKill", false);


Index: config/players.properties

===================================================================

--- config/players.properties    (revision 1)

+++ config/players.properties    (working copy)

StoreSkillCooltime = True
+
+#=============================================================
+#                    Announce PvP and Pk
+#=============================================================
+# Announce PvP Kill
+AnnouncePvPKill = True

+# Announce Pk Kills
+AnnouncePkKill = True

Link para o comentário
Compartilhar em outros sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...
  • Registre-se

    Faça parte da maior e  mais antigas comunidades sobre Lineage2 da América Latina.





×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.