int npdId = getNpcId();
switch (npdId)
{
case 32919:
{
NpcInstance ni = getReflection().addSpawnWithoutRespawn(little_simpleAttackMobs[Rnd.get(little_simpleAttackMobs.length)], getLoc(), 150);
ni.getAI().Attack(player, true, false);
this.decayMe();
this.doDie(player);
break;
}
case 32920:
{
for (int i = 0; i < 3; i++)
{
NpcInstance ni = getReflection().addSpawnWithoutRespawn(big_simpleAttackMobs[Rnd.get(big_simpleAttackMobs.length)], getLoc(), 150);
ni.getAI().Attack(player, true, false);
}
this.decayMe();
this.doDie(player);
break;
}
}
}
else if (command.equalsIgnoreCase("2"))
{
int npdId = getNpcId();
switch (npdId)
{
case 32919:
{
NpcInstance ni = getReflection().addSpawnWithoutRespawn(little_skillAttackMobs[Rnd.get(little_skillAttackMobs.length)], getLoc(), 150);
ni.getAI().Attack(player, true, false);
this.decayMe();
this.doDie(player);
break;
}
case 32920:
{
for (int i = 0; i < 3; i++)
{
NpcInstance ni = getReflection().addSpawnWithoutRespawn(big_skillAttackMobs[Rnd.get(big_skillAttackMobs.length)], getLoc(), 150);
ni.getAI().Attack(player, true, false);
}
this.decayMe();
this.doDie(player);
break;
}
}
}
}
else
{
int npdId = getNpcId();
switch (npdId)
{
case 32919:
{
NpcInstance ni = getReflection().addSpawnWithoutRespawn(little_nightAttackMobs[Rnd.get(little_nightAttackMobs.length)], getLoc(), 150);
ni.getAI().Attack(player, true, false);
this.decayMe();
this.doDie(player);
break;
}
case 32920:
{
for (int i = 0; i < 3; i++)
{
NpcInstance ni = getReflection().addSpawnWithoutRespawn(big_nightAttackMobs[Rnd.get(big_nightAttackMobs.length)], getLoc(), 150);
ni.getAI().Attack(player, true, false);
}
this.doDie(player);
this.decayMe();
break;
}