Ir para conteúdo
  • Cadastre-se

Wesley Oliveira

Membro
  • Total de itens

    75
  • Registro em

  • Última visita

Reputação

2 Normal

1 Seguidor

Sobre Wesley Oliveira

  • Rank
    Muito Noob

Últimos Visitantes

646 visualizações
  1. Wesley Oliveira

    Java Anunciamentos

    voce tem que entrar no eclipse pra poder arrumar isso @Czekay eu so adicionei essas correção que estão com +++ --- F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (revision 899) +++ F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (working copy) todos que tiver .announceToAll você substitui por .announceToPlayers + Announcements.getInstance().announceToPlayers("Player " + getName() + " hunted " + target.getName()); - Announcements.getInstance().announceToAll("Player " + getName() + " hunted Player " + target.getName()); + Announcements.getInstance().announceToPlayers("Player " + getName() + " hunted " + target.getName()); =================================================================== --- F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/entity/Announcements.java (revision 899) +++ F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/entity/Announcements.java (working copy) @@ -257,26 +257,29 @@ cs = null; } public void announceToAll(final SystemMessage sm) { for (final L2PcInstance player : L2World.getInstance().getAllPlayers()) { player.sendPacket(sm); } } + + public void announceToPlayers(String message) + { + for (L2PcInstance player : L2World.getInstance().getAllPlayers()) + { + player.sendMessage(message); + } + } + // Method fo handling announcements from admin public void handleAnnounce(String command, int lengthToTrim) { Index: F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java =================================================================== --- F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java (revision 899) +++ F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java (working copy) @@ -2531,7 +2547,6 @@ /** Announce PvP, PK, Kill*/ public static boolean ANNOUNCE_PVP_KILL; public static boolean ANNOUNCE_PK_KILL; - public static boolean ANNOUNCE_ALL_KILL; public static int DUEL_SPAWN_X; public static int DUEL_SPAWN_Y; @@ -2649,8 +2686,7 @@ ALLOW_POTS_IN_PVP = Boolean.parseBoolean(pvpSettings.getProperty("AllowPotsInPvP", "True")); /** Enable Pk Info mod. Displays number of times player has killed other */ ENABLE_PK_INFO = Boolean.valueOf(pvpSettings.getProperty("EnablePkInfo", "false")); - // Get the AnnounceAllKill, AnnouncePvpKill and AnnouncePkKill values - ANNOUNCE_ALL_KILL = Boolean.parseBoolean(pvpSettings.getProperty("AnnounceAllKill", "False")); + // Get the AnnouncePvpKill and AnnouncePkKill values ANNOUNCE_PVP_KILL = Boolean.parseBoolean(pvpSettings.getProperty("AnnouncePvPKill", "False")); ANNOUNCE_PK_KILL = Boolean.parseBoolean(pvpSettings.getProperty("AnnouncePkKill", "False")); @@ -5297,18 +5333,14 @@ { STARTING_AA = Integer.parseInt(pValue); } - else if(pName.equalsIgnoreCase("AnnouncePvPKill") && !ANNOUNCE_ALL_KILL) <<<< essa parte aqui eu apaguei o && !ANNOUNCE_ALL_KILL) + else if(pName.equalsIgnoreCase("AnnouncePvPKill")) <<<<<<< e ficou assim { ANNOUNCE_PVP_KILL = Boolean.valueOf(pValue); } - else if(pName.equalsIgnoreCase("AnnouncePkKill") && !ANNOUNCE_ALL_KILL) <<<< essa parte aqui eu apaguei o && !ANNOUNCE_ALL_KILL) + else if(pName.equalsIgnoreCase("AnnouncePkKill")) <<<<<<< e ficou assim { ANNOUNCE_PK_KILL = Boolean.valueOf(pValue); } - else if(pName.equalsIgnoreCase("AnnounceAllKill") && !ANNOUNCE_PVP_KILL && !ANNOUNCE_PK_KILL) - { - ANNOUNCE_ALL_KILL = Boolean.valueOf(pValue); - } else if(pName.equalsIgnoreCase("DisableWeightPenalty")) { DISABLE_WEIGHT_PENALTY = Boolean.valueOf(pValue);
  2. Wesley Oliveira

    Como aplico essa correção pvp/pk Annouce

    voce tem que entrar no eclipse pra poder arrumar isso @Czekay eu so adicionei essas correção que estão com +++ --- F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (revision 899) +++ F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (working copy) todos que tiver .announceToAll você substitui por .announceToPlayers + Announcements.getInstance().announceToPlayers("Player " + getName() + " hunted " + target.getName()); - Announcements.getInstance().announceToAll("Player " + getName() + " hunted Player " + target.getName()); + Announcements.getInstance().announceToPlayers("Player " + getName() + " hunted " + target.getName()); =================================================================== --- F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/entity/Announcements.java (revision 899) +++ F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/entity/Announcements.java (working copy) @@ -257,26 +257,29 @@ cs = null; } public void announceToAll(final SystemMessage sm) { for (final L2PcInstance player : L2World.getInstance().getAllPlayers()) { player.sendPacket(sm); } } + + public void announceToPlayers(String message) + { + for (L2PcInstance player : L2World.getInstance().getAllPlayers()) + { + player.sendMessage(message); + } + } + // Method fo handling announcements from admin public void handleAnnounce(String command, int lengthToTrim) { Index: F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java =================================================================== --- F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java (revision 899) +++ F:/Workspace/L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java (working copy) @@ -2531,7 +2547,6 @@ /** Announce PvP, PK, Kill*/ public static boolean ANNOUNCE_PVP_KILL; public static boolean ANNOUNCE_PK_KILL; - public static boolean ANNOUNCE_ALL_KILL; public static int DUEL_SPAWN_X; public static int DUEL_SPAWN_Y; @@ -2649,8 +2686,7 @@ ALLOW_POTS_IN_PVP = Boolean.parseBoolean(pvpSettings.getProperty("AllowPotsInPvP", "True")); /** Enable Pk Info mod. Displays number of times player has killed other */ ENABLE_PK_INFO = Boolean.valueOf(pvpSettings.getProperty("EnablePkInfo", "false")); - // Get the AnnounceAllKill, AnnouncePvpKill and AnnouncePkKill values - ANNOUNCE_ALL_KILL = Boolean.parseBoolean(pvpSettings.getProperty("AnnounceAllKill", "False")); + // Get the AnnouncePvpKill and AnnouncePkKill values ANNOUNCE_PVP_KILL = Boolean.parseBoolean(pvpSettings.getProperty("AnnouncePvPKill", "False")); ANNOUNCE_PK_KILL = Boolean.parseBoolean(pvpSettings.getProperty("AnnouncePkKill", "False")); @@ -5297,18 +5333,14 @@ { STARTING_AA = Integer.parseInt(pValue); } - else if(pName.equalsIgnoreCase("AnnouncePvPKill") && !ANNOUNCE_ALL_KILL) <<<< essa parte aqui eu apaguei o && !ANNOUNCE_ALL_KILL) + else if(pName.equalsIgnoreCase("AnnouncePvPKill")) <<<<<<< e ficou assim { ANNOUNCE_PVP_KILL = Boolean.valueOf(pValue); } - else if(pName.equalsIgnoreCase("AnnouncePkKill") && !ANNOUNCE_ALL_KILL) <<<< essa parte aqui eu apaguei o && !ANNOUNCE_ALL_KILL) + else if(pName.equalsIgnoreCase("AnnouncePkKill")) <<<<<<< e ficou assim { ANNOUNCE_PK_KILL = Boolean.valueOf(pValue); } - else if(pName.equalsIgnoreCase("AnnounceAllKill") && !ANNOUNCE_PVP_KILL && !ANNOUNCE_PK_KILL) - { - ANNOUNCE_ALL_KILL = Boolean.valueOf(pValue); - } else if(pName.equalsIgnoreCase("DisableWeightPenalty")) { DISABLE_WEIGHT_PENALTY = Boolean.valueOf(pValue);
  3. Wesley Oliveira

    Como aplico essa correção pvp/pk Annouce

    @Daniel Müller eu consegui arrumar
  4. Wesley Oliveira

    Java Anunciamentos

    consegui mas voce conhece um pouco de java ?
  5. Wesley Oliveira

    Monstro para farmy party

    alguem ai tem um monstro top para farmy Party. procurei no forum mas não achei
  6. Wesley Oliveira

    Java Anunciamentos

    o que acontece, eu to quebrando a cabeça pra arrumar um anuciamente de pvp e pk meu Deus
  7. Wesley Oliveira

    Java Anunciamentos

    galera onde que consigo achar essa mensagem no ja ? https://imgur.com/a/iifWuJp
  8. Wesley Oliveira

    Como aplico essa correção pvp/pk Annouce

    de uma olhadinha https://www.l2jbrasil.com/index.php?/topic/130621-anunciaments-de-pvp-e-pk/&amp;tab=comments#comment-786073
  9. Wesley Oliveira

    Como aplico essa correção pvp/pk Annouce

    eu consegui arrumar no meu L2jFrozen
  10. Wesley Oliveira

    GM ao invés de Anunciaments

    eu coloquei sendMessage("Player " + getName() + " assassinated Player " + target.getName()); e deu certo mas a mensagem so aparece para mim tentei colocar vairas formas mas não da
  11. Wesley Oliveira

    OverEnchat Mesmo Desativado revião 1118

    galera boa noite , meu char test esta tomando over enchant mesmo estando desativado, alguem pode me ajudar # ---------------------- # Soul Crystal - # ---------------------- # Chance do Crystal quebrar. SoulCrystalBreakChance = 0 # Chance de melhorar o crystal SoulCrystalLevelChance = 32 ## Chance to improve Cristal até level maximo. SoulCrystalMaxLevel = 25 #---------------------- # Limite de enchants para olympiads # -1 = Desativado | +15 = Maximo de enchant em itens até +15 AltOlyMaxEnchant = -1 # Chance de ruptura com o uso de Blessed Scroll BreakEnchant = 15 # Limite de enchant para GMs. 0 = Sem limite GMOverEnchant = 50 # IMPORTANTE: anti Over Enchant system # COMO FUNCIONA: se você configurá-lo para 20, eo jogador tem um item> 20 # ele vai ser expulso e o item vai desaparecer! # Encantar quantia pela qual um jogador é punido. (0 disabled) EnchantKick = 0
  12. Wesley Oliveira

    GM ao invés de Anunciaments

    Obrigado pela ajuda mas consegui arrumar , nao foi bem assim que voce colocou mas achei o erro .
  13. Wesley Oliveira

    Meu Char Não ataca L2jFrozen 1132

    mano troquei minha rev e foda , 1132 bugou mesmo
  14. Wesley Oliveira

    erro start game serve

    ja conseguiu arrumar o erro ?
  15. Wesley Oliveira

    Meu Char Não ataca L2jFrozen 1132

    up
×