Jump to content

Recommended Posts

Posted

Index: java/net/sf/l2j/gameserver/handler/itemhandlers/EnchantScrolls.java
===================================================================
--- java/net/sf/l2j/gameserver/handler/itemhandlers/EnchantScrolls.java	(revision 5343)
+++ java/net/sf/l2j/gameserver/handler/itemhandlers/EnchantScrolls.java	(working copy)
@@ -35,6 +35,7 @@
         951, 952, 953, 954, 6573, 6574, // c grade
         955, 956, 957, 958, 6575, 6576, // d grade
         959, 960, 961, 962, 6577, 6578  // s grade
+        , 65535
	};


Index: java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java	(revision 5343)
+++ java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java	(working copy)
@@ -206,6 +206,34 @@
                 || (item.getItem().getBodyPart() == L2Item.SLOT_FULL_ARMOR
                         && item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX_FULL))
             chance = 100;
+        
+        if (scroll.getItemId() == 65535)
+        {
+        	int NEEDED_ENCHANT_LEVEL = 10,
+        		MAX_ENCHANT_LEVEL = 16,
+        		CHANCE_WEAPON = 80,
+        		CHANCE_ARMOR = 80,
+        		CHANCE_JEWEL = 80;
+        	
+        	if (item.getEnchantLevel() < NEEDED_ENCHANT_LEVEL || item.getEnchantLevel() > MAX_ENCHANT_LEVEL)
+        	{
+        		activeChar.sendMessage("You can only enchant with this scroll from +"+NEEDED_ENCHANT_LEVEL+" to +"+MAX_ENCHANT_LEVEL+".");
+        		return;
+        	}
+        	
+        	if (item.getItem().getType2() == L2Item.TYPE2_WEAPON)
+        	{
+        		chance = CHANCE_WEAPON;
+        	}
+        	if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR)
+        	{
+        		chance = CHANCE_ARMOR;
+        	}
+        	if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY)
+        	{
+        		chance = CHANCE_JEWEL;
+        	}
+        }

         if (Rnd.get(100) < chance)
         {

 

Prepei na work. Opou 65535 antikatestise to me to item id apo to custom scroll sou.

ξέχασες μου φαίνεται το item.getEnchantLevel()+1 κάτω από κάθε chance,γιατί έτσι δεν κάνει enchant από ότι βλέπω..;)
Posted

8elw enan code c6 pou i pextes mesa ston server mou na pane mexri 90lvl ala afou pane panw apo 80 to xp na aneveni pio diskola ala poli pio diskola! 8a mporousate na m apantisete parakalw an mpori n gini afto pou rotisa?

Posted

8elw enan code c6 pou i pextes mesa ston server mou na pane mexri 90lvl ala afou pane panw apo 80 to xp na aneveni pio diskola ala poli pio diskola! 8a mporousate na m apantisete parakalw an mpori n gini afto pou rotisa?

Πανε στο net.sf.l2j.gameserver.model.base και ανοιξε την κλασση Experience.

Εκει θα βρεις κατι τετοιο

 

0L,
	68L,
	363L,
	1168L,
	2884L,
	6038L,
	11287L,
	19423L,
	31378L,
	48229L, //level 10
	71201L,
	101676L,
	141192L,
	191452L,
	254327L,
	331864L,
	426284L,
	539995L,
	675590L,
	835854L, //level 20
	1023775L,
	1242536L,
	1495531L,
	1786365L,
	2118860L,
	2497059L,
	2925229L,
	3407873L,
	3949727L,
	4555766L, //level 30
	5231213L,
	5981539L,
	6812472L,
	7729999L,
	8740372L,
	9850111L,
	11066012L,
	12395149L,
	13844879L,
	15422851L, //level 40
	17137002L,
	18995573L,
	21007103L,
	23180442L,
	25524751L,
	28049509L,
	30764519L,
	33679907L,
	36806133L,
	40153995L, //level 50
	45524865L,
	51262204L,
	57383682L,
	63907585L,
	70852742L,
	80700339L,
	91162131L,
	102265326L,
	114038008L,
	126509030L, //level 60
	146307211L,
	167243291L,
	189363788L,
	212716741L,
	237351413L,
	271973532L,
	308441375L,
	346825235L,
	387197529L,
	429632402L, //level 70
	474205751L,
	532692055L,
	606319094L,
	696376867L,
	804219972L,
	931275828L,
	1151275834L,
	1511275834L,
	2099275834L,
	4200000000L, //level 80 

 

