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

    • Just like I said earlier, stop downvoting me and I'll stop downvoting you. Don't downvote me and cry about it when I retaliate
    • it is very sad to see how 4 people destroyed the l2off section.... We should create another place where administrators and moderators are not criminals or scammers. You can see what happens in my case when I share free files, you can see all the negative messages and downvotes for example, that proves it all. We would have to leave these 4 people here to continue scamming people, something about the l2off platform, that creates a forum or inente a healthier place than this .... Greetings.   -------------------------------------------------------------------   have a proposal to solve the problem. why don't all those who bought an extension from L2Devs, compare what they bought, with what I published and verify who is the scammer? then they compare the files they bought with my SVN.  Those who bought from L2Devs @UnknownSoldier Mariano Canteros (Argentina) come on, do the comparison and verify who is the scammer    if you want to share files for free on maxcheaters, you will receive something like this. think twice before sharing content on maxcheaters 🙂
    • 1. not gonna read all that 2. you most definitely did NOT write any of that (since, as shown here, you have poor grammar and punctuation). I'm not trying to offend you in any way, rather, encouraging you to think for yourself instead of being an NPC, cheers.  
    • Ah, ah, ah " θεέ μου βοήθησε με " yet another person who seems obsessed with this. When some people read a post that actually has a beginning, a middle, and an end, it's like a shock to them. "How can this person write so well? He must be using AI." Seems like a lot of you out there think the same way. As for what you said, I honestly didn’t understand how any of it relates to the post. I didn’t take anyone’s side, nor did I say who’s right or wrong. I don’t want to get into that whole mindset of dividing people into sides. Your side is pretty clear though. You seem coordinated and consistent. The other side hasn’t really shown up yet, maybe because it’s just one lone wolf. But that doesn’t mean he’s wrong. Anyway, I figured I’d write something to maybe shake things up a bit, but it looks like concrete doesn’t move easily. Maybe it takes a real earthquake. That’s all from me on this topic. Take care and good luck with whatever you're doing. No matter what you write, I won’t be replying to you or your little crew. 😉
  • 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