Jump to content

Recommended Posts

Posted

I dont know if this mod is shared,i think is NOT :D

This was implement by me and mvaios since 3580 Revision.

With a a few changes is ready for the last revisions:)

 

How it works. It checks if an armor set has a spesific enchant value. If so the an abnormal effect take place . In this case Vitality Effect. The armors set are included to this mod are Dynasty Sets only.If you need other sets feel free to add them . Good mod for High rate servers. You can change the enchant level at your needs. :D

 

 

 

### Eclipse Workspace Patch 1.0
#P Gameserver
Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java	(revision 4519)
+++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -59,6 +64,7 @@
import com.l2jserver.gameserver.communitybbs.Manager.RegionBBSManager;
import com.l2jserver.gameserver.datatables.AccessLevels;
import com.l2jserver.gameserver.datatables.AdminCommandAccessRights;
+import com.l2jserver.gameserver.datatables.ArmorSetsTable; //added Armor effect by Annu and mvaios
import com.l2jserver.gameserver.datatables.CharNameTable;
import com.l2jserver.gameserver.datatables.CharTemplateTable;
import com.l2jserver.gameserver.datatables.ClanTable;
@@ -379,6 +393,7 @@
		}
	}

+	private int abnormal = AbnormalEffect.VITALITY.getMask(); //added Armor effect by Annu and mvaios
	private L2GameClient _client;

	private String _accountName;
@@ -7458,7 +7482,169 @@
		checkPetInvItems();
	}
+	
+	// //added Armor effect by Annu and mvaios
+	public void checkForVitalityEffect()
+	{
+		
+		boolean getVitalityEffect = false;
+		try
+		{
+			if (
+					ArmorSetsTable.getInstance().getSet(9417).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9418).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9419).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9420).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9426).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9427).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(10126).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(10127).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9433).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9434).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9435).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9436).isEnchanted(6, this)
+				)
+			{
+				getVitalityEffect = true;
+			}
+		}
+		catch (Exception e)
+		{
+			_log.log(Level.WARNING,"Armor exception message: " + e.getMessage(),e);
+		
+		}
+		
+		if (getVitalityEffect)
+		{
+			startAbnormalEffect(abnormal);
+		}
+		else
+		{
+			stopAbnormalEffect(abnormal);
+		}
+	}
+		
+		// end added
+		
+	
+	/**
	 * Restore recipe book data for this L2PcInstance.
	 */
	private void restoreRecipeBook(boolean loadCommon)
Index: java/com/l2jserver/gameserver/model/L2ArmorSet.java
===================================================================
--- java/com/l2jserver/gameserver/model/L2ArmorSet.java	(revision 4519)
+++ java/com/l2jserver/gameserver/model/L2ArmorSet.java	(working copy)
@@ -195,4 +195,35 @@

		return true;
	}
+	
+		
+	//added Armor effect by Annu and mvaios
+	public boolean isEnchanted(int enchantLevel, L2PcInstance player)
+	{
+		// Player don't have full set
+		if (!containAll(player))
+			return false;
+		
+		Inventory inv = player.getInventory();
+		
+		L2ItemInstance chestItem = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
+		L2ItemInstance legsItem = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
+		L2ItemInstance headItem = inv.getPaperdollItem(Inventory.PAPERDOLL_HEAD);
+		L2ItemInstance glovesItem = inv.getPaperdollItem(Inventory.PAPERDOLL_GLOVES);
+		L2ItemInstance feetItem = inv.getPaperdollItem(Inventory.PAPERDOLL_FEET);
+	
+		if (chestItem == null || chestItem.getEnchantLevel() < enchantLevel)
+			return false;
+				if (_legs != 0 && (legsItem == null || legsItem.getEnchantLevel() < enchantLevel))
+					return false;
+				if (_gloves != 0 && (glovesItem == null || glovesItem.getEnchantLevel() < enchantLevel))
+					return false;
+				if (_head != 0 && (headItem == null || headItem.getEnchantLevel() < enchantLevel))
+					return false;
+				if (_feet != 0 && (feetItem == null || feetItem.getEnchantLevel() < enchantLevel))
+					return false;
+	
+			return true;
+		}
+		//end added
}
Index: java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java
===================================================================
--- java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java	(revision 4519)
+++ java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java	(working copy)
@@ -537,6 +538,7 @@
								_log.warning("Inventory.ArmorSetListener: Incorrect skill: "+armorSet.getEnchant6skillId()+".");
						}
					}
+					player.checkForVitalityEffect();//added Armor effect by Annu and mvaios
				}
			}
			else if (armorSet.containShield(item.getItemId()))
@@ -615,6 +617,9 @@

			if (remove)
			{
+				////added Armor effect by Annu and mvaios
+				player.checkForVitalityEffect();
+				//added
				if (skills != null)
				{
					for (String skillInfo : skills)

 

 

Credits to me and mvaios.

Posted

Really Good Share but need to be tested...!

 

Very smart from u...! Thank you...! seems like Metin ^^

 

 

anyway Thanks again and keep sharing shares like this ^^

 

 

Also edit where u had test thit and it works(l2j =? chronicle =? ) + gredits ^^

Posted

Really Good Share but need to be tested...!

 

Very smart from u...! Thank you...! seems like Metin ^^

 

 

anyway Thanks again and keep sharing shares like this ^^

 

ps: 1 question : it will need al parts to be on a exact value enhance or it will work and with 1 parts of armor?

 

Also edit where u had test thit and it works(l2j =? chronicle =? ) + gredits ^^

 

No you do not need to add all parts. Only the chest id which can be found in database table armorsets.!!

This mod works in Freya Chronicle for l2j .It was added since we where using Final Gracia Chronicle. I just changed it to Freya.

Many of you seen thsi mod in some private server. The only problem is that those servers do not share. They only take things.SO do not try to post here anything that has to do with those servers.

 

 

 

It works 100%

Posted

No you do not need to add all parts. Only the chest id which can be found in database table armorsets.!!

This mod works in Freya Chronicle for l2j .

Many of you seen thsi mod in some private server. The only problem is that those servers do not share. They only take things.SO do not try to post here anything that has to do with those servers.

 

Credits to me and mvaios.

 

 

 

It works 100%

 

 

Ok thank you so much i will give it a try ...!

 

""Better Edit credits on main Topic ^^ ""

 

Keep Sharing....

  • 3 weeks later...
Posted

I changed the id's of items to Elegia did not work.

How to work in Set Elegia and not set Dynasty?????

 

Thanks!

change those:

+					ArmorSetsTable.getInstance().getSet(9417).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9418).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9419).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9420).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9426).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9427).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(10126).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(10127).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9433).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9434).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9435).isEnchanted(6, this)
+					|| ArmorSetsTable.getInstance().getSet(9436).isEnchanted(6, this)

Posted

There should be a small config for this, for changing the enchant value easily. Its great but need some work to make it 100% usable...

  • 2 months later...
  • 1 month later...
Guest
This topic is now closed to further replies.


  • Posts

    • State-of-the-art сryptocurrency mixer 💰 Our service does not "mix transactions," but immediately issues CLEAN cryptocurrency with low AML. The principle is simple: you give us your coins, we return our clean coins to you, without any traces or unnecessary procedures. ✔ Complete confidentiality. No "pseudo-mixers" — at the exit, a transaction without traces. ✔ Flexible commission. From 2% to 6%, depending on the destination and amount. ✔ Popular currencies: LTC, BTC, ETH, USDT, BNB, XRP, XMR, TRX. Others available upon request.   ✔ Ready accounts ✔   Business accounts ✅ Account Qonto Business 🗂️ 2 in stock ✅ Account Finom Business 🗂️ 1 in stock ✅ Account PayPal Business 🗂️ 1 in stock ✅ Account Wallester Business 🗂️ 1 in stock ✅ Account Stripe Business 🗂️ 1 in stock ✅ Account Wittix Business 🗂️ 2 in stock ✅ Account Ebay com Seller US|EU, new 🗂️ 2 in stock ✅ Account Blackcatcard Business 🗂️ 2 in stock ✅ Account Mistertango Business 🗂️ 1 in stock ✅ Account Payset Business 🗂️ 1 in stock ✅ Account Wise Business 🗂️ 1 in stock ✅ Account Revolut Business 🗂️ 2 in stock   Payments-system / Crypto-Exchange ✅ Account AlchemyPay 🗂️ 1 in stock ✅ Account Astropay 🗂️ 1 in stock ✅ Account 4x4 io 🗂️ 1 in stock ✅ Account Bunq 🗂️ 2 in stock ✅ Account Bilderlings 🗂️ 1 in stock ✅ Account BitPay 🗂️ 1 in stock ✅ Account Bitinvestor / swapped 🗂️ 1 in stock ✅ Account Bitmex 🗂️ 1 in stock ✅ Account Bitsa 🗂️ 3 in stock ✅ Account Blackcatcard 🗂️ 1 in stock ✅ Account Btcdirect 🗂️ 1 in stock ✅ Account BBVA 🗂️ 1 in stock ✅ Account Binance 🗂️ 2 in stock ✅ Account Bitget 🗂️ 1 in stock ✅ Account Blackwell Global 🗂️ 1 in stock ✅ Account Brighty app 🗂️ 4 in stock ✅ Account Bankera 🗂️ 1 in stock ✅ Account Coinbase card 🗂️ 1 in stock ✅ Account Coinfinity 🗂️ 1 in stock ✅ Account Capitalist 🗂️ 2 in stock ✅ Account CoinW 🗂️ 1 in stock ✅ Account Coinmetro 🗂️ 1 in stock ✅ Account Coinpayments 🗂️ 1 in stock ✅ Account Cryptomus 🗂️ 1 in stock ✅ Account Curve 🗂️ 3 in stock ✅ Account Cryptopay 🗂️ 1 in stock ✅ Account Egera 🗂️ 1 in stock ✅ Account e PN 🗂️ 1 in stock ✅ Account FasterPay 🗂️ 1 in stock ✅ Account Finci 🗂️ 1 in stock ✅ Account fillit eu 🗂️ 1 in stock ✅ Account Gate 🗂️ 3 in stock ✅ Account Grey 🗂️ 1 in stock ✅ Account HTX (Huobi) 🗂️ 1 in stock ✅ Account IN1 🗂️ 1 in stock ✅ Account Imagenpay 🗂️ 1 in stock ✅ Account ICard 🗂️ 1 in stock ✅ Account IPRoyal 🗂️ 1 in stock ✅ Account Kraken 🗂️ 3 in stock ✅ Account Kucoin 🗂️ 1 in stock ✅ Account Kauri Finance 🗂️ 1 in stock ✅ Account Kriptomat 🗂️ 1 in stock ✅ Account Luno 🗂️ 1 in stock ✅ Account LuxonPay 🗂️ 1 in stock ✅ Account MEXC 🗂️ 1 in stock ✅ Account MyBrocard 🗂️ 1 in stock ✅ Account Moonpay 🗂️ 2 in stock ✅ Account Monzo 🗂️ 1 in stock ✅ Account moneyjar world 🗂️ 1 in stock ✅ Account Naga Pay 🗂️ 1 in stock ✅ Account Nash 🗂️ 1 in stock ✅ Account Nebeus 🗂️ 1 in stock ✅ Account Nexo 🗂️ 1 in stock ✅ Account Nearpay 🗂️ 2 in stock ✅ Account Neteller 🗂️ 1 in stock ✅ Account N26 🗂️ 1 in stock ✅ Account OKX 🗂️ 1 in stock ✅ Account PayDo 🗂️ 1 in stock ✅ Account Paypal 🗂️ 3 in stock ✅ Account Paysera 🗂️ 1 in stock ✅ Account PST 🗂️ 1 in stock ✅ Account Paybis 🗂️ 1 in stock ✅ Account Payoneer 🗂️ 1 in stock ✅ Account Paysafecard 🗂️ 2 in stock ✅ Account Paytend 🗂️ 1 in stock ✅ Account Quppy 🗂️ 1 in stock ✅ Account RedotPay 🗂️ 1 in stock ✅ Account Ramp 🗂️ 1 in stock ✅ Account Revolut 🗂️ 1 in stock ✅ Account Santander 🗂️ 1 in stock ✅ Account Spendl 🗂️ 1 in stock ✅ Account Skrill 🗂️ 1 in stock ✅ Account Swapin 🗂️ 3 in stock ✅ Account Trustee Plus 🗂️ 1 in stock ✅ Account Valora 🗂️ 1 in stock ✅ Account Volet 🗂️ 1 in stock ✅ Account W1TTY 🗂️ 1 in stock ✅ Account Wallet Telegram 🗂️ 1 in stock ✅ Account Weststein 🗂️ 1 in stock ✅ Account Wirex 🗂️ 1 in stock ✅ Account Wise 🗂️ 4 in stock ✅ Account Whitebit 🗂️ 1 in stock ✅ Account Wittix 🗂️ 1 in stock ✅ Account XGo 🗂️ 1 in stock
    • Boss is not working on HF, because npcgrt is formatted for Interluder
    • Good luck with your project!
    • Hola Fissban , che queria preguntarte algo estoy tratando de hacer que el testserver ande pro que cuando logeo y voy a elejir el servidor no aparece y he estado con la ia incluso buscando que puede ser pero no e logrado decifrarlo me darias una mano o alguien ?  
    • The Return of L2Elixir – A Legacy Reborn in 2025 Read more features: https://l2elixir.org/features/ It’s time to relive the magic. Many of you remember L2Elixir, first launched in 2008 – a server that brought players together, created friendships, rivalries, and unforgettable memories. For two+ incredible years, until its closure in 2010, Elixir was more than just a server… it was home. In 2018, a fake project borrowed the name and damaged that legacy, but the true memories of L2Elixir never died. Today, in 2025, we are proud to announce that a new dedicated team has taken up the mantle to bring L2Elixir back to life – with respect for the past and a fresh vision for the future.   What to Expect We’re not here to be “just another server.” Our mission is to bring back nostalgia with innovation, offering a unique progression experience: Interlude-Like start, capturing that classic old-school feeling. A natural evolution into Gracia Final. Followed by Gracia Epilogue, keeping the journey alive without losing balance. This is not a copy-paste server – it’s a carefully crafted world designed to honor the spirit of Lineage II while introducing fresh ideas to keep the gameplay alive and rewarding. Why L2Elixir? A balanced environment where community comes first. A project built with passion, not profit. A server that values longevity, fairness, and nostalgia.   📅 Launch Date & Details Closed Beta: Online. Open Beta & Rewards: November 15 & 21:00 UTC +2 Launch: November 28 & 21:00 UTC +2   🔗 Join the Community Be part of history once again. Follow our Discord, join the discussion, and prepare to step back into the world where legends were made.   https://l2elixir.org/ https://discord.gg/5ydPHvhbxs L2Elixir 2025 – Honoring the Past. Building the Future.
  • 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