Jump to content

Recommended Posts

Posted

Αν ξέρει κάποιος τι μπορώ να κάνω ας μου πει είναι πολύ σημαντικό.

 

Πρεπει να δουλευει.

 

### Eclipse Workspace Patch 1.0
#P Chr.6GMS
Index: java/net/sf/l2j/gameserver/model/Inventory.java
===================================================================
--- java/net/sf/l2j/gameserver/model/Inventory.java	(revision 5263)
+++ java/net/sf/l2j/gameserver/model/Inventory.java	(working copy)
@@ -936,20 +936,7 @@
         if((getOwner() instanceof L2PcInstance) && ((L2PcInstance)getOwner()).getPrivateStoreType() != 0)
             return;
         
-        if(getOwner() instanceof L2PcInstance)
-        {
-            L2PcInstance player = (L2PcInstance)getOwner();
-            
-            if(!player.isGM())
-                if (!player.isHero())
-                {
-                    int itemId = item.getItemId();
-                    if ((itemId >= 6611 && itemId <= 6621) || itemId == 6842)
-                    {
-                        return;
-                    }
-                }
-        }
+       

		int targetSlot = item.getItem().getBodyPart();
         
@@ -1197,19 +1184,8 @@
	            item = L2ItemInstance.restoreFromDb(objectId);
	            if (item == null) continue;
	            
-	            if(getOwner() instanceof L2PcInstance)
-	            {
-	                L2PcInstance player = (L2PcInstance)getOwner();
-	                
-	                if(!player.isGM())
-	                    if (!player.isHero())
-	                    {
-	                        int itemId = item.getItemId();
-	                        if ((itemId >= 6611 && itemId <= 6621) || itemId == 6842)
-	                            item.setLocation(ItemLocation.INVENTORY);
-	                    }
-	            }
	            
+	            
	            L2World.getInstance().storeObject(item);
	            
	            // If stackable item is found in inventory just add to current quantity

 

 

 

Posted

cTyFu.png

 

Αυτό αν είναι εύκολο.

### 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)
@@ -237,6 +237,11 @@
             	}
             	item.setEnchantLevel(item.getEnchantLevel()+1);
             	item.updateDatabase();
+            	
+            	if(item.getEnchantLevel() == 16)
+            		for(L2PcInstance j : L2World.getInstance().getAllPlayers())
+            			if(j != null && j != activeChar)
+            				j.sendMessage("Congratulations,"+j.getName()+" successful enchanted "+item.getItem().getName()+"+16");
             }
         }
         else

Posted

καλησπέρα σε όλους,

 

Θα ήθελα έναν κώδικα (με κώδικα μου είπαν πως θα δουλέψει μόνο)

Έτσι ώστε ήττε με τα Enchant Scrolls που έχουμε ήδη ήττε να φτιάξουμε ένα νέο Scroll (δεν υπάρχει θέμα) να μπορεί να γίνετε Enchant από ένα συγκεκριμένο Enchant Level σε ένα άλλο αλλά με πιθανότητες που θα μπορώ να ορίσω εγώ από τα configs (για περισσότερες δοκιμές κυρίως) 

 

Ευχαριστώ εκ των πρωτέρων!!!

Posted

bwris na m ftia3eis ena command p na leei posa on exi o server?esto gia c6 kai 8a try na t adapt..

mporeis na xrhsimopoihseis k ayto:

http://maxcheaters.com/forum/index.php?topic=210039

einai to idio pragma apla me auto to code s bgazei ena para8uro me to posa atoma einai online.

Fusika, mporei na ginei k me TextBuilder class, anyway.

(to code sto link einai gia freya, mporei na ginei adapt se IL)

Posted

καλησπέρα σε όλους,

 

Θα ήθελα έναν κώδικα (με κώδικα μου είπαν πως θα δουλέψει μόνο)

Έτσι ώστε ήττε με τα Enchant Scrolls που έχουμε ήδη ήττε να φτιάξουμε ένα νέο Scroll (δεν υπάρχει θέμα) να μπορεί να γίνετε Enchant από ένα συγκεκριμένο Enchant Level σε ένα άλλο αλλά με πιθανότητες που θα μπορώ να ορίσω εγώ από τα configs (για περισσότερες δοκιμές κυρίως) 

 

