else if (status == DORMANT)
{
boolean party_check_success = true;
boolean party_check = Config.K2_KAMA_CHECKPARTY;
L2Party party = player.getParty();
if (party_check) {
if ((!player.isInParty() || !player.getParty().isLeader(player)) || (player.getParty().getMemberCount() < Config.K2_KAMA_PARTY_SIZE)) {
htmltext = "<html><body>You have to be LEADER of "+ Config.K2_KAMA_PARTY_SIZE +" member party.</body></html>";
party_check_success = false;
}
if (player.isInParty() && player.getPvpKills() < Config.K2_KAMA_PVP_NEEDS) {
htmltext = "<html><body>You need to have "+ Config.K2_KAMA_PVP_NEEDS +" Pvps.</body></html>";
party_check_success = false;
}
if (player.isInParty() && player.isKamaloka2Status()) {
htmltext = "<html><body>You can't join now wait some hours.</body></html>";
TimeLimit.sendInfo2(player);
party_check_success = false;
}
if (player.isInParty()) {
for (L2PcInstance member : party.getPartyMembers())
{
if (member != member.getParty().getLeader()) {
if (!Config.K1_ALLOW_HWIDBOX_KAMA) {
if (player.getHWid()!=null && player.getHWid().length()!=0) {
if(L2GameClient.isSameHWID(player.getHWid(),member.getHWid())) {
htmltext = "<html><body>Only one character per PC is available</body></html>";
party_check_success = false;
}
else if(player._inEventTvT || player._inEventDM || player._inEventRaid)
{
htmltext = "<html><body>You cannot join while register in another event!</body></html>";
party_check_success = false;
}
else if(member._inEventTvT ||member._inEventDM || member._inEventRaid)
{
htmltext = "<html><body>Your party members is already register in another event!</body></html>";
party_check_success = false;
}
else if(Olympiad.getInstance().isRegistered(player) || player.isInOlympiadMode())
{
htmltext = "<html><body>You're registered in olympiad!</body></html>";
party_check_success = false;
}
else if(Olympiad.getInstance().isRegistered(member) || member.isInOlympiadMode())
{
htmltext = "<html><body>Your party members is registered in olympiad!</body></html>";
party_check_success = false;
}
else if(LastManStanding.players.contains(player))
{
htmltext = "<html><body>You are registered in LMS event.</body></html>";
party_check_success = false;
}
else if(LastManStanding.players.contains(member))
{
htmltext = "<html><body>Your party member is registered in LMS event.</body></html>";
party_check_success = false;
}
else if(player.isAio() || member.isAio())
{
htmltext = "<html><body>Aio buffers cannot join!</body></html>";
party_check_success = false;
}
}
}
}
if (member.getPvpKills() < Config.K1_KAMA_PVP_NEEDS) {
htmltext = "<html><body>Some party member can't join in event because he dont have "+Config.K1_KAMA_PVP_NEEDS+" pvps </body></html>";
party_check_success = false;
}
if (member.isKamaloka2Status()) {
htmltext = "<html><body>Some party member can't join 4S Mission 2 event. He is in time restriction.<br><center>Or try again in 3 seconds. Hwids has been refreshed.</center></body></html>";
StatusChecker.checkStatuses(member);
TimeLimit.sendInfo2(member);
party_check_success = false;
}
if (!member.isInsideRadius(npc, 500, false, false)) {
htmltext = "<html><body>All members must be near to 4S Manager.</body></html>";
party_check_success = false;
}
String memberHwid = member.getHWid();
if (_hwidlist2.contains(memberHwid)) {
StatusChecker.checkStatuses(member);
htmltext = "<html><body>Some Party member hwid is under 4S Mission 2 time restriction.<br><center>Or try again in 3 seconds. Hwids has been refreshed.</center></body></html>";
party_check_success = false;
}
}
}
}
if (party_check_success) {
if (player.getParty() != null) {
GrandBossManager.getInstance().setBossStatus(KAMABOSS, OCCUPIED);
for (L2PcInstance member : party.getPartyMembers())
{
if (!member.isInsideRadius(npc, 700, false, false))
continue;
synchronized(_PlayersInside2) {