Package lineage2.gameserver.model.pledge

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


          htmltext = "31331-" + raid + "a.htm";
        }
        else if (count == 1)
        {
          htmltext = "31331-" + raid + "b.htm";
          int increasedPoints = clan.incReputation(REWARDS_LIST[raid][2], 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


        }
        break;
      case 5:
        if ((clan.getReputationScore() >= Config.ALT_CLAN_REP_COUNT_6LVL) && (clan.getAllSize() >= Config.ALT_CLAN_PLAYER_COUNT_6LVL))
        {
          clan.incReputation(-Config.ALT_CLAN_REP_COUNT_6LVL, false, "LvlUpClan");
          increaseClanLevel = true;
        }
        break;
      case 6:
        if ((clan.getReputationScore() >= Config.ALT_CLAN_REP_COUNT_7LVL) && (clan.getAllSize() >= Config.ALT_CLAN_PLAYER_COUNT_7LVL))
View Full Code Here

        }
        break;
      case 6:
        if ((clan.getReputationScore() >= Config.ALT_CLAN_REP_COUNT_7LVL) && (clan.getAllSize() >= Config.ALT_CLAN_PLAYER_COUNT_7LVL))
        {
          clan.incReputation(-Config.ALT_CLAN_REP_COUNT_7LVL, false, "LvlUpClan");
          increaseClanLevel = true;
        }
        break;
      case 7:
        if ((clan.getReputationScore() >= Config.ALT_CLAN_REP_COUNT_8LVL) && (clan.getAllSize() >= Config.ALT_CLAN_PLAYER_COUNT_8LVL))
View Full Code Here

        }
        break;
      case 7:
        if ((clan.getReputationScore() >= Config.ALT_CLAN_REP_COUNT_8LVL) && (clan.getAllSize() >= Config.ALT_CLAN_PLAYER_COUNT_8LVL))
        {
          clan.incReputation(-Config.ALT_CLAN_REP_COUNT_8LVL, false, "LvlUpClan");
          increaseClanLevel = true;
        }
        break;
      case 8:
        if ((clan.getReputationScore() >= Config.ALT_CLAN_REP_COUNT_9LVL) && (clan.getAllSize() >= Config.ALT_CLAN_PLAYER_COUNT_9LVL))
View Full Code Here

      case 8:
        if ((clan.getReputationScore() >= Config.ALT_CLAN_REP_COUNT_9LVL) && (clan.getAllSize() >= Config.ALT_CLAN_PLAYER_COUNT_9LVL))
        {
          if (player.getInventory().destroyItemByItemId(9910, 150L))
          {
            clan.incReputation(-Config.ALT_CLAN_REP_COUNT_9LVL, false, "LvlUpClan");
            increaseClanLevel = true;
          }
        }
        break;
      case 9:
View Full Code Here

      case 9:
        if ((clan.getReputationScore() >= Config.ALT_CLAN_REP_COUNT_10LVL) && (clan.getAllSize() >= Config.ALT_CLAN_PLAYER_COUNT_10LVL))
        {
          if (player.getInventory().destroyItemByItemId(9911, 5))
          {
            clan.incReputation(-Config.ALT_CLAN_REP_COUNT_10LVL, false, "LvlUpClan");
            increaseClanLevel = true;
          }
        }
        break;
      case 10:
View Full Code Here

        if ((clan.getReputationScore() >= Config.ALT_CLAN_REP_COUNT_11LVL) && (clan.getAllSize() >= Config.ALT_CLAN_PLAYER_COUNT_11LVL) && (clan.getCastle() > 0))
        {
          //Radian Cloak of Light
          if (player.getInventory().destroyItemByItemId(34996, 1))
          {
            clan.incReputation(-Config.ALT_CLAN_REP_COUNT_11LVL, false, "LvlUpClan");
            increaseClanLevel = true;
          }
        }
        break;
    }
View Full Code Here

      if (!player.consumeItem(skillLearn.getItemId(), skillLearn.getItemCount()))
      {
        return;
      }
    }
    clan.incReputation(-skillLearn.getCost(), false, "AquireSkill: " + skillLearn.getId() + ", lvl " + skillLearn.getLevel());
    clan.addSkill(skill, true);
    clan.broadcastToOnlineMembers(new SystemMessage2(SystemMsg.THE_CLAN_SKILL_S1_HAS_BEEN_ADDED).addSkillName(skill));
    NpcInstance.showClanSkillList(player);
  }
 
View Full Code Here

      if (!player.consumeItem(skillLearn.getItemId(), skillLearn.getItemCount()))
      {
        return;
      }
    }
    clan.incReputation(-skillLearn.getCost(), false, "AquireSkill2: " + skillLearn.getId() + ", lvl " + skillLearn.getLevel());
    sub.addSkill(skill, true);
    player.sendPacket(new SystemMessage2(SystemMsg.THE_CLAN_SKILL_S1_HAS_BEEN_ADDED).addSkillName(skill));
    if (trainer != null)
    {
      NpcInstance.showSubUnitSkillList(player);
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.