Ευχαριστώ εκ των πρωτέρων!!!

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.

Posted

sta configs exei ena arxeio p legete enchant...

 

Νομίζω είσαι εκτός θέματος... Μιλάμε για νέο Scroll όχι για τα Normal,blessed και Cristall :)

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!!! ty :D

Posted

yparxei kapios kwdikas gia na kanw ola ta mobs ston server na petane apo 20-100 adena

kai oxi na vazw sto droplist ena ena ta mobs?

Είναι sql query. Ψάξε English Section, τα έχει.
Guest
This topic is now closed to further replies.



  • Posts

    • if is pvp server change type to raidboss 🙂 and check stats from xml
    • Hello community, I’d like to share an improved version of the L2smr editor for StaticMeshes, focused on solving some workflow issues I found in the original tool. CreditsThis project is based on the original acmi/L2smr repository https://github.com/acmi/L2smr , created by acmi, and I updated it to Java 17 with some additional features. Issues in the original L2smr Too many windows: each StaticMesh opened in a new one → cluttered desktop. No search: navigating through hundreds of StaticMeshActors was slow and tedious. Added improvements Flexible views Single Window Mode: reuse one window instead of opening new ones. Multiple Window Mode: still available for those who prefer having several views open simultaneously. Real-time Search Field Instant filtering as you type. Case-insensitive search. “Reset” button to quickly clear the search.     Installation and Execution: Clone the repository: git clone https://github.com/Jeep12/l2smr.git cd l2smr        2.Build the project:   ./gradlew build        3. Run the application:     ./run.bat      Or simply double-click on run.bat.     The run.bat script automatically extracts JavaFX from the included javafx-17.0.2.zip file in the javafx/ directory, sets up the required libraries, and launches the application. You don’t    need to install JavaFX separately.      Repository: https://github.com/Jeep12/l2smr     Maybe these features already existed in another version or fork, and they might not be very big changes, but since I didn’t know about them and found them necessary, I decided to          implement them myself and wanted to share them.      
    • no....Mobius L2Clientdat and L2FileEditor can do that...but still cant works with TaiWanese Grand Crusade ,especially Armorgrp.dat and Armorgrp-Classic.dat
    • L2GOLD - Halcyon x45 Project Classic Interlude   C6 - Classic Interlude: Protocol 110     Is a complete copy of L2Gold in Classic [110 Protocol] with L2OFF files.   Fully L2Gold Features - Daily Quest - Daily Mining Quest - Ancient Weapons -Refine System  -Rebirth System -Fully configurable everything you want -Gold stats/Gold skills/Gold items working 100% -Zones 100% alike  -Unique donations system (npc or voicedcommand .donate) - On Enchant success announcement ( if +16 for weapon, 8 for armor , 7 for jewel) - Announce of Castle Lord - Announce of Hero  - Olympiad Max A grade - Olympiad Buffs on matches changed to Gold Alike - Working fully Dreadbane   - AI Mods: Static Time for RB   Automated Events: Squash Watermelon RB Event High rate  (those are fully automated)   Server is running a Test Server: Online to anyone can test it.   Game Client: https://www.mediafire.com/file/1d8xe18rvgi04lx/L2_Classic_Interlude_Client_V2.rar/file   Game Patch: https://www.mediafire.com/file/3z4b8ezy93h2z1g/L2Halcyon+Gold+Patch.rar/file   GM Accounts: ID: root pass root [ accounts go from  root1 until root20 ]   Regular Accounts Registrations: http://84.247.164.27/?page=register   Some Screenshots: https://imgur.com/a/o7TxzTN   Contact me here via PM (only serious buyers).    Price of the product: Fully Server Pack + Source ( 250 Euros )
    • ✨ A Service with Vibes  Vibe SMS ✨   Vibe SMS is not just a platform for working with numbers. We’ve built it to be simple, convenient, and stress-free, so your tasks get done without hassle. We value real communication: we listen to your ideas, provide support, and make sure everyone feels calm and confident. With us, you’re not just a client  you’re part of a space built on trust, support, and a human touch. Vibe SMS is a place where people matter and where we create an atmosphere you’ll want to stay in.   Website link — https://vibe-sms.net/ Our Telegram channel — https://t.me/vibe_sms
  • 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