*/
public void say(int i)
{
Collection<L2PcInstance> knownPlayers = getKnownList().getKnownPlayers().values();
CreatureSay sm;
PlaySound ps;
switch(i)
{
case 10:
if(_cycle == 1)
{
sm =new CreatureSay(0, Say2.SHOUT,_t1.npc1, _t1.sysmess10_1);
}
else
{
sm =new CreatureSay(0, Say2.SHOUT,_t2.npc1, _t2.sysmess10_1);
}
ps = new PlaySound(0,"itemsound.ship_arrival_departure",1,getObjectId(),getX(),getY(),getZ());
if (knownPlayers == null || knownPlayers.isEmpty())
return;
for (L2PcInstance player : knownPlayers)
{
player.sendPacket(sm);
player.sendPacket(ps);
}
break;
case 5:
if(_cycle == 1)
{
sm =new CreatureSay(0, Say2.SHOUT,_t1.npc1, _t1.sysmess5_1);
}
else
{
sm =new CreatureSay(0, Say2.SHOUT,_t2.npc1, _t2.sysmess5_1);
}
ps = new PlaySound(0,"itemsound.ship_5min",1,getObjectId(),getX(),getY(),getZ());
if (knownPlayers == null || knownPlayers.isEmpty())
return;
for (L2PcInstance player : knownPlayers)
{
player.sendPacket(sm);
player.sendPacket(ps);
}
break;
case 1:
if(_cycle == 1)
{
sm =new CreatureSay(0, Say2.SHOUT,_t1.npc1, _t1.sysmess1_1);
}
else
{
sm =new CreatureSay(0, Say2.SHOUT,_t2.npc1, _t2.sysmess1_1);
}
ps = new PlaySound(0,"itemsound.ship_1min",1,getObjectId(),getX(),getY(),getZ());
if (knownPlayers == null || knownPlayers.isEmpty())
return;
for (L2PcInstance player : knownPlayers)
{
player.sendPacket(sm);
player.sendPacket(ps);
}
break;
case 0:
if(_cycle == 1)
{
sm =new CreatureSay(0, Say2.SHOUT,_t1.npc1, _t1.sysmess0_1);
}
else
{
sm =new CreatureSay(0, Say2.SHOUT,_t2.npc1, _t2.sysmess0_1);
}
if (knownPlayers == null || knownPlayers.isEmpty())
return;
for (L2PcInstance player : knownPlayers)
{
player.sendPacket(sm);
//player.sendPacket(ps);
}
break;
case -1:
if(_cycle == 1)
{
sm =new CreatureSay(0, Say2.SHOUT,_t1.npc1, _t1.sysmessb_1);
}
else
{
sm =new CreatureSay(0, Say2.SHOUT,_t2.npc1, _t2.sysmessb_1);
}
ps = new PlaySound(0,"itemsound.ship_arrival_departure",1,getObjectId(),getX(),getY(),getZ());
for (L2PcInstance player : knownPlayers)
{
player.sendPacket(sm);