public void monsterKilled(int typ, int num, int killedby)
    {
        try {
        if (this.monster[num] == typ)
        {
            this.monster[num] = -1;
            this.killcount[killedby]++;
            Packet packet = new Packet();
            packet.addHeader((byte)0x25, (byte)0x2F);
            packet.addPacketHead((byte)0x25, (byte)0x2F);
            packet.addInt(num, 2, false);
            packet.addByte2((byte)0x08, (byte)0x00);
            if (typ == 2)
            {
                packet.addByte4((byte) 0x25, (byte) 0x2F, (byte) 0x08, (byte)0x00);
            }
            else if (typ == 102)
            {
                packet.addByte4((byte) 0x25, (byte) 0x2F, (byte) 0x08, (byte) 0x06);
            } 
            else
                packet.addByte4((byte) 0x01, (byte) 0x00, (byte) 0x0C, (byte) 0x06);



            writeRoomAll(packet);
            
                for (int i = 0; i<sector.Mapmon; i++)
                    if (this.monster[i] != -1)
                    {
                        return;
                    }
            writeRoomMessage("All monster are killed");
            for (int i = 0; i<8; i++)
                if(this.roomsocks[i] != null)
                    writeRoomMessage(this.roomplayer[i]+" : "+this.killcount[i]);

            Thread.sleep(10000);
            for (int i=0; i<8; i++)
                if (this.roomsocks[i] != null)
                    removePlayer(this.roomplayer[i]);

        }
        } catch (Exception e){

        }
    }