Noticias:

Debes de estar registrado para poder ver el contenido indicado. Registrate o Conectate

Menú Principal

Anti Change Weapons In PvP

Iniciado por Swarlog, Ago 31, 2022, 08:32 PM

Tema anterior - Siguiente tema

Swarlog

===============================================
Config.java
===============================================
        public static boolean WELCOME_HTM;
+     public static boolean  ALLOW_RESTRICT_ITEM;

            /** Welcome Htm **/
            WELCOME_HTM = Boolean.parseBoolean(L2JFrozenSettings.getProperty("WelcomeHtm", "False"));
+                      ALLOW_RESTRICT_ITEM = Boolean.parseBoolean(L2JFrozenSettings.getProperty("AllowRestrictItem" , "False"));
                 

===============================================
gameserver\network\clientpackets\UseItem.java
===============================================
       
        if (item.isEquipable())
        {

 +           // No unequipping/equipping Weapons while the player is in pvp
 +           // Created By Dagger All Right Reserved
 + if(Config.ALLOW_RESTRICT_ITEM)
 +           if (activeChar.isInDuel() || activeChar.getPvpFlag() > 0 || activeChar.isProcessingTransaction())
 +           {
 +            activeChar.sendMessage("No es posible desequiparse items en PvP, duelo o en proceso de trade.");
 +            return;
 +           }
 +           // Created By Dagger All Right Reserved

By Dagger