Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. // RegistrationMode = command channel.
  2. public boolean tryRegistrationCc(L2PcInstance pc)
  3. {
  4. if (!FrintezzaManager.getInstance().isEnableEnterToLair())
  5. {
  6. pc.sendMessage(new CustomMessage("MSG_LIT_NO_ENTRY"));
  7. return false;
  8. }
  9.  
  10. if (isInvaded())
  11. {
  12. pc.sendMessage(new CustomMessage("MSG_LIT_OTHER_GROUP_INSIDE"));
  13. return false;
  14. }
  15.  
  16. if (_commander == null)
  17. {
  18. if (pc.getParty() != null)
  19. {
  20. if (pc.getParty().getCommandChannel() != null)
  21. {
  22. if (pc.getParty().getCommandChannel().getChannelLeader() == pc
  23. && pc.getParty().getCommandChannel().getPartys().size() >= Config.LIT_MIN_PARTY_CNT
  24. && pc.getParty().getCommandChannel().getPartys().size() <= Config.LIT_MAX_PARTY_CNT
  25. && pc.getInventory().getInventoryItemCount(SCROLL, -1) >= 1)
  26. return true;
  27. }
  28. }
  29. }
  30.  
  31. pc.sendMessage(new CustomMessage("MSG_LIT_NOT_COMMANDER_OR_NO_SCROOL"));
  32. return false;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement