for (L2PcInstance _member : _room.getPartyMembers())
{
if (_member == null)
continue;
_member.sendPacket(new PartyMatchDetail(_activeChar, _room));
_member.sendPacket(new SystemMessage(SystemMessageId.PARTY_ROOM_REVISED));
}
}
}
else
{
int _maxid = PartyMatchRoomList.getInstance().getMaxId();
PartyMatchRoom _room = new PartyMatchRoom(_maxid, _roomtitle, _loot, _lvlmin, _lvlmax, _membersmax, _activeChar);
_log.info("PartyMatchRoom #" + _maxid + " created by " + _activeChar.getName());
// Remove from waiting list, and add to current room
PartyMatchWaitingList.getInstance().removePlayer(_activeChar);
PartyMatchRoomList.getInstance().addPartyMatchRoom(_maxid, _room);
if (_activeChar.isInParty())
{
for (L2PcInstance ptmember : _activeChar.getParty().getPartyMembers())
{
if (ptmember == null)
continue;
if (ptmember == _activeChar)
continue;
ptmember.setPartyRoom(_maxid);
_room.addMember(ptmember);
}
}
_activeChar.sendPacket(new PartyMatchDetail(_activeChar, _room));
_activeChar.sendPacket(new ExPartyRoomMember(_activeChar, _room, 1));
_activeChar.sendPacket(new SystemMessage(SystemMessageId.PARTY_ROOM_CREATED));
_activeChar.setPartyRoom(_maxid);