Jump to content
  • 0

[HELP]Augment Se [PvP] weapons


Question

Posted

Den 3erw an postarw sto swsto section apla ithela na rwtisw an kapoios apo sas 3erei pws mporw na energopoiisw ta augment se pvp weapon....exw psa3ei pantou alla den mporw na vrw kati......Eyxaristw

 

 

Den eida to sub board panw...Opote postara se lathos section... :(( as to kanei kapoios move...

3 answers to this question

Recommended Posts

  • 0
Posted

### Eclipse Workspace Patch 1.0
#P L2_GameServer
Index: java/com/l2jserver/gameserver/network/clientpackets/AbstractRefinePacket.java
===================================================================
--- java/com/l2jserver/gameserver/network/clientpackets/AbstractRefinePacket.java   (revision 3959)
+++ java/com/l2jserver/gameserver/network/clientpackets/AbstractRefinePacket.java   (working copy)
@@ -241,7 +241,7 @@
          return false;
       if (item.isAugmented())
          return false;
-      if (item.isHeroItem())
+      if (item.isHeroItem() && !Config.ENABLE_HERO_WEAPON_AGUMENT)
          return false;
       if (item.isShadowItem())
          return false;
@@ -253,7 +253,7 @@
          return false;
       if (item.isWear())
          return false;
-      if (item.isPvp())
+      if (item.isPvp() && !Config.ENABLE_PVP_WEAPON_AGUMENT)
          return false;
       if (item.getItem().getCrystalType() < L2Item.CRYSTAL_C)
          return false;
Index: java/com/l2jserver/gameserver/network/clientpackets/RequestConfirmCancelItem.java
===================================================================
--- java/com/l2jserver/gameserver/network/clientpackets/RequestConfirmCancelItem.java   (revision 3959)
+++ java/com/l2jserver/gameserver/network/clientpackets/RequestConfirmCancelItem.java   (working copy)
@@ -66,7 +66,7 @@
          return;
       }

-      if (item.isPvp())
+      if (item.isPvp() && !Config.ENABLE_PVP_WEAPON_AGUMENT && !Config.ENABLE_HERO_WEAPON_AGUMENT)
       {
          activeChar.sendPacket(new SystemMessage(SystemMessageId.THIS_IS_NOT_A_SUITABLE_ITEM));
          return;
Index: java/com/l2jserver/gameserver/network/clientpackets/AbstractEnchantPacket.java
===================================================================
--- java/com/l2jserver/gameserver/network/clientpackets/AbstractEnchantPacket.java   (revision 3959)
+++ java/com/l2jserver/gameserver/network/clientpackets/AbstractEnchantPacket.java   (working copy)
@@ -295,7 +295,7 @@
     */
    protected static final boolean isEnchantable(L2ItemInstance item)
    {
-      if (item.isHeroItem())
+      if (item.isHeroItem() && !Config.ENABLE_HERO_WEAPON_ENCHANT)
          return false;
       if (item.isShadowItem())
          return false;
Index: java/com/l2jserver/Config.java
===================================================================
--- java/com/l2jserver/Config.java   (revision 3959)
+++ java/com/l2jserver/Config.java   (working copy)
@@ -658,6 +658,11 @@
    public static String ANNOUNCE_PK_MSG;
    public static String ANNOUNCE_PVP_MSG;
    public static boolean L2JMOD_CHAT_ADMIN;
+   public static boolean ENABLE_HERO_WEAPON_ENCHANT;
+   public static boolean ENABLE_PVP_WEAPON_ELEMENT;
+   public static boolean ENABLE_HERO_WEAPON_ELEMENT;
+   public static boolean ENABLE_PVP_WEAPON_AGUMENT;
+   public static boolean ENABLE_HERO_WEAPON_AGUMENT;

    //--------------------------------------------------
    // NPC Settings
@@ -1967,7 +1972,7 @@
                L2JMOD_WEDDING_SAMESEX = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingAllowSameSex", "False"));
                L2JMOD_WEDDING_FORMALWEAR = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingFormalWear", "True"));
                L2JMOD_WEDDING_DIVORCE_COSTS = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20"));
-
+               
                L2JMOD_ENABLE_WAREHOUSESORTING_CLAN = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingClan", "False"));
                L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingPrivate", "False"));

@@ -2173,6 +2178,12 @@
                ANNOUNCE_PVP_MSG = L2JModSettings.getProperty("AnnouncePvpMsg", "$killer has defeated $target");
                
                L2JMOD_CHAT_ADMIN = Boolean.parseBoolean(L2JModSettings.getProperty("ChatAdmin", "false"));
+               
+               ENABLE_HERO_WEAPON_ENCHANT = Boolean.parseBoolean(L2JModSettings.getProperty("EnableHeroWeaponEnchant", "False"));
+               ENABLE_PVP_WEAPON_ELEMENT = Boolean.parseBoolean(L2JModSettings.getProperty("EnablePvPWeaponElement", "False"));
+               ENABLE_HERO_WEAPON_ELEMENT = Boolean.parseBoolean(L2JModSettings.getProperty("EnableHeroWeaponElement", "False"));
+               ENABLE_PVP_WEAPON_AGUMENT = Boolean.parseBoolean(L2JModSettings.getProperty("EnablePvPWeaponAgument", "False"));
+               ENABLE_HERO_WEAPON_AGUMENT = Boolean.parseBoolean(L2JModSettings.getProperty("EnableHeroWeaponAgument", "False"));
             }
             catch (Exception e)
             {
Index: java/config/l2jmods.properties
===================================================================
--- java/config/l2jmods.properties   (revision 3959)
+++ java/config/l2jmods.properties   (working copy)
@@ -263,6 +263,35 @@


# ---------------------------------------------------------------------------
+# PvP/Hero Special Options
+# ---------------------------------------------------------------------------
+# Hero Weapons in offical servers can not be enchanted. Whit this option,
+# you can enable the enchant feature for Hero Weapons.
+# Default: False
+EnableHeroWeaponEnchant = False
+
+# PvP Weapons in offical servers can not be Elemental Attributed. Whit this option,
+# you can enable the attribute feature for PvP Weapons.
+# Default: False
+EnablePvPWeaponElement = False
+
+# Hero Weapons in offical servers can not be Elemental Attributed. Whit this option,
+# you can enable the attribute feature for Hero Weapons.
+# Default: False
+EnableHeroWeaponElement = False
+
+# PvP Weapons in offical servers can not be agumented. Whit this option,
+# you can enable the agumentation feature for PvP Weapons.
+# Default: False
+EnablePvPWeaponAgument = False
+
+# Hero Weapons in offical servers can not be agumented. Whit this option,
+# you can enable the agumentation feature for Hero Weapons.
+# Default: False
+EnableHeroWeaponAgument = False
+
+
+# ---------------------------------------------------------------------------
# Display Server Time
# ---------------------------------------------------------------------------
# This option will enable displaying of the local server time for /time command.
Index: java/com/l2jserver/gameserver/network/clientpackets/RequestExEnchantItemAttribute.java
===================================================================
--- java/com/l2jserver/gameserver/network/clientpackets/RequestExEnchantItemAttribute.java   (revision 3959)
+++ java/com/l2jserver/gameserver/network/clientpackets/RequestExEnchantItemAttribute.java   (working copy)
@@ -94,7 +94,7 @@
       }

       //can't enchant rods, shadow items, adventurers', PvP items, hero items, cloaks, bracelets, underwear (e.g. shirt), belt, necklace, earring, ring
-      if (item.getItem().getItemType() == L2WeaponType.ROD || item.isShadowItem() || item.isPvp() || item.isHeroItem() || item.isTimeLimitedItem() ||
+      if (item.getItem().getItemType() == L2WeaponType.ROD || item.isShadowItem() || (item.isPvp() && !Config.ENABLE_PVP_WEAPON_ELEMENT) || (item.isHeroItem() && !Config.ENABLE_HERO_WEAPON_ELEMENT) || item.isTimeLimitedItem() ||
          (item.getItemId() >= 7816 && item.getItemId() <= 7831) || (item.getItem().getItemType() == L2WeaponType.NONE) ||
          item.getItem().getItemGradeSPlus() != L2Item.CRYSTAL_S || item.getItem().getBodyPart() == L2Item.SLOT_BACK ||
          item.getItem().getBodyPart() == L2Item.SLOT_R_BRACELET || item.getItem().getBodyPart() == L2Item.SLOT_UNDERWEAR ||

 

Sorry den vrika to topic kai ekana edw to arxio pou eixa apothikeusei to patch paste... Credits ston creator, oxi se 'mena :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Buying Epics/ S Gear on Elixir Whisper me
    • Hello everyone, I am looking to purchase a Premium Lineage 2 High Five server pack. My main requirements are: Stability & Quality (Most Important): The pack must be highly stable with no system errors or major bugs. Custom Features: It must include ready-to-use custom features such as a fully functional Community Board, custom NPC Buffers, and Custom Item Sellers (GM Shops), etc. Complete Files: It is absolutely necessary that the full source code (src) and complete Geodata are included. If you are selling a pack that meets these criteria, please send me a PM or leave a reply with the following information: Brief details and key features of the pack Price Test server availability (I would like to test it before buying) Thank you!
    • L2jmobiusDevClon — Classic Interlude p110 Emulator L2jmobiusDevClon is actively developing a Lineage 2 Classic Interlude p110 emulator. Development is done in free time with a strong focus on: • Stability • Authentic Classic mechanics • Clean and optimized architecture The project is based on the L2jMobius source and is continuously evolving and improving. System Requirements: • Java 25 • MariaDB 12.0 • Client p110 Current Revision: 3.0 Development Status: Active Distribution: Free Official Website: https://www.l2jmobiusdevclon.pp.ua Discord Server: https://discord.gg/23a9S8g4Bn Contact: Telegram — @L2jmobiusDevClon Also available via private messages Project Goals: ✔ Improved stability ✔ Maximum Classic accuracy ✔ Core optimization We are currently looking for: • Testers • Server administrators Suggestions, bug reports, and ideas are always welcome. Contact us via: ✔ Discord ✔ Telegram ✔ Private Messages
    • i guess loading only the effects that are needed it will maybe work, like removing from reshade shader folder the ones that are not needed, depends on the pc also i guess, also limithing the game at 30fps can be better maybe
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and 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..