Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2013
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public void spawnSiegeGuard()
  2. {
  3. try
  4. {
  5. int hiredCount = 0;
  6. boolean isHired = (_castleOwnerId > 0);
  7.  
  8. if (Config.SPAWN_SIEGE_GUARD)
  9. {
  10. loadSiegeGuard();
  11. for (L2Spawn spawn : getSiegeGuardSpawn())
  12. {
  13. if (spawn != null)
  14. {
  15. spawn.init();
  16.  
  17. if (isHired)
  18. {
  19. if (++hiredCount > MercTicketManager.getInstance().getMaxAllowedMerc(_castleId))
  20. return;
  21.  
  22. if (hiredCount > Config.MAX_GUARD_COUNT_FOR_CASTLE)
  23. return;
  24. }
  25. }
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement