Jump to content

Recommended Posts

Posted

This share allows you to config a weapon to hero, its simple you have a weapon equipped and with X enchant and you are hero.

Only in 1 enchant lvl so GM's dont have problem with +++++++++++++ weapons ;D

Index: /HighRate/L2_GameServer/java/config/intrepid.properties
===================================================================
--- /HighRate/L2_GameServer/java/config/intrepid.properties (revision 132)
+++ /HighRate/L2_GameServer/java/config/intrepid.properties (revision 146)
@@ -92,2 +92,8 @@
# Max Chat lenght(default 100)
MaxChatLenght = 100
+
+# Special Enchant Hero
+# If set to true and your weapon enchant = EnchantLvl
+# You are awarded with with hero status BUT only when the weapon equipped!
+EnchantHero = False
+EnchantLvl = 0
Index: /HighRate/L2_GameServer/java/net/sf/l2j/Config.java
===================================================================
--- /HighRate/L2_GameServer/java/net/sf/l2j/Config.java (revision 136)
+++ /HighRate/L2_GameServer/java/net/sf/l2j/Config.java (revision 146)
@@ -680,4 +680,6 @@
    public static long          L2JMOD_PK_PUNISHMENT_PERIOD;
    public static int		MAX_CHAT_LENGTH;
+    public static int		SPECIAL_ENCHANT_HERO;
+    public static boolean	ALLOW_SPECIAL_ENCHANT_HERO;

    /** ************************************************** **/
@@ -1624,4 +1626,6 @@
	                L2JMOD_PK_PUNISHMENT_PERIOD = Long.parseLong(intrepidSettings.getProperty("PKPunishmentPeriod", "3600"));
	                MAX_CHAT_LENGTH = Integer.parseInt(intrepidSettings.getProperty("MaxChatLenght", "100"));
+	                SPECIAL_ENCHANT_HERO = Integer.parseInt(intrepidSettings.getProperty("EnchantLvl", "0"));
+	                ALLOW_SPECIAL_ENCHANT_HERO = Boolean.valueOf(intrepidSettings.getProperty("EnchantHero", "False"));
	            }
	            catch (Exception e)
Index: HighRateCore/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java
===================================================================
--- HighRateCore/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java	(revision 148)
+++HighRateCore/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java	(working copy)
@@ -215,6 +215,12 @@
             
			if (item.isEquipable())
			{
+	            if (item.getItem().getItemGrade() == L2Item.CRYSTAL_S80 && item.getItem().getType2() == L2Item.TYPE2_WEAPON && Config.ALLOW_SPECIAL_ENCHANT_HERO && item.getEnchantLevel() == Config.SPECIAL_ENCHANT_HERO)
+	            {
+	            	activeChar.setHero(true);
+	            	activeChar.sendMessage("Congratulations"+ activeChar.getName() +"you are special enchant hero now!");
+	            	activeChar.broadcastUserInfo();
+	            }		
				// No unequipping/equipping while the player is in special conditions
				if (activeChar.isStunned() || activeChar.isSleeping() || activeChar.isParalyzed()
						|| activeChar.isAlikeDead())

 

Just a little bonus:

If you want item grade check use this:

item.getItem().getItemGrade() > L2Item.CRYSTAL_S 

that means the weapon needs to be S80 grade :)

 

The diff copyed from my servers SVN so you need to add itt manually its only 2min :)

Credits to me!

Posted

# Enchant hero weapons? (default: false)

HeroWeaponsCanBeEnchanted = false

 

And that,, not the same thing?

 

LoL no its not:D

Listen my share is:

You have a weapon doesnt matter which one you make it to X enchanted and you are awarded with hero

Posted

The diff copyed from my servers SVN so you need to add itt manually its only 2min :)

 

lol at this

 

/HighRate/L2_GameServer/java/config/intrepid.properties

 

;) Is from him svn ... and he recommended to use it manual ;P

Posted

lol at this

 

/HighRate/L2_GameServer/java/config/intrepid.properties

 

Yes its from my SVN and well my ego gone to far:DDD

  • 9 months later...
Posted

;) Is from him svn ... and he recommended to use it manual ;P

Patches from another svn must be placed manually, you can set up you own svn but still patches from Intrepid's svn won't go to yours.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • You dont get it... do you now. - read again.
    • What happened to them? Why they are disabled.. Just noticed that they are gone    @Maxtor @Celestine
    • If you want to make your thread stand out a bit more, adding quick proof pics or a small stock update usually helps buyers feel safer. I’ve had smoother chats with traders after doing that. On a side note, when I’m taking a break from trading, I mess around with the security puzzles in ModsCraft, which has been a fun way to clear my head between deals.
    • ━━━━━━━━━━━━━━━━━━━━━━ L2-SCRIPTS UPDATE ━━━━━━━━━━━━━━━━━━━━━━ Dear MaxCheaters users, We have updated the prices in the first post. Specially for the MaxCheaters community, we significantly reduced prices on many of our old developments, archived projects and source packs. Most of our older Lineage 2 sources are now much more affordable than before, including many Classic and Essence projects. This is a great opportunity for smaller teams, startup servers and developers who always wanted to work with our projects but previously could not afford them. ━━━━━━━━━━━━━━━━━━━━━━ For the past years we were mostly absent from the public scene because our team was working privately on large projects and contract-based development. During this time we accumulated a huge amount of private materials, systems, source codes, client modifications, website solutions and infrastructure developments that were never publicly released. Now, according to completed agreements and partnerships, we finally have the ability to publish and offer part of these materials as our private services and developments. In the upcoming weeks we will also publish a list of our works and services from the last 5 years of private development. ━━━━━━━━━━━━━━━━━━━━━━ Upcoming publications will include: • Private server development • Custom gameplay systems • Client modifications • Websites & ACP systems • Protection solutions • Infrastructure solutions • MMO / Web projects ━━━━━━━━━━━━━━━━━━━━━━ Thank you to everyone who stayed with us all these years.   Telegram:  @L2scripts Websites:  L2-scripts.com    L2-scripts.ru    Mmore.dev Sguard site:  Sguard   Best Regards! ━━━━━━━━━━━━━━━━━━━━━━
    • Tightening the timer to fifteen minutes sounds spot on, especially for players who don’t want to sit around waiting. I’ve had a few hosting hiccups on past projects, and sorting out configs felt a lot like the headaches I solved after dealing with armadiofashion.com for a separate issue where a server kept failing to connect. Little tweaks like that usually smooth things out fast.
  • 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..