First of all, location of
Code: Select all
private int _count = 0; private L2PcInstance _player = null;
is wrong. Them should be members of
MMWorld class, not
MithrilMine class, because them are
certain instance, but
not global script variables.
Second, why you're ignoring spawnGroup() method and prefers to define
MOB_SPAWNS in script?
Third (but I can mistake here, core is changing): did you test situation, when Kegor kills the monster? I think, onKill() isn't called here, so you should to find another way to track monster deaths. So
Adry_85 wrote:Yes, is invalid, surely that part could be written better, check every 3 seconds if player kills mithril milliped that Kegor spawn

actually, can be easily tracked in onKill, not by timer, but situation when Kegor kills mithril milliped that Kegor spawn, requires timer.