Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.PledgeShowInfoUpdate


            if ((pk != null) && pk.getClan() != null && getClan() != null && !isAcademyMember() && !pk.isAcademyMember() && _clan.isAtWarWith(pk.getClanId()) && pk.getClan().isAtWarWith(_clan.getClanId()))
            {
              if (getClan().getReputationScore() > 0)
              {
                pk.getClan().setReputationScore(((L2PcInstance) killer).getClan().getReputationScore() + 2, true);
                pk.getClan().broadcastToOnlineMembers(new PledgeShowInfoUpdate(pk.getClan())); // Update status to all members
              }
              if (pk.getClan().getReputationScore() > 0)
              {
                _clan.setReputationScore(_clan.getReputationScore() - 2, true);
                _clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(_clan)); // Update status to all members
              }
            }
            if (Config.ALT_GAME_DELEVEL)
            {
              // Reduce the Experience of the L2PcInstance in function of the calculated Death Penalty
View Full Code Here


      }

      clan.setHasCastle(0);

      Announcements.getInstance().announceToAll(clan.getName() + " has lost " + getName() + " castle");
      clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
    }

    updateOwnerInDB(null);

    if(getSiege().getIsInProgress())
View Full Code Here

      // Announce to clan memebers
      if(clan != null)
      {
        clan.setHasCastle(getCastleId()); // Set has castle flag for new owner
        Announcements.getInstance().announceToAll(clan.getName() + " has taken " + getName() + " castle!");
        clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
        clan.broadcastToOnlineMembers(new PlaySound(1, "Siege_Victory", 0, 0, 0, 0, 0));
        // give crowns
        CrownManager.getInstance().checkCrowns(clan);

        ThreadPoolManager.getInstance().scheduleGeneral(new CastleUpdater(clan, 1), 3600000); // Schedule owner tasks to start running
View Full Code Here

        L2Clan owner = ClanTable.getInstance().getClan(getOwnerId());

        if(owner != null)
        {
          owner.setReputationScore(owner.getReputationScore() + Math.min(1000, maxreward), true);
          owner.broadcastToOnlineMembers(new PledgeShowInfoUpdate(owner));
        }

        owner = null;
      }
      else
      {
        _formerOwner.setReputationScore(_formerOwner.getReputationScore() + 500, true);
      }

      _formerOwner.broadcastToOnlineMembers(new PledgeShowInfoUpdate(_formerOwner));
    }
    else
    {
      L2Clan owner = ClanTable.getInstance().getClan(getOwnerId());

      if(owner != null)
      {
        owner.setReputationScore(owner.getReputationScore() + 1000, true);
        owner.broadcastToOnlineMembers(new PledgeShowInfoUpdate(owner));
      }

      owner = null;
    }
  }
View Full Code Here

    {
      _formerOwner = clan;

      clan.setHasFort(0);
      Announcements.getInstance().announceToAll(clan.getName() + " has lost " + getName() + " fort");
      clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
    }

    updateOwnerInDB(null);

    if(getSiege().getIsInProgress())
View Full Code Here

      // Announce to clan memebers
      if(clan != null)
      {
        clan.setHasFort(getFortId()); // Set has fort flag for new owner
        Announcements.getInstance().announceToAll(clan.getName() + " has taken " + getName() + " fort!");
        clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
        clan.broadcastToOnlineMembers(new PlaySound(1, "Siege_Victory", 0, 0, 0, 0, 0));
        //ThreadPoolManager.getInstance().scheduleGeneral(new FortUpdater(clan, 1), 3600000);   // Schedule owner tasks to start running
      }
    }
    catch(Exception e)
View Full Code Here

        L2Clan owner = ClanTable.getInstance().getClan(getOwnerId());

        if(owner != null)
        {
          owner.setReputationScore(owner.getReputationScore() + Math.min(500, maxreward), true);
          owner.broadcastToOnlineMembers(new PledgeShowInfoUpdate(owner));
        }

        owner = null;
      }
      else
      {
        _formerOwner.setReputationScore(_formerOwner.getReputationScore() + 250, true);
      }

      _formerOwner.broadcastToOnlineMembers(new PledgeShowInfoUpdate(_formerOwner));
    }
    else
    {
      L2Clan owner = ClanTable.getInstance().getClan(getOwnerId());
      if(owner != null)
      {
        owner.setReputationScore(owner.getReputationScore() + 500, true);
        owner.broadcastToOnlineMembers(new PledgeShowInfoUpdate(owner));
      }

      owner = null;
    }
  }
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.PledgeShowInfoUpdate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.