*

"[L2JFrozen][L2JDrifter]Grado S80 Interlude"

Iniciado Por malocam, El día Mayo 07, 2018, 04:34:11 am



Seleccionar idioma
English Spanish Es

Autor Tema: [L2JFrozen][L2JDrifter]Grado S80 Interlude  (Leído 322 veces)

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

Conectado malocam en: Mayo 07, 2018, 04:34:11 am

  • 3D Maker
  • *
  • *
  • Rank: Nivel: Leyenda
  • *
  • Gracias Recibidas: 213
  • Mensajes: 178
  • Loco Por el 3D
Buenas Gente aqui les dejo Como avia prometido
el code Base del Grado S80 en interlude

Con los SoulShot BlesssShot,SpiritShot,fishShot Auto Funcionando

Ire actualizando el Code con Cada modificacion y Bug que salga


Parche Manual:
Código: [Seleccionar]
Index: L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/Templates/L2Item.java
===================================================================
--- L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/Templates/L2Item.java   (revision 1004)
+++ L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/Templates/L2Item.java   (working copy)
===================================================================
@@ -88,5 +89,5 @@

    public static final int CRYSTAL_S = 0x05; // ??
+ * @author Deilan[YT]
+   public static final int CRYSTAL_S80 = 0x06; // ??


Index: L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/Powerpak/PowerPakConfig.java
===================================================================
--- L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/Powerpak/PowerPakConfig.java   (revision 1004)
+++ L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/Powerpak/PowerPakConfig.java   (working copy)
===================================================================
@@ -191,13 +201,26 @@

    if (str.indexOf("s") != -1 || str.indexOf("all") != -1)
            {
                ENGRAVE_ALLOW_GRADE.add(L2Item.CRYSTAL_S);
            }

+ * @author Deilan[YT]
+
+         // new Item Grade S80
+         if (str.indexOf("s80") != -1 || str.indexOf("all") != -1)
+                  {
+                     ENGRAVE_ALLOW_GRADE.add(L2Item.CRYSTAL_S80);
+                  }
+

Index: L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/Datables/sql/ItemTable.java
===================================================================
--- L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/Datables/sql/ItemTable.java   (revision 1004)
+++ L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/Datables/sql/ItemTable.java   (working copy)
===================================================================
@@ -77,9 +77,9 @@
+ * @author Deilan[YT]
+      _crystalTypes.put("s80", L2Item.CRYSTAL_S80);
        _crystalTypes.put("s", L2Item.CRYSTAL_S);


Index: L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/handler/itemhandlers/BlessedSpiritShot.java
===================================================================
--- L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/handler/itemhandlers/BlessedSpiritShot.java   (revision 1004)
+++ L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/handler/itemhandlers/BlessedSpiritShot.java   (working copy)
@@ -44,5 +44,5 @@

    private static final int[] ITEM_IDS = { 3947, 3948, 3949, 3950, 3951, 3952 };
-   private static final int[] SKILL_IDS = { 2061, 2160, 2161, 2162, 2163, 2164 };

+   private static final int[] SKILL_IDS = { 2061, 2160, 2161, 2162, 2163, 2164, 2164 };


@@ -96,13 +97,13 @@

            int weaponGrade = weaponItem.getCrystalType();
-      if ((weaponGrade == L2Item.CRYSTAL_NONE && itemId != 3947) ||
-         (weaponGrade == L2Item.CRYSTAL_D && itemId != 3948) ||
-         (weaponGrade == L2Item.CRYSTAL_C && itemId != 3949) ||
-         (weaponGrade == L2Item.CRYSTAL_B && itemId != 3950) ||
-         (weaponGrade == L2Item.CRYSTAL_A && itemId != 3951) ||
-         (weaponGrade == L2Item.CRYSTAL_S && itemId != 3952))
-

+      if ((weaponGrade == L2Item.CRYSTAL_NONE && itemId != 3947) ||
+         (weaponGrade == L2Item.CRYSTAL_D && itemId != 3948) ||
+         (weaponGrade == L2Item.CRYSTAL_C && itemId != 3949) ||
+         (weaponGrade == L2Item.CRYSTAL_B && itemId != 3950) ||
+         (weaponGrade == L2Item.CRYSTAL_A && itemId != 3951) ||
+         (weaponGrade == L2Item.CRYSTAL_S && itemId != 3952) ||
+         (weaponGrade == L2Item.CRYSTAL_S80 && itemId != 3952))


