Jump to content

Recommended Posts

Posted

java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

+import com.l2jserver.gameserver.datatables.ArmorSetsTable;
import com.l2jserver.gameserver.datatables.ClanTable;

@@ -7458,7 +7482,169 @@

 /** Special hero aura values */
+	 private boolean isHero = false;

+	 public void setHeroAura (boolean heroAura)
+	 {
+		 isHero = heroAura;
+	 }



@@ -7458,7 +7482,169 @@
		checkPetInvItems();
	}
+	
+	public void checkForHeroAura()
+	{
+		
+		boolean getHeroAura = false;
+		try
+		{
+			if (
+					ArmorSetsTable.getInstance().getSet(Armor id).isEnchanted(4, this)
+					|| ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this)
+					|| ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this)
+					|| ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this)
+					|| ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this)
+					|| ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this)
+					|| ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this)
+					|| ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this)
+					|| ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this)
+					|| ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this)
+					|| ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this)
+					|| ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this)
+				)
+			{
+				getHeroAura = true;
+			}
+		}
+		catch (Exception e)
+		{
+			_log.log(Level.WARNING,"Armor exception message: " + e.getMessage(),e);
+		
+		}
+		
+		if (getHeroAura)
+		{
+			setHeroAura(true);
+		}
+		else
+		{
+			setHeroAura(false);
+		}
+	}
+		
+		
+	
+	/**
	 * Restore recipe book data for this L2PcInstance.
	 */
	private void restoreRecipeBook(boolean loadCommon)


java/com/l2jserver/gameserver/model/L2ArmorSet.java

		return true;
	}
+	
+		
+	public boolean isEnchanted(int enchantLevel, L2PcInstance player)
+	{
+		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;
+		}
}

java/com/l2jserver/gameserver/model/itemcontainer/Inventory.jav
								_log.warning("Inventory.ArmorSetListener: Incorrect skill: "+armorSet.getEnchant6skillId()+".");
						}
					}
+					player.checkForHeroAura();
				}
			}
			else if (armorSet.containShield(item.getItemId()))

			if (remove)
			{
+				player.checkForHeroAura();
				if (skills != null)
				{
					for (String skillInfo : skills)

hello pedes. ekane ena code pou otan pas olo to set +4 8a exeis hero aura. mporeite na diale3ete se pia armor 8a ginete auta... px an exete balei mia custom armor mporeite na parete to id tis kai na balete na ginete se auth... pws???

|| ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) opou armorid-> bazete to id tis armor... kai opou -> isenchanted(4 bazete sta posa 8elete na dinei heroaura. prepei na exete ola ta set +x.

 

credits To Me AbSoLuTePoWeR.

Posted

+ public void setHeroAura (boolean heroAura)

+ {

+ isHero = heroAura;

+ return;

+ }

 

den xreiazesai to return.

Posted

Do not quite understand, can you explain how it works?

you will be able to use this effect when your set is +4...(you will get Hero Aura)  (you can change it --> || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) where armorid you can put your set...) where isEnchanted(4, this) <- you can change the enchant rate.
Posted

you will be able to use this effect when your set is +4...(you will get Hero Aura)  (you can change it --> || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) where armorid you can put your set...) where isEnchanted(4, this) <- you can change the enchant rate.

 

"Armorid" is the chest of the armorset and that "4" is the value of enchant that the whole armor must be (helm, chest, legs, gloves, boots) to get hero aura.

(You will need to add only the chest of the armorset and now the whole armor one-by-one items...)

  • 1 year later...
  • 5 weeks later...
  • 4 months later...

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

    • We are not back on 2005, life in our days is harder than before, in complection with other things yes, L2 has not the same look.
    • 🌍 https://l2origins.org/ 🛡️ LINEAGE II ORIGINS — SEASON 1 🛡️ 🌑 High Five Classic | True Old-School Experience 🌑 ⚠️ Opening on March 6th at 16:00 Welcome back to the origins of Lineage II. ⚔️ ABOUT THE SERVER Lineage2 Origins is built for players who miss the true retail feeling. Classic progression, real challenges, fair competition — enhanced only with carefully selected QoL features, never breaking the original gameplay. 🌿 PHASED GEAR PROGRESSION 🟢 Month 1: Vesper max 🟢 Month 2: Vorpal unlocked 🟢 Month 3+: Top-grade & Elegia released 🚫 NO AUTO-FARM ✔️ External auto-clicker allowed (1 per client, download page only) ❌ Bots & illegal automation forbidden 🛡️ Strong anti-bot + captcha system ⚠️ AFK players will be punished — stay active or logout 📊 RATES & CORE SETTINGS 🔹 Adena: x5 🔹 Drop / Spoil: x5 🔹 Skill EXP: x15 🔹 Max Windows: 2 per PC 🔹 Subclass: Lv 85 (no quest required) 🔹 Party Level Diff: 30 (55–85) 🔹 No custom items (armors / weapons / jewelry) 🔥 FEATURES ✨ Global & Raid Teleport ✨ NPC Buffer (34 buffs) ✨ Auto Events & PvP Zones ✨ Ranking & Clan Progression ✨ GM Shop & Premium System ✨ All-In-One Community Board ✨ Party & Solo Instances ✨ Siege & Territory War Rewards ✨ RaidBoss Kill Rewards ✨ Lucky Creature Event ✨ Daily Login Rewards ✨ Advanced DDoS Protection & Backups ⚔️ ENCHANTMENTS 🔸 Safe: +3 🔸 Max: +12 (Month 2: +14 | Month 3: +16) 🔸 Blessed: 50% (Premium 65%) 🔸 Normal: 45% (Premium 60%) 🏟️ OLYMPIAD 🔹 Max Enchant: +6 🔹 Start Players: 4 🔹 Period: 1st & 15th 🏰 SIEGE & TW 🔹 Siege Time: 16:00 & 20:00 🔹 Territory War: 20:00 🔹 Max Wards: 3 per Castle 🌌 Lineage2 Origins Fair. Competitive. Nostalgic. A true return to the origins of Lineage II.
    • Bastante confiable, ya trabaje en varios proyectos con el y la verdad te da confianza que hoy en dia poca gente hay asi lo  recomiendo 100%  Gracias por todo amigo ! seguiremos trabajando juntos segurisimamente! 
    • Arcana Mace Acumen +6 : 200 Euro    Leave a message here or better on Discord : grandmaster1991   Discord : GrandMaster#1689  
  • 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..