Jump to content
  • 0

How To Check Mob Id


KONO
 Share

Question

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
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

You got an exemple in your own code quote, for the love of smelly cheese :

if (getId() == AchievementsManager.getInstance().getMobId())
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



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