Προσθεσε κατω απ'ο αυτο κατι τετοιο

6300000000L, //level 81
	8820000000L, //level 82
	11844000000L, //level 83
	15472800000L, //level 84
	19827360000L, //level 85
	25314000000L, //level 86
	35314000000L, //level 87
	45314000000L, //level 88
	55314000000L, //level 89
	65314000000L, //level 90
	75314000000L, //level 91
	85314000000L, //level 92
	95314000000L, //level 93
	95389000000L, //level 94
	95489000000L, //level 95
	99489000000L, //level 95
	95489100000L

 

Και δες αν λειτουργει , αν λειτουργει το να κανεις το exp δυσκολο απο 80 μεχρι 90 ειναι ευκολο μετα. Τεσταρετο

Posted

Πανε στο net.sf.l2j.gameserver.model.base και ανοιξε την κλασση Experience.

Εκει θα βρεις κατι τετοιο

 

0L,
	68L,
	363L,
	1168L,
	2884L,
	6038L,
	11287L,
	19423L,
	31378L,
	48229L, //level 10
	71201L,
	101676L,
	141192L,
	191452L,
	254327L,
	331864L,
	426284L,
	539995L,
	675590L,
	835854L, //level 20
	1023775L,
	1242536L,
	1495531L,
	1786365L,
	2118860L,
	2497059L,
	2925229L,
	3407873L,
	3949727L,
	4555766L, //level 30
	5231213L,
	5981539L,
	6812472L,
	7729999L,
	8740372L,
	9850111L,
	11066012L,
	12395149L,
	13844879L,
	15422851L, //level 40
	17137002L,
	18995573L,
	21007103L,
	23180442L,
	25524751L,
	28049509L,
	30764519L,
	33679907L,
	36806133L,
	40153995L, //level 50
	45524865L,
	51262204L,
	57383682L,
	63907585L,
	70852742L,
	80700339L,
	91162131L,
	102265326L,
	114038008L,
	126509030L, //level 60
	146307211L,
	167243291L,
	189363788L,
	212716741L,
	237351413L,
	271973532L,
	308441375L,
	346825235L,
	387197529L,
	429632402L, //level 70
	474205751L,
	532692055L,
	606319094L,
	696376867L,
	804219972L,
	931275828L,
	1151275834L,
	1511275834L,
	2099275834L,
	4200000000L, //level 80 

 

Προσθεσε κατω απ'ο αυτο κατι τετοιο

6300000000L, //level 81
	8820000000L, //level 82
	11844000000L, //level 83
	15472800000L, //level 84
	19827360000L, //level 85
	25314000000L, //level 86
	35314000000L, //level 87
	45314000000L, //level 88
	55314000000L, //level 89
	65314000000L, //level 90
	75314000000L, //level 91
	85314000000L, //level 92
	95314000000L, //level 93
	95389000000L, //level 94
	95489000000L, //level 95
	99489000000L, //level 95
	95489100000L

 

Και δες αν λειτουργει , αν λειτουργει το να κανεις το exp δυσκολο απο 80 μεχρι 90 ειναι ευκολο μετα. Τεσταρετο

δεν πρέπει να είναι μόνο java side αυτό,θέλει σίγουρα και client edit.
Posted

Index: java/net/sf/l2j/gameserver/handler/itemhandlers/EnchantScrolls.java
===================================================================
--- java/net/sf/l2j/gameserver/handler/itemhandlers/EnchantScrolls.java	(revision 5343)
+++ java/net/sf/l2j/gameserver/handler/itemhandlers/EnchantScrolls.java	(working copy)
@@ -35,6 +35,7 @@
         951, 952, 953, 954, 6573, 6574, // c grade
         955, 956, 957, 958, 6575, 6576, // d grade
         959, 960, 961, 962, 6577, 6578  // s grade
+        , 65535
	};


Index: java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java	(revision 5343)
+++ java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java	(working copy)
@@ -206,6 +206,34 @@
                 || (item.getItem().getBodyPart() == L2Item.SLOT_FULL_ARMOR
                         && item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX_FULL))
             chance = 100;
+        
+        if (scroll.getItemId() == 65535)
+        {
+        	int NEEDED_ENCHANT_LEVEL = 10,
+        		MAX_ENCHANT_LEVEL = 16,
+        		CHANCE_WEAPON = 80,
+        		CHANCE_ARMOR = 80,
+        		CHANCE_JEWEL = 80;
+        	
+        	if (item.getEnchantLevel() < NEEDED_ENCHANT_LEVEL || item.getEnchantLevel() > MAX_ENCHANT_LEVEL)
+        	{
+        		activeChar.sendMessage("You can only enchant with this scroll from +"+NEEDED_ENCHANT_LEVEL+" to +"+MAX_ENCHANT_LEVEL+".");
+        		return;
+        	}
+        	
+        	if (item.getItem().getType2() == L2Item.TYPE2_WEAPON)
+        	{
+        		chance = CHANCE_WEAPON;
+        	}
+        	if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR)
+        	{
+        		chance = CHANCE_ARMOR;
+        	}
+        	if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY)
+        	{
+        		chance = CHANCE_JEWEL;
+        	}
+        }

         if (Rnd.get(100) < chance)
         {

 

Prepei na work. Opou 65535 antikatestise to me to item id apo to custom scroll sou.

 

ξέχασες μου φαίνεται το item.getEnchantLevel()+1 κάτω από κάθε chance,γιατί έτσι δεν κάνει enchant από ότι βλέπω..;)

 

Δεν έχω κάνει προσπάθεια να το περάσω... τελικά θέλει κάποιο Edit ή όχι??

Posted

telika douleueis se hi5 tora?

προς το παρον οχι, αλλα πες μου τι χρειαζεσαι. Οτι μπορει να γινει σε interlude Μπορει να γινει και σε hi5 αρκει να το παρεχει το client.

Posted

Θέλω 1 java code ;3

 

Όταν κάνεις enchant 1 item και σπάσει ή μηδενιστεί να πηγαίνει στο safe enchant.

Posted

Θέλω 1 java code ;3

 

Όταν κάνεις enchant 1 item και σπάσει ή μηδενιστεί να πηγαίνει στο safe enchant.

### Eclipse Workspace Patch 1.0
#P Chr.6GMS
Index: java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java	(revision 5263)
+++ java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java	(working copy)
@@ -38,6 +38,7 @@

public final class RequestEnchantItem extends L2GameClientPacket
{
+	private int safe = 3;
     protected static final Logger _log = Logger.getLogger(Inventory.class.getName());
     private static final String _C__58_REQUESTENCHANTITEM = "[C] 58 RequestEnchantItem";
     private static final int[] CRYSTAL_SCROLLS = { 731, 732, 949, 950, 953, 954, 957, 958, 961, 962 };
@@ -240,96 +241,18 @@
             }
         }
         else