Index: L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/handler/itemhandlers/SoulShots.java
===================================================================
--- L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/handler/itemhandlers/SoulShots.java   (revision 1004)
+++ L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/handler/itemhandlers/SoulShots.java   (working copy)
@@ -44,5 +44,5 @@

   // All the item IDs that this handler knows.
   private static final int[] ITEM_IDS = {5789, 1835, 1463, 1464, 1465, 1466, 1467 };
-   private static final int[] SKILL_IDS = {2039, 2150, 2151, 2152, 2153, 2154 };

+   private static final int[] SKILL_IDS = {2039, 2150, 2151, 2152, 2153, 2154, 2154 };

@@ -67,9 +67,9 @@

      // Check for correct grade
-      int weaponGrade = weaponItem.getCrystalType();
-      if ((weaponGrade == L2Item.CRYSTAL_NONE && itemId != 5789 && itemId != 1835) ||
-         (weaponGrade == L2Item.CRYSTAL_D && itemId != 1463) ||
-         (weaponGrade == L2Item.CRYSTAL_C && itemId != 1464) ||
-         (weaponGrade == L2Item.CRYSTAL_B && itemId != 1465) ||
-         (weaponGrade == L2Item.CRYSTAL_A && itemId != 1466) ||
-         (weaponGrade == L2Item.CRYSTAL_S && itemId != 1467))

+      int weaponGrade = weaponItem.getCrystalType();
+      if ((weaponGrade == L2Item.CRYSTAL_NONE && itemId != 5789 && itemId != 1835) ||
+         (weaponGrade == L2Item.CRYSTAL_D && itemId != 1463) ||
+         (weaponGrade == L2Item.CRYSTAL_C && itemId != 1464) ||
+         (weaponGrade == L2Item.CRYSTAL_B && itemId != 1465) ||
+         (weaponGrade == L2Item.CRYSTAL_A && itemId != 1466) ||
+         (weaponGrade == L2Item.CRYSTAL_S && itemId != 1467) ||
+         (weaponGrade == L2Item.CRYSTAL_S80 && itemId != 1467))


Index: L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/handler/itemhandlers/SpiritShot.java
===================================================================
--- L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/handler/itemhandlers/SpiritShot.java   (revision 1004)
+++ L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/handler/itemhandlers/SpiritShot.java   (working copy)
@@ -40,5 +41,5 @@
-   private static final int[] ITEM_IDS = { 6535, 6536, 6537, 6538, 6539, 6540 };
-   private static final int[] SKILL_IDS = { 2181, 2182, 2183, 2184, 2185, 2186 };

+   private static final int[] ITEM_IDS = { 6535, 6536, 6537, 6538, 6539, 6540, 6540 };
+   private static final int[] SKILL_IDS = { 2181, 2182, 2183, 2184, 2185, 2186, 2186 };

@@ -70,9 +76,65 @@

-         if ((grade == L2Item.CRYSTAL_NONE && FishshotId != 6535) ||
-         (grade == L2Item.CRYSTAL_D && FishshotId != 6536) ||
-         (grade == L2Item.CRYSTAL_C && FishshotId != 6537) ||
-         (grade == L2Item.CRYSTAL_B && FishshotId != 6538) ||
-         (grade == L2Item.CRYSTAL_A && FishshotId != 6539) ||
-         (grade == L2Item.CRYSTAL_S && FishshotId != 6540))

+         if ((grade == L2Item.CRYSTAL_NONE && FishshotId != 6535) ||
+         (grade == L2Item.CRYSTAL_D && FishshotId != 6536) ||
+         (grade == L2Item.CRYSTAL_C && FishshotId != 6537) ||
+         (grade == L2Item.CRYSTAL_B && FishshotId != 6538) ||
+         (grade == L2Item.CRYSTAL_A && FishshotId != 6539) ||
+         (grade == L2Item.CRYSTAL_S && FishshotId != 6540) ||
+         (grade == L2Item.CRYSTAL_S80 && FishshotId != 6540))


Index: L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/handler/itemhandlers/SpiritShot.java
===================================================================
--- L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/handler/itemhandlers/SpiritShot.java   (revision 1004)
+++ L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/handler/itemhandlers/SpiritShot.java   (working copy)
@@ -39,5 +40,5 @@

   // All the item IDs that this handler knows.
   private static final int[] ITEM_IDS = { 5790, 2509, 2510, 2511, 2512, 2513, 2514 };
-   private static final int[] SKILL_IDS = { 2061, 2155, 2156, 2157, 2158, 2159 };

+   private static final int[] SKILL_IDS = { 2061, 2155, 2156, 2157, 2158, 2159, 2159 };

