Jump to content
  • 0

How To Check Mob Id


Question

Posted (edited)

Hello

 

Help me please. 

I want check count Monsterkill from Id

 

me Add to file L2MonsterInstance.java 

@Override
public boolean doDie(L2Character killer)
{
if (!super.doDie(killer))
{
return false;
}


// TODO: Find Better way! (Achievement function)
if ((killer != null) && killer.isPlayer())
{
if (getId() == AchievementsManager.getInstance().getMobId())
{
((L2PcInstance) killer).setKilledSpecificMob(true);
}
}


if (_returnToSpawnTask != null)
{
_returnToSpawnTask.cancel(true);
}


if (_maintenanceTask != null)
{
_maintenanceTask.cancel(false); // doesn't do it?
_maintenanceTask = null;
}


+if (killer instanceof L2PcInstance)
+{
+ L2PcInstance player = (L2PcInstance) killer;
+ if( How to check MobId) ////////////// Help me pls.
+ {
+ player.getCountersMob().onMobKill();
+ }

}

return true;
}

How to check id mob

 

if ( How to check id mob)       <<<<<<<<<<< Help me pls.

 {
 player.getCountersMob().onMobKill();
 }

 

thank. all member

 

Edited by KONO

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...