Example #1
0
 public static final int getPartyRoomState(L2PcInstance player) {
   L2PartyRoom room = player.getPartyRoom();
   if (room == null) return 0;
   if (room.getLeader() == player) return 1;
   L2Party party = room.getParty();
   if (party != null && party == player.getParty()) return 2;
   return 0;
 }