-        {
+        {   
             if (!blessedScroll)
             {
-                if (item.getEnchantLevel() > 0)
-                {
-                    sm = new SystemMessage(SystemMessageId.ENCHANTMENT_FAILED_S1_S2_EVAPORATED);
-                    sm.addNumber(item.getEnchantLevel());
-                    sm.addItemName(item.getItemId());
-                    activeChar.sendPacket(sm);
-                }
-                else
-                {
-                    sm = new SystemMessage(SystemMessageId.ENCHANTMENT_FAILED_S1_EVAPORATED);
-                    sm.addItemName(item.getItemId());
-                    activeChar.sendPacket(sm);
-                }
+               item.setEnchantLevel(safe);
+               item.updateDatabase();
             }
             else
             {
-                sm = new SystemMessage(SystemMessageId.BLESSED_ENCHANT_FAILED);
-                activeChar.sendPacket(sm);
-            }
-            
-            if (!blessedScroll)
-            {
-                if (item.getEnchantLevel() > 0)
-                {
-                    sm = new SystemMessage(SystemMessageId.EQUIPMENT_S1_S2_REMOVED);
-                    sm.addNumber(item.getEnchantLevel());
-                    sm.addItemName(item.getItemId());
-                    activeChar.sendPacket(sm);
-                }
-                else
-                {
-                    sm = new SystemMessage(SystemMessageId.S1_DISARMED);
-                    sm.addItemName(item.getItemId());
-                    activeChar.sendPacket(sm);
-                }
-
-                L2ItemInstance[] unequiped = activeChar.getInventory().unEquipItemInSlotAndRecord(item.getEquipSlot());
-                if (item.isEquipped())
-                {
-                    InventoryUpdate iu = new InventoryUpdate();
-                    for (int i = 0; i < unequiped.length; i++)
-                    {
-                        iu.addModifiedItem(unequiped[i]);
-                    }
-                    activeChar.sendPacket(iu);
-                
-                    activeChar.broadcastUserInfo();
-                }
-                
-                int count = item.getCrystalCount() - (item.getItem().getCrystalCount() +1) / 2;
-                if (count < 1) count = 1;
-    
-                L2ItemInstance destroyItem = activeChar.getInventory().destroyItem("Enchant", item, activeChar, null);
-                if (destroyItem == null) return;
-                
-                L2ItemInstance crystals = activeChar.getInventory().addItem("Enchant", crystalId, count, activeChar, destroyItem);
-            
-                sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S);
-                sm.addItemName(crystals.getItemId());
-                sm.addNumber(count);
-                activeChar.sendPacket(sm);
-    
-                if (!Config.FORCE_INVENTORY_UPDATE)
-                {
-                    InventoryUpdate iu = new InventoryUpdate();
-                    if (destroyItem.getCount() == 0) iu.addRemovedItem(destroyItem);
-                    else iu.addModifiedItem(destroyItem);
-                    iu.addItem(crystals);
-                    
-                    activeChar.sendPacket(iu);
-                }
-                else activeChar.sendPacket(new ItemList(activeChar, true));
-            
-                StatusUpdate su = new StatusUpdate(activeChar.getObjectId());
-                su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
-                activeChar.sendPacket(su);
-            
-                activeChar.broadcastUserInfo();
-            
-                L2World world = L2World.getInstance();
-                world.removeObject(destroyItem);
-            }
-            else
-            {
-                item.setEnchantLevel(0);
+                item.setEnchantLevel(safe);
                 item.updateDatabase();
             }
+            activeChar.sendMessage("Your "+item.getItemName()+" enchanting failed , your item enchanted to +"+safe);
         }
         sm = null;
         

Posted

στο σερβερ μου τα epic bosses είναι passive και δεν μου επιτίθονται. π.χ ξυπνάω τον Baium και αυτός κάθεται ακίνητος. Ο Valakas και o Antharas δεν βγαίνουν από την "φωλιά" τους, ασχέτως από το πόση ώρα περιμένω και φυσικά εννοείται ότι μπαίνω σαν απλός char (όχι gm) και αφού έχω κάνει τα quest

Αν μπορείς δώσε ένα hint

Guest
This topic is now closed to further replies.



  • Posts

    • Vesper Noble heavy set (RAR) 1800 att - 150e Eternal Core Dualsword +6 300 att 130e Ring of Baium 130e AQ ring 100e Antharas Earring 200e   Paypal payments only DM in discord narttu123
    • L2REBORN x10 - 1gb - 4.2$ l2reborn x1 ( signature ) - 1kk - 1.3$ LU4 - 1kk - 2.3$ MASTERWORRK - 1kk - 3.8kk  discord - adver745645
    • Hello, Skill Activation: The activation options from the Alt+K window work perfectly. However, when activating them from the skill bar, there is still a delay of approximately 1 second. I need to remove that delay
    • --- Interlude Faction/GvE PvP grand opening 2025-11-15 19:00 GMT+2 ---   Gameplay: Chronicle: Interlude Type: Faction/GvE (Angels vs Nature vs Demons) GM Shop: B-S grade Buff slots: 20+4 Starting level: 74 + rebirth system   New Features: Client: Modern interface based on Essence Balance: New class skills for better balance Achievement Rewards: Daily, Weekly, One-time TOP rankings: PvP, Event PvP, Map PvP, Clan PvP, Event MvP, Map MvP Zones: 70 different PvP zones,  18 different events (8 map events | 10 main events) 12 Grand/raid bosses. Castle siege Olympiad Clan Hall challenge Custom Enchant System: Dynamic success chance (greater enchant level or item grade less enchanting success chance) Enchant rate: Blessed scrolls dynamic from 100% to 25%. Crystal Scrolls: 100%; Max enchant weapon +12 Max enchant armor +8 Safe point enchant system Extra Features: PvP items with level upgrade Weapon/Armor upgrade (from B grade to S) system Attributes system   Website: https://l2cygnus.com Community: Discord Facebook: https://www.facebook.com/l2cygnus Youtube:   
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock