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..
Question
KONO
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 KONO3 answers to this question
Recommended Posts