Package lineage2.gameserver.stats

Examples of lineage2.gameserver.stats.Env


          break;
        case 30:
        case 20:
        case 10:
        case 5:
          Announcements.getInstance().announceToAll(new SystemMessage(SystemMessage.THE_SERVER_WILL_BE_COMING_DOWN_IN_S1_SECONDS__PLEASE_FIND_A_SAFE_PLACE_TO_LOG_OUT).addNumber(shutdownCounter));
          break;
        case 0:
          switch (shutdownMode)
          {
            case SHUTDOWN:
View Full Code Here


    {
      return;
    }
    if (!Config.ALT_ALLOW_SHADOW_WEAPONS)
    {
      show(new CustomMessage("common.Disabled", player), player);
      return;
    }
    if ((player.getLevel() > 19) || (player.getClassLevel() > 1))
    {
      show("Your level is too high!", player);
View Full Code Here

    {
      return;
    }
    if (!Config.ALT_ALLOW_SHADOW_WEAPONS)
    {
      show(new CustomMessage("common.Disabled", player), player);
      return;
    }
    if ((player.getLevel() > 39) || (player.getClassLevel() > 2))
    {
      show("Your level is too high!", player);
View Full Code Here

      ThreadPoolManager.getInstance().schedule(new RestoreOfflineTraders(), 30000L);
    }
    getListeners().onStart();
    if (Config.IS_TELNET_ENABLED)
    {
      statusServer = new TelnetServer();
    }
    else
    {
      _log.info("Telnet server is currently disabled.");
    }
View Full Code Here

  {
    if (_condition == null)
    {
      return true;
    }
    Env env = new Env();
    env.character = player;
    env.item = instance;
    boolean res = _condition.test(env);
    if (!res && (_condition.getSystemMsg() != null))
    {
View Full Code Here

  {
    if (getSkill().checkTarget(actor, aimTarget, aimTarget, false, false) != null)
    {
      return false;
    }
    Env env = new Env();
    env.character = actor;
    env.skill = owner;
    env.target = target;
    env.value = damage;
    for (Condition c : _conditions)
View Full Code Here

   
    List<Effect> effectList = player.getEffectList().getAllEffects();
    _effects = new ArrayList<>(effectList.size());
    for (Effect $effect : effectList)
    {
      Effect effect = $effect.getTemplate().getEffect(new Env($effect.getEffector(), $effect.getEffected(), $effect.getSkill()));
      effect.setCount($effect.getCount());
      effect.setPeriod($effect.getCount() == 1 ? $effect.getPeriod() - $effect.getTime() : $effect.getPeriod());
     
      _effects.add(effect);
    }
View Full Code Here

      _clanLeaderSkill = SkillTable.getInstance().getInfo(19009, 1);
      for (Player member : getOnlineMembers(0))
      {
        for (EffectTemplate et : _clanLeaderSkill.getEffectTemplates())
        {
          Effect effect = et.getEffect(new Env(member, member, _clanLeaderSkill));
          if (effect != null)
          {
            member.getEffectList().addEffect(effect);
          }
        }   
      }
    }
    else if (getLeader().isOnline())
    {
      _clanLeaderSkill = SkillTable.getInstance().getInfo(19009, 1);
      for (EffectTemplate et : _clanLeaderSkill.getEffectTemplates())
      {
        Effect effect = et.getEffect(new Env(activeChar, activeChar, _clanLeaderSkill));
        if (effect != null)
        {
          activeChar.getEffectList().addEffect(effect);
        }
      }   
View Full Code Here

    }
    if (_preCondition.length == 0)
    {
      return true;
    }
    Env env = new Env();
    env.character = activeChar;
    env.skill = this;
    env.target = target;
    if (first)
    {
View Full Code Here

              else if (target.getEffectList().getEffectsBySkillId(getId()) != null)
              {
                continue;
              }
            }
            Env env = new Env(effector, target, Skill.this);
            int chance = et.chance(getActivateRate());
            if ((calcChance || (chance >= 0)) && !et._applyOnCaster)
            {
              env.value = chance;
              if (!Formulas.calcSkillSuccess(env, et, sps))
View Full Code Here

TOP

Related Classes of lineage2.gameserver.stats.Env

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.