@@ -65,9 +65,9 @@

      // Check for correct grade
-      int weaponGrade = weaponItem.getCrystalType();
-      if ((weaponGrade == L2Item.CRYSTAL_NONE && itemId != 5790 && itemId != 2509) ||
-         (weaponGrade == L2Item.CRYSTAL_D && itemId != 2510) ||
-         (weaponGrade == L2Item.CRYSTAL_C && itemId != 2511) ||
-         (weaponGrade == L2Item.CRYSTAL_B && itemId != 2512) ||
-         (weaponGrade == L2Item.CRYSTAL_A && itemId != 2513) ||
-         (weaponGrade == L2Item.CRYSTAL_S && itemId != 2514))


+      int weaponGrade = weaponItem.getCrystalType();
+      if ((weaponGrade == L2Item.CRYSTAL_NONE && itemId != 5790 && itemId != 2509) ||
+         (weaponGrade == L2Item.CRYSTAL_D && itemId != 2510) ||
+         (weaponGrade == L2Item.CRYSTAL_C && itemId != 2511) ||
+         (weaponGrade == L2Item.CRYSTAL_B && itemId != 2512) ||
+         (weaponGrade == L2Item.CRYSTAL_A && itemId != 2513) ||
+         (weaponGrade == L2Item.CRYSTAL_S && itemId != 2514) ||
+         (weaponGrade == L2Item.CRYSTAL_S80 && itemId != 2514))

Index: L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/network/clientpackets/RequestAutoSoulShot.java
===================================================================
--- L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/network/clientpackets/RequestAutoSoulShot.java   (revision 1004)
+++ L2jFrozen_GameServer/head-src/com/l2jfrozen/Gameserver/network/clientpackets/RequestAutoSoulShot.java   (working copy)
@@ -94,29 +95,33 @@

                               if (activeChar.getActiveWeaponItem() != activeChar.getFistsWeaponItem() && item.getItem().getCrystalType() == activeChar.getActiveWeaponItem().getCrystalType() ||
-                               (item.getItem().getCrystalType() == L2Item.CRYSTAL_S))

                               if (activeChar.getActiveWeaponItem() != activeChar.getFistsWeaponItem() && item.getItem().getCrystalType() == activeChar.getActiveWeaponItem().getCrystalType() ||
+                               (item.getItem().getCrystalType() == L2Item.CRYSTAL_S && activeChar.getActiveWeaponItem().getCrystalType() == L2Item.CRYSTAL_S80))



Index: L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java
===================================================================
--- L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java   (revision 1004)
+++ L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java   (working copy)
@@ -229,13 +230,13 @@

         case L2Item.CRYSTAL_S:
+         case L2Item.CRYSTAL_S80:
            crystalId = 1462;
            switch (scroll.getItemId())
            {
               case 959:
               case 961:
               case 6577:
                  if (itemType2 == L2Item.TYPE2_WEAPON)
                  {
                     enchantItem = true;
                  }
                  break;
               case 960:
               case 962:
               case 6578:
                  if (itemType2 == L2Item.TYPE2_SHIELD_ARMOR || itemType2 == L2Item.TYPE2_ACCESSORY)
                  {
                     enchantItem = true;
                  }
                  break;
            }
            break;
      }



SQL:
Código: [Seleccionar]
ALTER TABLE `armor` CHANGE `crystal_type` `crystal_type` ENUM( 'none', 'd', 'c', 'b', 'a', 's', 's80') CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'none'
ALTER TABLE `custom_armor` CHANGE `crystal_type` `crystal_type` ENUM( 'none', 'd', 'c', 'b', 'a', 's', 's80') CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'none'
ALTER TABLE `custom_weapon` CHANGE `crystal_type` `crystal_type` ENUM( 'none', 'd', 'c', 'b', 'a', 's', 's80') CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'none'
ALTER TABLE `weapon` CHANGE `crystal_type` `crystal_type` ENUM( 'none', 'd', 'c', 'b', 'a', 's', 's80') CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'none'

Pack: L2jFrozen, L2jDrifter
Client: Interlude


Creditos:
Code By Deilan Sasame
Help : KimeraWeb, Fissban, JavaFan
Idea: BlackZer0
« Última modificación: Junio 17, 2018, 12:55:43 pm por melo920 »
Solo para Ayudar y Aprender
Twitter Youtube Facebook

El Respeto Es Para Quien Se lo Merece

Gracias:


 

 
Cerrar
Bienvenido a GamesBit, por favor registrate para disfrutar del foro