Autor Tema: ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's  (Leído 494 veces)

0 Usuarios y 2 Visitantes están viendo este tema.

Conectado nanndo007

  • No Grade
  • *
  • Topic Author
  • Mensajes: 10
  • Agradecimientos: 2
  • Revision: Lovely
  • S.O: 8
  • Serverpack : L2J
ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
« en: Mayo 18, 2018, 12:17:08 pm »
gracias
Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    Tengo 2 bugs por ahora en la REV Frozen e tanbien me sale el mismo en la 1.5 que son el PHX Title lo mismo de lo video lo testei en la frozen 1132 y funciona. y tanbien tengo problema con 1 skill TYPE not registred.
    BUG 1  TITLE PHX LINK VIDEO: 
    &index=2
    ------------------------
    BUG 2 SKILL:
    <!-- Status:Incorrect Pack:l2jfrozen 1132 --!>
    <skill id="4671" levels="1" name="AV - Teleport">
      <set name="magicLvl" val="40"/>
      <set name="operateType" val="OP_ACTIVE"/>
      <set name="target" val="TARGET_ONE"/>
      <set name="skillType" val="BUFF"/>
      <!-- <set name="skillType" val="INSTANT_JUMP"/> -->
      <set name="castRange" val="1500"/>
      <set name="effectRange" val="2000"/>
      <set name="reuseDelay" val="6000"/>
      <for>
        <effect count="1" name="TargetMe" time="0" val="0"/>
      </for>
    </skill>

    OBS: LA SKILL NO ESTA FUNCIONANDO EN TODAS REV FROZEN. MAS EN LA aCis, JLovely y L2 OFF ESTÁ 100% CORRECT. Mas no en la frozen y tanbien en L2JLionna el mismo bug en la misma skill. :/
    LA SKILL 4671 NO ES APENAS EN LA XML ESTA CON BUG TANBIEN EN EL JAVA. LA TYPE NO ESTA REGISTRED EN EL CORE NO SE DONDE PUEDO CAMBIAR ESO.
    NECESSITO DE LAS CORRECIONES ALGUIEN QUE PUEDA ME AYUDAR?  :07:
    « Última modificación: Mayo 18, 2018, 12:26:00 pm por nanndo007 »

    Desconectado Fissban

    • AdminSite
    • *
    • Mensajes: 5431
    • ar
    • Agradecimientos: 1575
      • Mis Proyectos
    • Cronica: : Scions of Destiny
    • Revision: Last
    • S.O: Windows 10
    • Serverpack : L2jAdmins
    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #1 en: Mayo 18, 2018, 08:19:50 pm »
    gracias
    Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    Lo del video es super intersante...me pondre a ver ese tema.

    Desconectado GoldenDarkness

    • Vip
    • *
    • Mensajes: 247
    • ar
    • Agradecimientos: 83
    • Lineage por religión, no por hobbye o moda \^.^/
    • Cronica: : C6/H5
    • Revision: 370,1118,010
    • S.O: Windows 7
    • Serverpack : aCis,Frozen,Master
    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #2 en: Mayo 18, 2018, 10:38:43 pm »
    gracias
    Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    Yo me pregunto como hace fandc para q los paquetes q recibe/envia el phx sean erroneos e ilegibles

    La primera si es sencillo y no sos pesado es gratis :D

    Conectado Dagger

    • Grado S84
    • *
    • Mensajes: 1569
    • ar
    • Agradecimientos: 428
    • Cronica: : Interlude
    • Revision: 374,1132,001
    • S.O: Windows 8
    • Serverpack : Acis,frozen,Ps
    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #3 en: Mayo 19, 2018, 12:15:56 am »
    gracias
    Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    Lo del title pueden verlo todos los players de esa manera o solo quien usa el phx ?

    Desconectado GoldenDarkness

    • Vip
    • *
    • Mensajes: 247
    • ar
    • Agradecimientos: 83
    • Lineage por religión, no por hobbye o moda \^.^/
    • Cronica: : C6/H5
    • Revision: 370,1118,010
    • S.O: Windows 7
    • Serverpack : aCis,Frozen,Master
    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #4 en: Mayo 19, 2018, 12:56:37 am »
    gracias
    Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    Toditos, desde el admin hasta el npc  :19:

    La primera si es sencillo y no sos pesado es gratis :D

    Desconectado Fissban

    • AdminSite
    • *
    • Mensajes: 5431
    • ar
    • Agradecimientos: 1575
      • Mis Proyectos
    • Cronica: : Scions of Destiny
    • Revision: Last
    • S.O: Windows 10
    • Serverpack : L2jAdmins
    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #5 en: Mayo 19, 2018, 04:30:16 am »
    gracias
    Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    Yo me pregunto como hace fandc para q los paquetes q recibe/envia el phx sean erroneos e ilegibles

    programandolos bien

    Desconectado Fissban

    • AdminSite
    • *
    • Mensajes: 5431
    • ar
    • Agradecimientos: 1575
      • Mis Proyectos
    • Cronica: : Scions of Destiny
    • Revision: Last
    • S.O: Windows 10
    • Serverpack : L2jAdmins
    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #6 en: Mayo 19, 2018, 03:33:02 pm »
    gracias
    Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    yo hice esto para c4.


    Código: [Seleccionar]
    Index: dist/game/config/server.properties
    ===================================================================
    --- dist/game/config/server.properties (revision 1060)
    +++ dist/game/config/server.properties (working copy)
    @@ -69,24 +69,6 @@
     # <font color=FFFF00>Default</font> = root
     Password =
     
    -# Define character name template
    -# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*
    -# will allow names with first capital letter, next three small letters,
    -# and any (capital or not) letter or number, like ZbigN1eW
    -# Most rational to have CnameTemplate=[A-Z][a-z]*
    -# meaning names only of letters with first one capital, like Zbigniew
    -# <font color=FFFF00>Default</font> = .* (any namy of any symbols)
    -CnameTemplate = .*
    -
    -# Define character name template
    -# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*
    -# will allow names with first capital letter, next three small letters,
    -# and any (capital or not) letter or number, like ZbigN1eW
    -# Most rational to have CnameTemplate=[A-Z][a-z]*
    -# meaning names only of letters with first one capital, like Zbigniew
    -# <font color=FFFF00>Default</font> = .* (any namy of any symbols)
    -PetNameTemplate = .*
    -
     # Maximum number of chars per account
     # <font color=FFFF00>Default</font> = 7 (0 = unlimited [7 is the client limit])
     CharMaxNumber = 7
    Index: java/net/sf/l2j/Config.java
    ===================================================================
    --- java/net/sf/l2j/Config.java (revision 1060)
    +++ java/net/sf/l2j/Config.java (working copy)
    @@ -420,10 +420,6 @@
      public static String DATABASE_PASSWORD;
      /** Datapack root directory */
      public static File DATAPACK_ROOT = new File(".");
    - /** Character name template */
    - public static String CNAME_TEMPLATE;
    - /** Pet name template */
    - public static String PET_NAME_TEMPLATE;
      /** Maximum number of characters per account */
      public static int MAX_CHARACTERS_NUMBER_PER_ACCOUNT;
      /** Maximum number of players allowed to play simultaneously on server */
    @@ -1211,8 +1207,6 @@
      DATABASE_URL = serverSettings.getProperty("URL", "jdbc:mysql://localhost/l2jdb");
      DATABASE_LOGIN = serverSettings.getProperty("Login", "root");
      DATABASE_PASSWORD = serverSettings.getProperty("Password", "");
    - CNAME_TEMPLATE = serverSettings.getProperty("CnameTemplate", ".*");
    - PET_NAME_TEMPLATE = serverSettings.getProperty("PetNameTemplate", ".*");
      MAX_CHARACTERS_NUMBER_PER_ACCOUNT = Integer.parseInt(serverSettings.getProperty("CharMaxNumber", "7"));
      MAXIMUM_ONLINE_USERS = Integer.parseInt(serverSettings.getProperty("MaximumOnlineUsers", "100"));
      MIN_PROTOCOL_REVISION = Integer.parseInt(serverSettings.getProperty("MinProtocolRevision", "660"));
    Index: java/net/sf/l2j/gameserver/data/PetNameData.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/data/PetNameData.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/data/PetNameData.java (working copy)
    @@ -23,13 +23,8 @@
     import java.sql.ResultSet;
     import java.sql.SQLException;
     import java.util.logging.Logger;
    -import java.util.regex.Matcher;
    -import java.util.regex.Pattern;
    -import java.util.regex.PatternSyntaxException;
     
    -import net.sf.l2j.Config;
     import net.sf.l2j.L2DatabaseFactory;
    -import net.sf.l2j.gameserver.util.Util;
     
     public class PetNameData
     {
    @@ -68,33 +63,6 @@
      return result;
      }
     
    - public boolean isValidPetName(String name)
    - {
    - boolean result = true;
    -
    - if (!Util.isAlphaNumeric(name))
    - {
    - return result;
    - }
    -
    - Pattern pattern;
    - try
    - {
    - pattern = Pattern.compile(Config.PET_NAME_TEMPLATE);
    - }
    - catch (PatternSyntaxException e) // case of illegal pattern
    - {
    - LOG.warning("ERROR : Pet name pattern of config is wrong!");
    - pattern = Pattern.compile(".*");
    - }
    - Matcher regexp = pattern.matcher(name);
    - if (!regexp.matches())
    - {
    - result = false;
    - }
    - return result;
    - }
    -
      public static PetNameData getInstance()
      {
      return SingletonHolder.INSTANCE;
    Index: java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (working copy)
    @@ -19,9 +19,6 @@
     package net.sf.l2j.gameserver.network.clientpackets;
     
     import java.nio.ByteBuffer;
    -import java.util.regex.Matcher;
    -import java.util.regex.Pattern;
    -import java.util.regex.PatternSyntaxException;
     
     import main.EngineModsManager;
     import net.sf.l2j.Config;
    @@ -88,12 +85,8 @@
      @Override
      public void runImpl()
      {
    - if ((name.length() < 1) || (name.length() > 16) || !Util.isAlphaNumeric(name) || !isValidName(name))
    + if ((name.length() < 1) || (name.length() > 16) || !Util.isAlphaNumeric(name) || !Util.isValidNameTitle(name))
      {
    - if (Config.DEBUG)
    - {
    - LOG.fine("charname: " + name + " is invalid. creation failed.");
    - }
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_16_ENG_CHARS));
      return;
      }
    @@ -108,30 +101,17 @@
      {
      if ((CharNameData.getInstance().accountCharNumber(getClient().getLoginName()) >= Config.MAX_CHARACTERS_NUMBER_PER_ACCOUNT) && (Config.MAX_CHARACTERS_NUMBER_PER_ACCOUNT != 0))
      {
    - if (Config.DEBUG)
    - {
    - LOG.fine("Max number of characters reached. Creation failed.");
    - }
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_TOO_MANY_CHARACTERS));
      return;
      }
      else if (CharNameData.getInstance().doesCharNameExist(name))
      {
    - if (Config.DEBUG)
    - {
    - LOG.fine("charname: " + name + " already exists. creation failed.");
    - }
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_NAME_ALREADY_EXISTS));
      return;
      }
     
      template = CharTemplateData.getInstance().getTemplate(classId);
     
    - if (Config.DEBUG)
    - {
    - LOG.fine("charname: " + name + " classId: " + classId + " template: " + template);
    - }
    -
      if ((template == null) || (template.getClassBaseLevel() > 1))
      {
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_CREATION_FAILED));
    @@ -215,37 +195,11 @@
      CharSelectInfo cl = new CharSelectInfo(getClient().getLoginName(), getClient().getSessionId().playOkID1);
      getClient().getConnection().sendPacket(cl);
      getClient().setCharSelection(cl.getCharInfo());
    - if (Config.DEBUG)
    - {
    - LOG.fine("Character init end");
    - }
     
      // send acknowledgement
      sendPacket(CharCreateOk.STATIC_PACKET);
      }
     
    - private boolean isValidName(String text)
    - {
    - boolean result = true;
    - String test = text;
    - Pattern pattern;
    - try
    - {
    - pattern = Pattern.compile(Config.CNAME_TEMPLATE);
    - }
    - catch (PatternSyntaxException e) // case of illegal pattern
    - {
    - LOG.warning("ERROR : Character name pattern of config is wrong!");
    - pattern = Pattern.compile(".*");
    - }
    - Matcher regexp = pattern.matcher(test);
    - if (!regexp.matches())
    - {
    - result = false;
    - }
    - return result;
    - }
    -
      public void startTutorialQuest(L2PcInstance player)
      {
      if (player.getScriptState("Q255_Tutorial") == null)
    Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestChangePetName.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/network/clientpackets/RequestChangePetName.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestChangePetName.java (working copy)
    @@ -26,6 +26,7 @@
     import net.sf.l2j.gameserver.network.AbstractClientBasePacket;
     import net.sf.l2j.gameserver.network.L2GameClient;
     import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;
    +import net.sf.l2j.gameserver.util.Util;
     
     /**
      * This class ...
    @@ -74,7 +75,7 @@
      return;
      }
     
    - if (!PetNameData.getInstance().isValidPetName(name))
    + if (!Util.isValidNameTitle(name))
      {
      activeChar.sendPacket(new SystemMessage(SystemMessage.NAMING_PETNAME_CONTAINS_INVALID_CHARS));
      return;
    Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestGiveNickName.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/network/clientpackets/RequestGiveNickName.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestGiveNickName.java (working copy)
    @@ -26,6 +26,7 @@
     import net.sf.l2j.gameserver.network.AbstractClientBasePacket;
     import net.sf.l2j.gameserver.network.L2GameClient;
     import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;
    +import net.sf.l2j.gameserver.util.Util;
     
     /**
      * This class ...
    @@ -52,17 +53,21 @@
      return;
      }
     
    - if (activeChar.isNoble() && target.matches(activeChar.getName()))// Noblesse can bestow a title to themselves
    + if (!Util.isValidNameTitle(title))
    + {
    + activeChar.sendMessage("Wrong title!");
    + }
    + else if (activeChar.isNoble() && target.matches(activeChar.getName()))// Noblesse can bestow a title to themselves
      {
      activeChar.setTitle(title);
    - activeChar.sendPacket(new SystemMessage(SystemMessage.TITLE_CHANGED));
    + activeChar.sendPacket(SystemMessage.TITLE_CHANGED);
      activeChar.broadcastTitleInfo();
      }
      else if (activeChar.hasClanPrivilege(ClanPrivilegesType.CL_GIVE_TITLE))// Can the player change/give a title?
      {
      if (activeChar.getClan().getLevel() < 3)
      {
    - activeChar.sendPacket(new SystemMessage(SystemMessage.CLAN_LVL_3_NEEDED_TO_ENDOWE_TITLE));
    + activeChar.sendPacket(SystemMessage.CLAN_LVL_3_NEEDED_TO_ENDOWE_TITLE);
      return;
      }
     
    @@ -90,7 +95,7 @@
      }
      else
      {
    - activeChar.sendPacket(new SystemMessage(SystemMessage.YOU_ARE_NOT_AUTHORIZED_TO_DO_THAT));
    + activeChar.sendPacket(SystemMessage.YOU_ARE_NOT_AUTHORIZED_TO_DO_THAT);
      }
      }
     }
    Index: java/net/sf/l2j/gameserver/util/Util.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/util/Util.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/util/Util.java (working copy)
    @@ -28,6 +28,7 @@
     import java.util.List;
     import java.util.Map;
     import java.util.Map.Entry;
    +import java.util.regex.Pattern;
     
     import net.sf.l2j.gameserver.model.L2Object;
     import net.sf.l2j.gameserver.model.actor.L2Character;
    @@ -56,6 +57,17 @@
      return file.toURI().getPath().substring(base.toURI().getPath().length());
      }
     
    + public static boolean isValidNameTitle(String text)
    + {
    + var regexp = Pattern.compile("^[A-Za-z0-9]{3,16}$").matcher(text);
    +
    + if (!regexp.matches())
    + {
    + return false;
    + }
    + return true;
    + }
    +
      /**
      * Return degree value of object 2 to the horizontal line with object 1 being the origin
      * @param obj1

    Conectado nanndo007

    • No Grade
    • *
    • Topic Author
    • Mensajes: 10
    • Agradecimientos: 2
    • Revision: Lovely
    • S.O: 8
    • Serverpack : L2J
    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #7 en: Mayo 20, 2018, 01:07:43 am »
    gracias
    Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    yo hice esto para c4.


    Código: [Seleccionar]
    Index: dist/game/config/server.properties
    ===================================================================
    --- dist/game/config/server.properties (revision 1060)
    +++ dist/game/config/server.properties (working copy)
    @@ -69,24 +69,6 @@
     # <font color=FFFF00>Default</font> = root
     Password =
     
    -# Define character name template
    -# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*
    -# will allow names with first capital letter, next three small letters,
    -# and any (capital or not) letter or number, like ZbigN1eW
    -# Most rational to have CnameTemplate=[A-Z][a-z]*
    -# meaning names only of letters with first one capital, like Zbigniew
    -# <font color=FFFF00>Default</font> = .* (any namy of any symbols)
    -CnameTemplate = .*
    -
    -# Define character name template
    -# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*
    -# will allow names with first capital letter, next three small letters,
    -# and any (capital or not) letter or number, like ZbigN1eW
    -# Most rational to have CnameTemplate=[A-Z][a-z]*
    -# meaning names only of letters with first one capital, like Zbigniew
    -# <font color=FFFF00>Default</font> = .* (any namy of any symbols)
    -PetNameTemplate = .*
    -
     # Maximum number of chars per account
     # <font color=FFFF00>Default</font> = 7 (0 = unlimited [7 is the client limit])
     CharMaxNumber = 7
    Index: java/net/sf/l2j/Config.java
    ===================================================================
    --- java/net/sf/l2j/Config.java (revision 1060)
    +++ java/net/sf/l2j/Config.java (working copy)
    @@ -420,10 +420,6 @@
      public static String DATABASE_PASSWORD;
      /** Datapack root directory */
      public static File DATAPACK_ROOT = new File(".");
    - /** Character name template */
    - public static String CNAME_TEMPLATE;
    - /** Pet name template */
    - public static String PET_NAME_TEMPLATE;
      /** Maximum number of characters per account */
      public static int MAX_CHARACTERS_NUMBER_PER_ACCOUNT;
      /** Maximum number of players allowed to play simultaneously on server */
    @@ -1211,8 +1207,6 @@
      DATABASE_URL = serverSettings.getProperty("URL", "jdbc:mysql://localhost/l2jdb");
      DATABASE_LOGIN = serverSettings.getProperty("Login", "root");
      DATABASE_PASSWORD = serverSettings.getProperty("Password", "");
    - CNAME_TEMPLATE = serverSettings.getProperty("CnameTemplate", ".*");
    - PET_NAME_TEMPLATE = serverSettings.getProperty("PetNameTemplate", ".*");
      MAX_CHARACTERS_NUMBER_PER_ACCOUNT = Integer.parseInt(serverSettings.getProperty("CharMaxNumber", "7"));
      MAXIMUM_ONLINE_USERS = Integer.parseInt(serverSettings.getProperty("MaximumOnlineUsers", "100"));
      MIN_PROTOCOL_REVISION = Integer.parseInt(serverSettings.getProperty("MinProtocolRevision", "660"));
    Index: java/net/sf/l2j/gameserver/data/PetNameData.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/data/PetNameData.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/data/PetNameData.java (working copy)
    @@ -23,13 +23,8 @@
     import java.sql.ResultSet;
     import java.sql.SQLException;
     import java.util.logging.Logger;
    -import java.util.regex.Matcher;
    -import java.util.regex.Pattern;
    -import java.util.regex.PatternSyntaxException;
     
    -import net.sf.l2j.Config;
     import net.sf.l2j.L2DatabaseFactory;
    -import net.sf.l2j.gameserver.util.Util;
     
     public class PetNameData
     {
    @@ -68,33 +63,6 @@
      return result;
      }
     
    - public boolean isValidPetName(String name)
    - {
    - boolean result = true;
    -
    - if (!Util.isAlphaNumeric(name))
    - {
    - return result;
    - }
    -
    - Pattern pattern;
    - try
    - {
    - pattern = Pattern.compile(Config.PET_NAME_TEMPLATE);
    - }
    - catch (PatternSyntaxException e) // case of illegal pattern
    - {
    - LOG.warning("ERROR : Pet name pattern of config is wrong!");
    - pattern = Pattern.compile(".*");
    - }
    - Matcher regexp = pattern.matcher(name);
    - if (!regexp.matches())
    - {
    - result = false;
    - }
    - return result;
    - }
    -
      public static PetNameData getInstance()
      {
      return SingletonHolder.INSTANCE;
    Index: java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (working copy)
    @@ -19,9 +19,6 @@
     package net.sf.l2j.gameserver.network.clientpackets;
     
     import java.nio.ByteBuffer;
    -import java.util.regex.Matcher;
    -import java.util.regex.Pattern;
    -import java.util.regex.PatternSyntaxException;
     
     import main.EngineModsManager;
     import net.sf.l2j.Config;
    @@ -88,12 +85,8 @@
      @Override
      public void runImpl()
      {
    - if ((name.length() < 1) || (name.length() > 16) || !Util.isAlphaNumeric(name) || !isValidName(name))
    + if ((name.length() < 1) || (name.length() > 16) || !Util.isAlphaNumeric(name) || !Util.isValidNameTitle(name))
      {
    - if (Config.DEBUG)
    - {
    - LOG.fine("charname: " + name + " is invalid. creation failed.");
    - }
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_16_ENG_CHARS));
      return;
      }
    @@ -108,30 +101,17 @@
      {
      if ((CharNameData.getInstance().accountCharNumber(getClient().getLoginName()) >= Config.MAX_CHARACTERS_NUMBER_PER_ACCOUNT) && (Config.MAX_CHARACTERS_NUMBER_PER_ACCOUNT != 0))
      {
    - if (Config.DEBUG)
    - {
    - LOG.fine("Max number of characters reached. Creation failed.");
    - }
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_TOO_MANY_CHARACTERS));
      return;
      }
      else if (CharNameData.getInstance().doesCharNameExist(name))
      {
    - if (Config.DEBUG)
    - {
    - LOG.fine("charname: " + name + " already exists. creation failed.");
    - }
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_NAME_ALREADY_EXISTS));
      return;
      }
     
      template = CharTemplateData.getInstance().getTemplate(classId);
     
    - if (Config.DEBUG)
    - {
    - LOG.fine("charname: " + name + " classId: " + classId + " template: " + template);
    - }
    -
      if ((template == null) || (template.getClassBaseLevel() > 1))
      {
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_CREATION_FAILED));
    @@ -215,37 +195,11 @@
      CharSelectInfo cl = new CharSelectInfo(getClient().getLoginName(), getClient().getSessionId().playOkID1);
      getClient().getConnection().sendPacket(cl);
      getClient().setCharSelection(cl.getCharInfo());
    - if (Config.DEBUG)
    - {
    - LOG.fine("Character init end");
    - }
     
      // send acknowledgement
      sendPacket(CharCreateOk.STATIC_PACKET);
      }
     
    - private boolean isValidName(String text)
    - {
    - boolean result = true;
    - String test = text;
    - Pattern pattern;
    - try
    - {
    - pattern = Pattern.compile(Config.CNAME_TEMPLATE);
    - }
    - catch (PatternSyntaxException e) // case of illegal pattern
    - {
    - LOG.warning("ERROR : Character name pattern of config is wrong!");
    - pattern = Pattern.compile(".*");
    - }
    - Matcher regexp = pattern.matcher(test);
    - if (!regexp.matches())
    - {
    - result = false;
    - }
    - return result;
    - }
    -
      public void startTutorialQuest(L2PcInstance player)
      {
      if (player.getScriptState("Q255_Tutorial") == null)
    Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestChangePetName.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/network/clientpackets/RequestChangePetName.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestChangePetName.java (working copy)
    @@ -26,6 +26,7 @@
     import net.sf.l2j.gameserver.network.AbstractClientBasePacket;
     import net.sf.l2j.gameserver.network.L2GameClient;
     import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;
    +import net.sf.l2j.gameserver.util.Util;
     
     /**
      * This class ...
    @@ -74,7 +75,7 @@
      return;
      }
     
    - if (!PetNameData.getInstance().isValidPetName(name))
    + if (!Util.isValidNameTitle(name))
      {
      activeChar.sendPacket(new SystemMessage(SystemMessage.NAMING_PETNAME_CONTAINS_INVALID_CHARS));
      return;
    Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestGiveNickName.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/network/clientpackets/RequestGiveNickName.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestGiveNickName.java (working copy)
    @@ -26,6 +26,7 @@
     import net.sf.l2j.gameserver.network.AbstractClientBasePacket;
     import net.sf.l2j.gameserver.network.L2GameClient;
     import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;
    +import net.sf.l2j.gameserver.util.Util;
     
     /**
      * This class ...
    @@ -52,17 +53,21 @@
      return;
      }
     
    - if (activeChar.isNoble() && target.matches(activeChar.getName()))// Noblesse can bestow a title to themselves
    + if (!Util.isValidNameTitle(title))
    + {
    + activeChar.sendMessage("Wrong title!");
    + }
    + else if (activeChar.isNoble() && target.matches(activeChar.getName()))// Noblesse can bestow a title to themselves
      {
      activeChar.setTitle(title);
    - activeChar.sendPacket(new SystemMessage(SystemMessage.TITLE_CHANGED));
    + activeChar.sendPacket(SystemMessage.TITLE_CHANGED);
      activeChar.broadcastTitleInfo();
      }
      else if (activeChar.hasClanPrivilege(ClanPrivilegesType.CL_GIVE_TITLE))// Can the player change/give a title?
      {
      if (activeChar.getClan().getLevel() < 3)
      {
    - activeChar.sendPacket(new SystemMessage(SystemMessage.CLAN_LVL_3_NEEDED_TO_ENDOWE_TITLE));
    + activeChar.sendPacket(SystemMessage.CLAN_LVL_3_NEEDED_TO_ENDOWE_TITLE);
      return;
      }
     
    @@ -90,7 +95,7 @@
      }
      else
      {
    - activeChar.sendPacket(new SystemMessage(SystemMessage.YOU_ARE_NOT_AUTHORIZED_TO_DO_THAT));
    + activeChar.sendPacket(SystemMessage.YOU_ARE_NOT_AUTHORIZED_TO_DO_THAT);
      }
      }
     }
    Index: java/net/sf/l2j/gameserver/util/Util.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/util/Util.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/util/Util.java (working copy)
    @@ -28,6 +28,7 @@
     import java.util.List;
     import java.util.Map;
     import java.util.Map.Entry;
    +import java.util.regex.Pattern;
     
     import net.sf.l2j.gameserver.model.L2Object;
     import net.sf.l2j.gameserver.model.actor.L2Character;
    @@ -56,6 +57,17 @@
      return file.toURI().getPath().substring(base.toURI().getPath().length());
      }
     
    + public static boolean isValidNameTitle(String text)
    + {
    + var regexp = Pattern.compile("^[A-Za-z0-9]{3,16}$").matcher(text);
    +
    + if (!regexp.matches())
    + {
    + return false;
    + }
    + return true;
    + }
    +
      /**
      * Return degree value of object 2 to the horizontal line with object 1 being the origin
      * @param obj1

    este código es la corrección para el PHX TITTLE C4?

     
    #RESP PARA  Dagger / SI LO TITLE TODAS PERSONAS Y EL CHAR QUE BUGEO PUEDE VER EL TITLE BUGEADO ASI SABIENO QUE EL SERVER PUEDE TENER PHX
    « Última modificación: Mayo 20, 2018, 01:56:35 am por nanndo007 »

    Conectado nanndo007

    • No Grade
    • *
    • Topic Author
    • Mensajes: 10
    • Agradecimientos: 2
    • Revision: Lovely
    • S.O: 8
    • Serverpack : L2J
    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #8 en: Mayo 20, 2018, 01:12:33 am »
    gracias
    Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    OTRA COSA. LA SKILL ES DE 1 MOOB DE MONASTERY 4671 LO guarda pequeno de monas Monastery Guardian.

    Desconectado Fissban

    • AdminSite
    • *
    • Mensajes: 5431
    • ar
    • Agradecimientos: 1575
      • Mis Proyectos
    • Cronica: : Scions of Destiny
    • Revision: Last
    • S.O: Windows 10
    • Serverpack : L2jAdmins
    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #9 en: Mayo 20, 2018, 01:36:34 am »
    gracias
    Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    yo hice esto para c4.


    Código: [Seleccionar]
    Index: dist/game/config/server.properties
    ===================================================================
    --- dist/game/config/server.properties (revision 1060)
    +++ dist/game/config/server.properties (working copy)
    @@ -69,24 +69,6 @@
     # <font color=FFFF00>Default</font> = root
     Password =
     
    -# Define character name template
    -# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*
    -# will allow names with first capital letter, next three small letters,
    -# and any (capital or not) letter or number, like ZbigN1eW
    -# Most rational to have CnameTemplate=[A-Z][a-z]*
    -# meaning names only of letters with first one capital, like Zbigniew
    -# <font color=FFFF00>Default</font> = .* (any namy of any symbols)
    -CnameTemplate = .*
    -
    -# Define character name template
    -# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*
    -# will allow names with first capital letter, next three small letters,
    -# and any (capital or not) letter or number, like ZbigN1eW
    -# Most rational to have CnameTemplate=[A-Z][a-z]*
    -# meaning names only of letters with first one capital, like Zbigniew
    -# <font color=FFFF00>Default</font> = .* (any namy of any symbols)
    -PetNameTemplate = .*
    -
     # Maximum number of chars per account
     # <font color=FFFF00>Default</font> = 7 (0 = unlimited [7 is the client limit])
     CharMaxNumber = 7
    Index: java/net/sf/l2j/Config.java
    ===================================================================
    --- java/net/sf/l2j/Config.java (revision 1060)
    +++ java/net/sf/l2j/Config.java (working copy)
    @@ -420,10 +420,6 @@
      public static String DATABASE_PASSWORD;
      /** Datapack root directory */
      public static File DATAPACK_ROOT = new File(".");
    - /** Character name template */
    - public static String CNAME_TEMPLATE;
    - /** Pet name template */
    - public static String PET_NAME_TEMPLATE;
      /** Maximum number of characters per account */
      public static int MAX_CHARACTERS_NUMBER_PER_ACCOUNT;
      /** Maximum number of players allowed to play simultaneously on server */
    @@ -1211,8 +1207,6 @@
      DATABASE_URL = serverSettings.getProperty("URL", "jdbc:mysql://localhost/l2jdb");
      DATABASE_LOGIN = serverSettings.getProperty("Login", "root");
      DATABASE_PASSWORD = serverSettings.getProperty("Password", "");
    - CNAME_TEMPLATE = serverSettings.getProperty("CnameTemplate", ".*");
    - PET_NAME_TEMPLATE = serverSettings.getProperty("PetNameTemplate", ".*");
      MAX_CHARACTERS_NUMBER_PER_ACCOUNT = Integer.parseInt(serverSettings.getProperty("CharMaxNumber", "7"));
      MAXIMUM_ONLINE_USERS = Integer.parseInt(serverSettings.getProperty("MaximumOnlineUsers", "100"));
      MIN_PROTOCOL_REVISION = Integer.parseInt(serverSettings.getProperty("MinProtocolRevision", "660"));
    Index: java/net/sf/l2j/gameserver/data/PetNameData.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/data/PetNameData.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/data/PetNameData.java (working copy)
    @@ -23,13 +23,8 @@
     import java.sql.ResultSet;
     import java.sql.SQLException;
     import java.util.logging.Logger;
    -import java.util.regex.Matcher;
    -import java.util.regex.Pattern;
    -import java.util.regex.PatternSyntaxException;
     
    -import net.sf.l2j.Config;
     import net.sf.l2j.L2DatabaseFactory;
    -import net.sf.l2j.gameserver.util.Util;
     
     public class PetNameData
     {
    @@ -68,33 +63,6 @@
      return result;
      }
     
    - public boolean isValidPetName(String name)
    - {
    - boolean result = true;
    -
    - if (!Util.isAlphaNumeric(name))
    - {
    - return result;
    - }
    -
    - Pattern pattern;
    - try
    - {
    - pattern = Pattern.compile(Config.PET_NAME_TEMPLATE);
    - }
    - catch (PatternSyntaxException e) // case of illegal pattern
    - {
    - LOG.warning("ERROR : Pet name pattern of config is wrong!");
    - pattern = Pattern.compile(".*");
    - }
    - Matcher regexp = pattern.matcher(name);
    - if (!regexp.matches())
    - {
    - result = false;
    - }
    - return result;
    - }
    -
      public static PetNameData getInstance()
      {
      return SingletonHolder.INSTANCE;
    Index: java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (working copy)
    @@ -19,9 +19,6 @@
     package net.sf.l2j.gameserver.network.clientpackets;
     
     import java.nio.ByteBuffer;
    -import java.util.regex.Matcher;
    -import java.util.regex.Pattern;
    -import java.util.regex.PatternSyntaxException;
     
     import main.EngineModsManager;
     import net.sf.l2j.Config;
    @@ -88,12 +85,8 @@
      @Override
      public void runImpl()
      {
    - if ((name.length() < 1) || (name.length() > 16) || !Util.isAlphaNumeric(name) || !isValidName(name))
    + if ((name.length() < 1) || (name.length() > 16) || !Util.isAlphaNumeric(name) || !Util.isValidNameTitle(name))
      {
    - if (Config.DEBUG)
    - {
    - LOG.fine("charname: " + name + " is invalid. creation failed.");
    - }
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_16_ENG_CHARS));
      return;
      }
    @@ -108,30 +101,17 @@
      {
      if ((CharNameData.getInstance().accountCharNumber(getClient().getLoginName()) >= Config.MAX_CHARACTERS_NUMBER_PER_ACCOUNT) && (Config.MAX_CHARACTERS_NUMBER_PER_ACCOUNT != 0))
      {
    - if (Config.DEBUG)
    - {
    - LOG.fine("Max number of characters reached. Creation failed.");
    - }
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_TOO_MANY_CHARACTERS));
      return;
      }
      else if (CharNameData.getInstance().doesCharNameExist(name))
      {
    - if (Config.DEBUG)
    - {
    - LOG.fine("charname: " + name + " already exists. creation failed.");
    - }
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_NAME_ALREADY_EXISTS));
      return;
      }
     
      template = CharTemplateData.getInstance().getTemplate(classId);
     
    - if (Config.DEBUG)
    - {
    - LOG.fine("charname: " + name + " classId: " + classId + " template: " + template);
    - }
    -
      if ((template == null) || (template.getClassBaseLevel() > 1))
      {
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_CREATION_FAILED));
    @@ -215,37 +195,11 @@
      CharSelectInfo cl = new CharSelectInfo(getClient().getLoginName(), getClient().getSessionId().playOkID1);
      getClient().getConnection().sendPacket(cl);
      getClient().setCharSelection(cl.getCharInfo());
    - if (Config.DEBUG)
    - {
    - LOG.fine("Character init end");
    - }
     
      // send acknowledgement
      sendPacket(CharCreateOk.STATIC_PACKET);
      }
     
    - private boolean isValidName(String text)
    - {
    - boolean result = true;
    - String test = text;
    - Pattern pattern;
    - try
    - {
    - pattern = Pattern.compile(Config.CNAME_TEMPLATE);
    - }
    - catch (PatternSyntaxException e) // case of illegal pattern
    - {
    - LOG.warning("ERROR : Character name pattern of config is wrong!");
    - pattern = Pattern.compile(".*");
    - }
    - Matcher regexp = pattern.matcher(test);
    - if (!regexp.matches())
    - {
    - result = false;
    - }
    - return result;
    - }
    -
      public void startTutorialQuest(L2PcInstance player)
      {
      if (player.getScriptState("Q255_Tutorial") == null)
    Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestChangePetName.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/network/clientpackets/RequestChangePetName.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestChangePetName.java (working copy)
    @@ -26,6 +26,7 @@
     import net.sf.l2j.gameserver.network.AbstractClientBasePacket;
     import net.sf.l2j.gameserver.network.L2GameClient;
     import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;
    +import net.sf.l2j.gameserver.util.Util;
     
     /**
      * This class ...
    @@ -74,7 +75,7 @@
      return;
      }
     
    - if (!PetNameData.getInstance().isValidPetName(name))
    + if (!Util.isValidNameTitle(name))
      {
      activeChar.sendPacket(new SystemMessage(SystemMessage.NAMING_PETNAME_CONTAINS_INVALID_CHARS));
      return;
    Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestGiveNickName.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/network/clientpackets/RequestGiveNickName.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestGiveNickName.java (working copy)
    @@ -26,6 +26,7 @@
     import net.sf.l2j.gameserver.network.AbstractClientBasePacket;
     import net.sf.l2j.gameserver.network.L2GameClient;
     import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;
    +import net.sf.l2j.gameserver.util.Util;
     
     /**
      * This class ...
    @@ -52,17 +53,21 @@
      return;
      }
     
    - if (activeChar.isNoble() && target.matches(activeChar.getName()))// Noblesse can bestow a title to themselves
    + if (!Util.isValidNameTitle(title))
    + {
    + activeChar.sendMessage("Wrong title!");
    + }
    + else if (activeChar.isNoble() && target.matches(activeChar.getName()))// Noblesse can bestow a title to themselves
      {
      activeChar.setTitle(title);
    - activeChar.sendPacket(new SystemMessage(SystemMessage.TITLE_CHANGED));
    + activeChar.sendPacket(SystemMessage.TITLE_CHANGED);
      activeChar.broadcastTitleInfo();
      }
      else if (activeChar.hasClanPrivilege(ClanPrivilegesType.CL_GIVE_TITLE))// Can the player change/give a title?
      {
      if (activeChar.getClan().getLevel() < 3)
      {
    - activeChar.sendPacket(new SystemMessage(SystemMessage.CLAN_LVL_3_NEEDED_TO_ENDOWE_TITLE));
    + activeChar.sendPacket(SystemMessage.CLAN_LVL_3_NEEDED_TO_ENDOWE_TITLE);
      return;
      }
     
    @@ -90,7 +95,7 @@
      }
      else
      {
    - activeChar.sendPacket(new SystemMessage(SystemMessage.YOU_ARE_NOT_AUTHORIZED_TO_DO_THAT));
    + activeChar.sendPacket(SystemMessage.YOU_ARE_NOT_AUTHORIZED_TO_DO_THAT);
      }
      }
     }
    Index: java/net/sf/l2j/gameserver/util/Util.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/util/Util.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/util/Util.java (working copy)
    @@ -28,6 +28,7 @@
     import java.util.List;
     import java.util.Map;
     import java.util.Map.Entry;
    +import java.util.regex.Pattern;
     
     import net.sf.l2j.gameserver.model.L2Object;
     import net.sf.l2j.gameserver.model.actor.L2Character;
    @@ -56,6 +57,17 @@
      return file.toURI().getPath().substring(base.toURI().getPath().length());
      }
     
    + public static boolean isValidNameTitle(String text)
    + {
    + var regexp = Pattern.compile("^[A-Za-z0-9]{3,16}$").matcher(text);
    +
    + if (!regexp.matches())
    + {
    + return false;
    + }
    + return true;
    + }
    +
      /**
      * Return degree value of object 2 to the horizontal line with object 1 being the origin
      * @param obj1

    este código es la corrección para el PHX TITTLE C4?

     
    #RESP PARA DAGGER/ SI LO TITLE TODAS PERSONAS Y EL CHAR QUE BUGEO PUEDE VER EL TITLE BUGEADO ASI SABIENO QUE EL SERVER PUEDE TENER PHX

    Con este arreglo se supone q ya no podran bugear el titulo del personaje pero esto no evitara q usen phx....de echo almenos que pages por proteccion no podras evitar la inyección de paquetes q hace phx

    Conectado nanndo007

    • No Grade
    • *
    • Topic Author
    • Mensajes: 10
    • Agradecimientos: 2
    • Revision: Lovely
    • S.O: 8
    • Serverpack : L2J
    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #10 en: Mayo 20, 2018, 01:43:23 am »
    gracias
    Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    yo hice esto para c4.


    Código: [Seleccionar]
    Index: dist/game/config/server.properties
    ===================================================================
    --- dist/game/config/server.properties (revision 1060)
    +++ dist/game/config/server.properties (working copy)
    @@ -69,24 +69,6 @@
     # <font color=FFFF00>Default</font> = root
     Password =
     
    -# Define character name template
    -# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*
    -# will allow names with first capital letter, next three small letters,
    -# and any (capital or not) letter or number, like ZbigN1eW
    -# Most rational to have CnameTemplate=[A-Z][a-z]*
    -# meaning names only of letters with first one capital, like Zbigniew
    -# <font color=FFFF00>Default</font> = .* (any namy of any symbols)
    -CnameTemplate = .*
    -
    -# Define character name template
    -# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*
    -# will allow names with first capital letter, next three small letters,
    -# and any (capital or not) letter or number, like ZbigN1eW
    -# Most rational to have CnameTemplate=[A-Z][a-z]*
    -# meaning names only of letters with first one capital, like Zbigniew
    -# <font color=FFFF00>Default</font> = .* (any namy of any symbols)
    -PetNameTemplate = .*
    -
     # Maximum number of chars per account
     # <font color=FFFF00>Default</font> = 7 (0 = unlimited [7 is the client limit])
     CharMaxNumber = 7
    Index: java/net/sf/l2j/Config.java
    ===================================================================
    --- java/net/sf/l2j/Config.java (revision 1060)
    +++ java/net/sf/l2j/Config.java (working copy)
    @@ -420,10 +420,6 @@
      public static String DATABASE_PASSWORD;
      /** Datapack root directory */
      public static File DATAPACK_ROOT = new File(".");
    - /** Character name template */
    - public static String CNAME_TEMPLATE;
    - /** Pet name template */
    - public static String PET_NAME_TEMPLATE;
      /** Maximum number of characters per account */
      public static int MAX_CHARACTERS_NUMBER_PER_ACCOUNT;
      /** Maximum number of players allowed to play simultaneously on server */
    @@ -1211,8 +1207,6 @@
      DATABASE_URL = serverSettings.getProperty("URL", "jdbc:mysql://localhost/l2jdb");
      DATABASE_LOGIN = serverSettings.getProperty("Login", "root");
      DATABASE_PASSWORD = serverSettings.getProperty("Password", "");
    - CNAME_TEMPLATE = serverSettings.getProperty("CnameTemplate", ".*");
    - PET_NAME_TEMPLATE = serverSettings.getProperty("PetNameTemplate", ".*");
      MAX_CHARACTERS_NUMBER_PER_ACCOUNT = Integer.parseInt(serverSettings.getProperty("CharMaxNumber", "7"));
      MAXIMUM_ONLINE_USERS = Integer.parseInt(serverSettings.getProperty("MaximumOnlineUsers", "100"));
      MIN_PROTOCOL_REVISION = Integer.parseInt(serverSettings.getProperty("MinProtocolRevision", "660"));
    Index: java/net/sf/l2j/gameserver/data/PetNameData.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/data/PetNameData.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/data/PetNameData.java (working copy)
    @@ -23,13 +23,8 @@
     import java.sql.ResultSet;
     import java.sql.SQLException;
     import java.util.logging.Logger;
    -import java.util.regex.Matcher;
    -import java.util.regex.Pattern;
    -import java.util.regex.PatternSyntaxException;
     
    -import net.sf.l2j.Config;
     import net.sf.l2j.L2DatabaseFactory;
    -import net.sf.l2j.gameserver.util.Util;
     
     public class PetNameData
     {
    @@ -68,33 +63,6 @@
      return result;
      }
     
    - public boolean isValidPetName(String name)
    - {
    - boolean result = true;
    -
    - if (!Util.isAlphaNumeric(name))
    - {
    - return result;
    - }
    -
    - Pattern pattern;
    - try
    - {
    - pattern = Pattern.compile(Config.PET_NAME_TEMPLATE);
    - }
    - catch (PatternSyntaxException e) // case of illegal pattern
    - {
    - LOG.warning("ERROR : Pet name pattern of config is wrong!");
    - pattern = Pattern.compile(".*");
    - }
    - Matcher regexp = pattern.matcher(name);
    - if (!regexp.matches())
    - {
    - result = false;
    - }
    - return result;
    - }
    -
      public static PetNameData getInstance()
      {
      return SingletonHolder.INSTANCE;
    Index: java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (working copy)
    @@ -19,9 +19,6 @@
     package net.sf.l2j.gameserver.network.clientpackets;
     
     import java.nio.ByteBuffer;
    -import java.util.regex.Matcher;
    -import java.util.regex.Pattern;
    -import java.util.regex.PatternSyntaxException;
     
     import main.EngineModsManager;
     import net.sf.l2j.Config;
    @@ -88,12 +85,8 @@
      @Override
      public void runImpl()
      {
    - if ((name.length() < 1) || (name.length() > 16) || !Util.isAlphaNumeric(name) || !isValidName(name))
    + if ((name.length() < 1) || (name.length() > 16) || !Util.isAlphaNumeric(name) || !Util.isValidNameTitle(name))
      {
    - if (Config.DEBUG)
    - {
    - LOG.fine("charname: " + name + " is invalid. creation failed.");
    - }
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_16_ENG_CHARS));
      return;
      }
    @@ -108,30 +101,17 @@
      {
      if ((CharNameData.getInstance().accountCharNumber(getClient().getLoginName()) >= Config.MAX_CHARACTERS_NUMBER_PER_ACCOUNT) && (Config.MAX_CHARACTERS_NUMBER_PER_ACCOUNT != 0))
      {
    - if (Config.DEBUG)
    - {
    - LOG.fine("Max number of characters reached. Creation failed.");
    - }
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_TOO_MANY_CHARACTERS));
      return;
      }
      else if (CharNameData.getInstance().doesCharNameExist(name))
      {
    - if (Config.DEBUG)
    - {
    - LOG.fine("charname: " + name + " already exists. creation failed.");
    - }
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_NAME_ALREADY_EXISTS));
      return;
      }
     
      template = CharTemplateData.getInstance().getTemplate(classId);
     
    - if (Config.DEBUG)
    - {
    - LOG.fine("charname: " + name + " classId: " + classId + " template: " + template);
    - }
    -
      if ((template == null) || (template.getClassBaseLevel() > 1))
      {
      sendPacket(new CharCreateFail(CharCreateFailType.REASON_CREATION_FAILED));
    @@ -215,37 +195,11 @@
      CharSelectInfo cl = new CharSelectInfo(getClient().getLoginName(), getClient().getSessionId().playOkID1);
      getClient().getConnection().sendPacket(cl);
      getClient().setCharSelection(cl.getCharInfo());
    - if (Config.DEBUG)
    - {
    - LOG.fine("Character init end");
    - }
     
      // send acknowledgement
      sendPacket(CharCreateOk.STATIC_PACKET);
      }
     
    - private boolean isValidName(String text)
    - {
    - boolean result = true;
    - String test = text;
    - Pattern pattern;
    - try
    - {
    - pattern = Pattern.compile(Config.CNAME_TEMPLATE);
    - }
    - catch (PatternSyntaxException e) // case of illegal pattern
    - {
    - LOG.warning("ERROR : Character name pattern of config is wrong!");
    - pattern = Pattern.compile(".*");
    - }
    - Matcher regexp = pattern.matcher(test);
    - if (!regexp.matches())
    - {
    - result = false;
    - }
    - return result;
    - }
    -
      public void startTutorialQuest(L2PcInstance player)
      {
      if (player.getScriptState("Q255_Tutorial") == null)
    Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestChangePetName.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/network/clientpackets/RequestChangePetName.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestChangePetName.java (working copy)
    @@ -26,6 +26,7 @@
     import net.sf.l2j.gameserver.network.AbstractClientBasePacket;
     import net.sf.l2j.gameserver.network.L2GameClient;
     import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;
    +import net.sf.l2j.gameserver.util.Util;
     
     /**
      * This class ...
    @@ -74,7 +75,7 @@
      return;
      }
     
    - if (!PetNameData.getInstance().isValidPetName(name))
    + if (!Util.isValidNameTitle(name))
      {
      activeChar.sendPacket(new SystemMessage(SystemMessage.NAMING_PETNAME_CONTAINS_INVALID_CHARS));
      return;
    Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestGiveNickName.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/network/clientpackets/RequestGiveNickName.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestGiveNickName.java (working copy)
    @@ -26,6 +26,7 @@
     import net.sf.l2j.gameserver.network.AbstractClientBasePacket;
     import net.sf.l2j.gameserver.network.L2GameClient;
     import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;
    +import net.sf.l2j.gameserver.util.Util;
     
     /**
      * This class ...
    @@ -52,17 +53,21 @@
      return;
      }
     
    - if (activeChar.isNoble() && target.matches(activeChar.getName()))// Noblesse can bestow a title to themselves
    + if (!Util.isValidNameTitle(title))
    + {
    + activeChar.sendMessage("Wrong title!");
    + }
    + else if (activeChar.isNoble() && target.matches(activeChar.getName()))// Noblesse can bestow a title to themselves
      {
      activeChar.setTitle(title);
    - activeChar.sendPacket(new SystemMessage(SystemMessage.TITLE_CHANGED));
    + activeChar.sendPacket(SystemMessage.TITLE_CHANGED);
      activeChar.broadcastTitleInfo();
      }
      else if (activeChar.hasClanPrivilege(ClanPrivilegesType.CL_GIVE_TITLE))// Can the player change/give a title?
      {
      if (activeChar.getClan().getLevel() < 3)
      {
    - activeChar.sendPacket(new SystemMessage(SystemMessage.CLAN_LVL_3_NEEDED_TO_ENDOWE_TITLE));
    + activeChar.sendPacket(SystemMessage.CLAN_LVL_3_NEEDED_TO_ENDOWE_TITLE);
      return;
      }
     
    @@ -90,7 +95,7 @@
      }
      else
      {
    - activeChar.sendPacket(new SystemMessage(SystemMessage.YOU_ARE_NOT_AUTHORIZED_TO_DO_THAT));
    + activeChar.sendPacket(SystemMessage.YOU_ARE_NOT_AUTHORIZED_TO_DO_THAT);
      }
      }
     }
    Index: java/net/sf/l2j/gameserver/util/Util.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/util/Util.java (revision 1060)
    +++ java/net/sf/l2j/gameserver/util/Util.java (working copy)
    @@ -28,6 +28,7 @@
     import java.util.List;
     import java.util.Map;
     import java.util.Map.Entry;
    +import java.util.regex.Pattern;
     
     import net.sf.l2j.gameserver.model.L2Object;
     import net.sf.l2j.gameserver.model.actor.L2Character;
    @@ -56,6 +57,17 @@
      return file.toURI().getPath().substring(base.toURI().getPath().length());
      }
     
    + public static boolean isValidNameTitle(String text)
    + {
    + var regexp = Pattern.compile("^[A-Za-z0-9]{3,16}$").matcher(text);
    +
    + if (!regexp.matches())
    + {
    + return false;
    + }
    + return true;
    + }
    +
      /**
      * Return degree value of object 2 to the horizontal line with object 1 being the origin
      * @param obj1

    este código es la corrección para el PHX TITTLE C4?

     
    #RESP PARA DAGGER/ SI LO TITLE TODAS PERSONAS Y EL CHAR QUE BUGEO PUEDE VER EL TITLE BUGEADO ASI SABIENO QUE EL SERVER PUEDE TENER PHX

    Con este arreglo se supone q ya no podran bugear el titulo del personaje pero esto no evitara q usen phx....de echo almenos que pages por proteccion no podras evitar la inyección de paquetes q hace phx
    puede adaptarse para FROZEN?  ::) :elf2_2:
    el error de título se ha corregido en la beta v8 de la FROZEN V2. más como és solo para quién paga Money $$$$$, no proporcionan la corrección para los demas :(.
    https://imgur.com/a/nTEaOZS
    « Última modificación: Mayo 20, 2018, 01:52:21 am por nanndo007 »

    Conectado ReynalDev

    • Administrator
    • *
    • Mensajes: 4497
    • mx
    • Agradecimientos: 1559
    • I took a pill in Ibiza
      • ReynalDev
    • Cronica: : Interlude, C4
    • Revision: 1132, FREE,582
    • S.O: Linux CentOS
    • Serverpack : Frozen,aCis,Lisvus
    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #11 en: Mayo 20, 2018, 02:12:17 am »
    gracias
    Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    Comprobaste si ahora en L2jAdmins se puede?
    Hay dos caminos; aprender a hacer lo que quieres o pagar para que alguien más lo haga.
    WTS Servicios de desarrollo
    - Facebook: https://goo.gl/DCzNiG
    - Youtube: https://goo.gl/a7m6tc
    - Messenger: https://goo.gl/QzgEBe

    Desconectado Unstoppable

    • Grado A
    • *
    • Mensajes: 405
    • st
    • Agradecimientos: 120
    • Cronica: : pija
    • Revision: concha atr 360
    • S.O: Windows 10
    • Serverpack : forro no uso
    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #12 en: Mayo 20, 2018, 02:14:10 am »
    gracias
    Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    una pregunta , en acis tambien sucede esto ? , pueden usar el phx ? , hacer dupe items y enchant con el banco como lo hacen en frozen ?

    Conectado nanndo007

    • No Grade
    • *
    • Topic Author
    • Mensajes: 10
    • Agradecimientos: 2
    • Revision: Lovely
    • S.O: 8
    • Serverpack : L2J
    A Homer Simpson le gusta este post.

    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #13 en: Mayo 20, 2018, 02:49:15 am »
    gracias
    Este post tiene 1 agradecimientos
  • Añade a tus favoritos
    una pregunta , en acis tambien sucede esto ? , pueden usar el phx ? , hacer dupe items y enchant con el banco como lo hacen en frozen ?
    SI EN aCis tanbien
    ...
    ¿Sabes por qué quería arreglar este problema de título PHX. ¿Por qué algunas personas saben que ese título de error sólo se puede hacer por PHX. entonces imagina lo que otros van a dicer si  PHX title FUNCIONA van a decir que el servidor es una mierda. el PHX título no influye en nada. sólo en ese caso, de que la gente encuentra mal del servidor por el PHX título funcionar.
    van hablar ASI "SI PHX TITLE ESTA A FUNCIONAR LO QUE MAS EL SERVER DE MIERDA FUNCIONA?
    « Última modificación: Mayo 20, 2018, 02:51:01 am por nanndo007 »

    Desconectado Fissban

    • AdminSite
    • *
    • Mensajes: 5431
    • ar
    • Agradecimientos: 1575
      • Mis Proyectos
    • Cronica: : Scions of Destiny
    • Revision: Last
    • S.O: Windows 10
    • Serverpack : L2jAdmins
    Re:ALL L2JFrozen BUG REPORT TOPIC 1.5 / 1132 / All Frozen's
    « Respuesta #14 en: Mayo 20, 2018, 03:27:44 am »
    gracias
    Este post tiene 0 agradecimientos
  • Añade a tus favoritos
    Comprobaste si ahora en L2jAdmins se puede?

    No pero mañana lo testeo con mi bot...aunque es muy sencillo lo que hice asiq no deberia fallar.
    Basicamente lo q hi e fue solo permitir caracteres y numeros en los titulos.. y claro hice otros ajustes a la par de eso pero ua es cosa de mi pack