spawn_captain = true;
}
}
if (spawn_captain && Rnd.chance(50))
{
NpcInstance captain = addSpawnToInstance(KechisCaptain3, new Location(npc.getX() - 60, npc.getY(), npc.getZ(), 32116), 0, world.instanceId);
captain.addStatFunc(new FuncMul(Stats.POWER_ATTACK, 0x30, this, 5));
captain.addStatFunc(new FuncMul(Stats.MAGIC_ATTACK, 0x30, this, 5));
captain.addStatFunc(new FuncMul(Stats.POWER_DEFENCE, 0x30, this, 5));
captain.addStatFunc(new FuncMul(Stats.MAGIC_DEFENCE, 0x30, this, 5));
captain.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, player, Rnd.get(1, 100));
}
if (teleto != null)
{
Party party = player.getParty();
if (party != null)