KONO Posted March 13, 2015 Posted March 13, 2015 (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 March 13, 2015 by KONO
0 Tryskell Posted March 13, 2015 Posted March 13, 2015 You got an exemple in your own code quote, for the love of smelly cheese : if (getId() == AchievementsManager.getInstance().getMobId())
Question
KONO
Hello
Help me please.
I want check count Monsterkill from Id
me Add to file L2MonsterInstance.java
How to check id mob
if ( How to check id mob) <<<<<<<<<<< Help me pls.
{
player.getCountersMob().onMobKill();
}
thank. all member
3 answers to this question
Recommended Posts