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.

### 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

    • Dear clients, we strongly advise against holding funds in USDT due to an increase in mass freezes by the issuer. Any wallet can be locked without explanation if your coins happen to be in the wrong place at the wrong time. If you hold savings in USDT, swap them for something safer, such as XMR, BTC, ETH, or similar. When working with crypto, opt for decentralized coins that are technically impossible to freeze. Alternatively, after handling USDT, move your funds into safe assets. To protect your funds, we recommend using XMR, BTC, ETH.
    • Hello everyone, I am looking for a C4 Scions of Destiny (P656) Retail x1 L2OFF Server Pack + Source. My goal is not to launch a server immediately. I want to learn L2OFF server development in C++, understand the original C4 architecture, and eventually build my own project in the future. I have already tried to reach an agreement with a few members who offer C4 projects, but communication has been quite slow, so I decided to ask the community here as well. I'm specifically looking for a Retail x1 version, not a heavily customized x45 or PvP pack. Ideally, the package should include: Complete LoginServer Complete GameServer Source code SQL database AI / NPC scripts Geodata Visual Studio solution/project Everything required to compile, study, and run the server If anyone knows a trusted seller or can recommend a reliable P656 Retail x1 package, I would really appreciate your advice. I would also appreciate hearing from anyone who has purchased a Retail x1 package before and can share their experience. Thank you very much!
    • NEW SEASON OPENING - TODAY ! GRAND OPENING FROM - 10/07/2026, FRIDAY, 20:00 +3 GMT !
    • Elite Lineage II Development | Websites • Master Accounts • Custom Systems • Server Solutions Turn Your Lineage II Project Into a Professional Experience Hello everyone, My name is Frank, and for years I've been developing custom solutions for Lineage II private servers. My focus isn't simply creating attractive websites—it's building complete ecosystems that improve both the player experience and server management. Unlike generic web designers, I understand how Lineage II servers actually work. Every page and system is designed with real gameplay, server administration, and player retention in mind. Whether you're launching your first project or upgrading an established server, I can help you create something that looks and feels like a premium MMORPG. What I Can Build Modern Landing Pages Your landing page is the first impression players have of your server. I create high-end landing pages featuring: • Cinematic hero sections • Animated backgrounds • Countdown timers • Feature showcases • Grand Opening events • Server roadmap • Responsive mobile design • Fast loading and SEO-friendly structure No generic templates. Every landing page is built specifically for your project. Complete Master Account Systems One of my specialties is developing advanced account management panels that integrate naturally with your Lineage II server. Examples include: • Account Dashboard • Character Selection • Character Information • Character Statistics • Combat Power System • Achievement System • Character Mastery • Collections • Daily Rewards • Vote Rewards • Referral Systems • Lucky Wheel • Premium Account Management • Donation Store • Coin Wallet • VIP Services • PIN Protection • Password Management • Inventory Viewer • Warehouse Viewer • Rankings • Online Players • Server Statistics • Event Pages Everything is designed with both usability and visual quality in mind. Custom Web Systems Need something unique? I also develop completely custom features tailored to your server. Examples: • World Boss Event Pages • Raid Boss Tracker • Olympiad Rankings • Castle Siege Overview • Grand Boss Status • Event Management Panels • Daily Hunt Interfaces • Progression Systems • Collection Systems • Custom Shops • Clan Pages • Marketplace • Admin Panels If you have an idea, we can build it. Full Website Development I can create your complete server website, including: • Home • Downloads • News • Patch Notes • Server Information • Wiki • Rankings • Community Pages • Support Center • Knowledge Base • FAQ • Voting Pages • Donation Pages Designed to match your server's identity. Forum Integration Professional integration with community platforms. Examples: • XenForo • phpBB • Discord Integration • Custom Forum Themes • User Synchronization Server Experience Because I actively work with Lineage II servers, I understand much more than web development. Experience includes designing and implementing systems around: • Character progression • Achievement tracking • Collection systems • Daily Hunt mechanics • Lucky Wheel events • Premium services • Server economy • Custom reward systems • World Boss events • Event scheduling • Player dashboards • Administrative tools This allows me to design websites and panels that feel like a natural extension of your server instead of just another website. Technologies • PHP 8 • MySQL / MariaDB • HTML5 • CSS3 • JavaScript • AJAX • Responsive Design • API Integration • Linux Server Environment Why Choose Me? ✔ Years of Lineage II development experience ✔ I understand both the website and the game server ✔ Custom development—not copy-paste templates ✔ Modern UI & UX ✔ Mobile responsive ✔ Clean and optimized code ✔ Long-term support ✔ Fast communication ✔ Flexible solutions for every budget Portfolio Below you'll find examples of projects I've created, including custom landing pages, master account systems, dashboards, progression systems, and unique interfaces developed for real Lineage II servers.     Need Something Unique? Some of the most successful servers stand out because they offer features players haven't seen before. If you have an idea—even if it's only a rough concept—I can help transform it into a polished, fully functional system.     Contact Interested in working together? Feel free to send me a private message with your project details. I'll be happy to discuss your ideas and provide a free estimate. Let's build something your players will remember.     Discord:  https://discord.gg/qnmNkY6D3n
  • 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..