Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // RegistrationMode = command channel.
- public boolean tryRegistrationCc(L2PcInstance pc)
- {
- if (!FrintezzaManager.getInstance().isEnableEnterToLair())
- {
- pc.sendMessage(new CustomMessage("MSG_LIT_NO_ENTRY"));
- return false;
- }
- if (isInvaded())
- {
- pc.sendMessage(new CustomMessage("MSG_LIT_OTHER_GROUP_INSIDE"));
- return false;
- }
- if (_commander == null)
- {
- if (pc.getParty() != null)
- {
- if (pc.getParty().getCommandChannel() != null)
- {
- if (pc.getParty().getCommandChannel().getChannelLeader() == pc
- && pc.getParty().getCommandChannel().getPartys().size() >= Config.LIT_MIN_PARTY_CNT
- && pc.getParty().getCommandChannel().getPartys().size() <= Config.LIT_MAX_PARTY_CNT
- && pc.getInventory().getInventoryItemCount(SCROLL, -1) >= 1)
- return true;
- }
- }
- }
- pc.sendMessage(new CustomMessage("MSG_LIT_NOT_COMMANDER_OR_NO_SCROOL"));
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement