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

    • In my opinion, L2 is dead because the people who make servers didn’t adapt to today’s reality. People are getting older, life moves faster, there are more responsibilities, and less free time. And I’m not even talking about newcomers—how can you expect someone new to this game to learn by Googling every drop location or quest requirement? These things should’ve been integrated into the game, made accessible with just a few clicks through the interface. Instead, so much time was wasted trying to recreate retail-like features that no one asked for. Everyone hates autofarm, but why? Because admins never found a smart way to implement it. You could have made it available only in specific zones, with reduced drops, working like Adrenaline, or auto-teleporting to farm for a limited time per day—just enough to help people with limited time stay relevant in-game. There should also be zones with better drops, where active farming actually matters. Other features feel pointless—like the Life Stone system. Spamming LS to get a skill? Instead, you could create a system where you level up the skill with low chances per level, something that feels progressive and fair. Crafting should be simpler too. Right-click a recipe, and the required materials should show up right there. As for sieges, why not create daily clan war events at peak hours—one for Europeans, one for Latinos? You could spawn crystals inside or outside castles that give points and trigger PvP. Add a boss during the event that gives even more points, and let the top clan in the ranking take the castle. I could go on forever, but what’s the point? The community died because the people who had the knowledge to improve the game just took the easy way out, copying the same server formula over and over until no one could enjoy playing it anymore.
    • It's not because I'm an admin that he treated me differently. I actually gave him several clients from my side without him even knowing they came from me, and most of them had no issues. I was also waiting 3–4 weeks at times for things I bought from AvE, even when I was in a rush. He still delivered in the end. That said, I'm not defending him blindly. I'm just saying it's unlikely he’d risk scamming someone over 60–100€, especially knowing how quickly word spreads here.
    • For exact same reason - there were accusation that I scammed. When was it? 2016? But in that time, admins actually didn't listen. I got banned, then unbaned (when I prooved I've refunded) but I was trash talking to mods. When few months later same shit happened, Grisom (?) old global mod, banned me anyway. You can read somewhere on forum how I was shitting on him for doing that (from other account because original account was banned) - which was banned too. He is not here anymore I think. Back in the days I was well know for not carring that much if I was talking to mod or admin, I didn't hold my tongue. Now You know. Just like You know - if I delay, I deliver or refund. I'm not a scammer, even if my old time haterz love to repeat themselfs like mantra. I don't care.
    • Okay I respect that but why is your other account banned?   I don't think this happened just because you delayed somebodys work even in 2012
    • Do You understand the fact, I won't scam anyone? Can You grasp such idea?  Second of all, if a random restaurant on Google Maps has 599 positive reviews and few negative ones with 4,8* score, do You ask Google to block it's profile and burn the place down? No? Then why the fuck You are crying about my random delays? If someone can't get a CUSTOM DESIGN on time, I refund. I'm not 16  y.o. anymore. I don't make living out of this L2 bullshit. Never did. Since 2012 I've made shit tons of projects. How many delays did I have? 12? 15? Out of hundrets of projects. Calm Your tits please. If I would actually take 4k euro and NOT deliver and NOT refund - admins can ban me. So don't compare me to Simple. And just so You know, Celestine sent me customers, so it's not like I've worked with him on his account all the time. That's another thing You won't understand. I won't waste anymore time on You and any other cunt who never was my customer but is bitching just because he has nothing better to do in his life. You don't like my work? Hove along, I don't give a shit. 
  • Topics

×
×
  • Create New...