Examples of incReputation()


Examples of l2p.gameserver.model.L2Clan.incReputation()

        L2Clan newOwner = ClanTable.getInstance().getClan(getSiegeUnit().getOwnerId());
        if(oldOwner == null)
        { // fortress was taken over from scratch
          if(newOwner.getLevel() >= 5)
          {
            newOwner.broadcastToOnlineMembers(new SystemMessage(SystemMessage.SINCE_YOUR_CLAN_EMERGED_VICTORIOUS_FROM_THE_SIEGE_S1_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE).addNumber(newOwner.incReputation(200, true, "FortressSiege")));
          }
          SiegeManager.clearFortressRegistrations(newOwner);
        }
        else if(newOwner.equals(oldOwner))
        { // fortress was defended
View Full Code Here

Examples of l2p.gameserver.model.L2Clan.incReputation()

        }
        else if(newOwner.equals(oldOwner))
        { // fortress was defended
          if(newOwner.getLevel() >= 5)
          {
            newOwner.broadcastToOnlineMembers(new SystemMessage(SystemMessage.SINCE_YOUR_CLAN_EMERGED_VICTORIOUS_FROM_THE_SIEGE_S1_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE).addNumber(newOwner.incReputation(200, true, "FortressSiege")));
          }
          SiegeManager.clearFortressRegistrations(newOwner);
        }
        else
        { // fortress was taken over by another clan
View Full Code Here

Examples of l2p.gameserver.model.L2Clan.incReputation()

        else
        { // fortress was taken over by another clan
          announceToPlayer(new SystemMessage(SystemMessage.S1_CLAN_IS_VICTORIOUS_IN_THE_FORTRESS_BATLE_OF_S2).addString(newOwner.getName()).addString(getSiegeUnit().getName()), false, true);
          if(newOwner.getLevel() >= 5)
          {
            newOwner.broadcastToOnlineMembers(new SystemMessage(SystemMessage.SINCE_YOUR_CLAN_EMERGED_VICTORIOUS_FROM_THE_SIEGE_S1_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE).addNumber(newOwner.incReputation(500, true, "FortressSiege")));
          }
          if(oldOwner.getLevel() >= 5)
          {
            oldOwner.broadcastToOnlineMembers(new SystemMessage(SystemMessage.YOUR_CLAN_HAS_FAILED_TO_DEFEND_THE_CASTLE_S1_POINTS_HAVE_BEEN_DEDUCTED_FROM_YOUR_CLAN_REPUTATION_SCORE).addNumber(-oldOwner.incReputation(-500, true, "FortressSiege")));
          }
View Full Code Here

Examples of l2p.gameserver.model.L2Clan.incReputation()

          htmltext = "30868-" + raid + "a.htm";
        }
        else if(count == 1)
        {
          htmltext = "30868-" + raid + "b.htm";
          int increasedPoints = clan.incReputation(CLAN_POINTS_REWARD, true, "_508_TheClansReputation");
          st.getPlayer().sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_SUCCESSFULLY_COMPLETED_A_CLAN_QUEST_S1_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE).addNumber(increasedPoints));
          st.takeItems(item, 1);
        }
      }
    }
View Full Code Here

Examples of l2p.gameserver.model.L2Clan.incReputation()

          if(clanId > 0)
          {
            L2Clan clan = ClanTable.getInstance().getClan(clanId);
            if(clan != null)
            {
              clan.incReputation(100, true, "SevenSignsFestival");
              clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
              SystemMessage sm = new SystemMessage(SystemMessage.CLAN_MEMBER_S1_WAS_AN_ACTIVE_MEMBER_OF_THE_HIGHEST_RANKED_PARTY_IN_THE_FESTIVAL_OF_DARKNESS_S2_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE);
              sm.addString(rset.getString("char_name"));
              sm.addNumber(100);
              clan.broadcastToOnlineMembers(sm);
View Full Code Here

Examples of l2p.gameserver.model.L2Clan.incReputation()

      {
        clan = ClanTable.getInstance().getClan(mysql.simple_get_int("clanid", "characters", "obj_Id=" + playerId));
      }
      if(clan != null)
      {
        clan.incReputation(reward, true, "RaidPoints");
      }
      counter++;
    }
    _points.clear();
    updatePointsDb();
View Full Code Here

Examples of l2p.gameserver.model.L2Clan.incReputation()

          htmltext = "31331-" + raid + "a.htm";
        }
        else if(count == 1)
        {
          htmltext = "31331-" + raid + "b.htm";
          int increasedPoints = clan.incReputation(CLAN_POINTS_REWARD, true, "_509_TheClansPrestige");
          st.getPlayer().sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_SUCCESSFULLY_COMPLETED_A_CLAN_QUEST_S1_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE).addNumber(increasedPoints));
          st.takeItems(item, 1);
        }
      }
    }
View Full Code Here

Examples of l2p.gameserver.model.L2Clan.incReputation()

        }
        else if(count >= 1)
        {
          htmltext = "31331-7.htm";// custom html
          st.takeItems(CLAW, -1);
          int increasedPoints = clan.incReputation(CLAN_POINTS_REWARD * (int) count, true, "_510_AClansReputation");
          player.sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_SUCCESSFULLY_COMPLETED_A_CLAN_QUEST_S1_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE).addNumber(increasedPoints));
        }
      }
    }
    return htmltext;
View Full Code Here

Examples of lineage2.gameserver.model.pledge.Clan.incReputation()

    if (ownerClan != null)
    {
      if (_oldOwner != ownerClan)
      {
        ownerClan.broadcastToOnlineMembers(PlaySound.SIEGE_VICTORY);
        ownerClan.incReputation(1700, false, toString());
        broadcastTo(new SystemMessage2(SystemMsg.S1_IS_VICTORIOUS_IN_THE_FORTRESS_BATTLE_OF_S2).addString(ownerClan.getName()).addResidenceName(getResidence()), ATTACKERS, DEFENDERS);
        getResidence().getOwnDate().setTimeInMillis(System.currentTimeMillis());
        getResidence().startCycleTask();
        spawnEnvoy();
      }
View Full Code Here

Examples of lineage2.gameserver.model.pledge.Clan.incReputation()

    if (newOwner != null)
    {
      if (_oldOwner != newOwner)
      {
        newOwner.broadcastToOnlineMembers(PlaySound.SIEGE_VICTORY);
        newOwner.incReputation(1700, false, toString());
      }
      broadcastTo(new SystemMessage2(SystemMsg.S1_CLAN_HAS_DEFEATED_S2).addString(newOwner.getName()).addResidenceName(getResidence()), ATTACKERS, DEFENDERS);
      broadcastTo(new SystemMessage2(SystemMsg.THE_SIEGE_OF_S1_IS_FINISHED).addResidenceName(getResidence()), ATTACKERS, DEFENDERS);
    }
    else
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.