Skip to content

Code For Clan Rep And Fame From Mobs

Featured Replies

Hello guys , is this code going to work for the latest L2j hi5 files?

Index: L2J_Server/com/l2jserver/gameserver/model/actor/instance
===================================================================
---L2J_Server/com/l2jserver/gameserver/model/actor/instance/L2MonsterInstance.java
+++ L2J_Server/com/l2jserver/gameserver/model/actor/instance/L2MonsterInstance.java

@@ 159 , 23   162 , 24 @@
	@Override
	public boolean doDie(L2Character killer)
	{
		if (!super.doDie(killer))
			return false;
		
		if (_maintenanceTask != null)
		{
			_maintenanceTask.cancel(false); // doesn't do it?
			_maintenanceTask = null;
		}
+		if (getNpcId() == YourMobId) //Set here which mob ID you want to "drop" fame on die.
+		{
+			L2PcInstance kil = (L2PcInstance) killer;
+			//kil.setFame(kil.getFame() + Fame_Points); // set here how many fame points you want to add in character
+                      kil.getClan().addReputationScore(Clan_points, true) //set on clan_points number of points you want to give
+		}
		return true;
	}

Just go and test it...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.