Jump to content
  • 0

Code For Clan Rep And Fame From Mobs


Question

Posted

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;
	}

1 answer to this question

Recommended Posts

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


×
×
  • 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