Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.SystemMessage


    }
    _item = item;
    player.getInventory().setPaperdollItem(Inventory.PAPERDOLL_LHAND, null);
    player.getInventory().setPaperdollItem(Inventory.PAPERDOLL_RHAND, null);
    player.getInventory().setPaperdollItem(Inventory.PAPERDOLL_RHAND, _item);
    player.sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_EQUIPPED_YOUR_S1).addItemName(_item.getItemId()));
    player.setTransformation(0);
    player.setCursedWeaponEquippedId(_itemId);
    player.setTransformation(_transformationId);
    player.setTransformationName(_transformationName);
    player.setTransformationTemplate(_transformationTemplateId);
View Full Code Here


        }
        if (target.isPlayer())
        {
          if (activeChar == target)
          {
            activeChar.sendPacket(new SystemMessage(SystemMessage.S1_HPS_HAVE_BEEN_RESTORED).addNumber(Math.round(addToHp)));
            activeChar.sendPacket(new SystemMessage(SystemMessage.S1_CPS_WILL_BE_RESTORED).addNumber(Math.round(addToCp)));
          }
          else
          {
            target.sendPacket(new SystemMessage(SystemMessage.XS2S_HP_HAS_BEEN_RESTORED_BY_S1).addString(activeChar.getName()).addNumber(Math.round(addToHp)));
            target.sendPacket(new SystemMessage(SystemMessage.S1_WILL_RESTORE_S2S_CP).addString(activeChar.getName()).addNumber(Math.round(addToCp)));
          }
        }
        getEffects(activeChar, target, getActivateRate() > 0, false);
      }
    }
View Full Code Here

      return;
    }
    double mp = (calc() * _effected.getMaxMp()) / 100.;
    double newMp = (mp * (!_ignoreMpEff ? _effected.calcStat(Stats.MANAHEAL_EFFECTIVNESS, 100., _effector, getSkill()) : 100.)) / 100.;
    double addToMp = Math.max(0, Math.min(newMp, ((_effected.calcStat(Stats.MP_LIMIT, null, null) * _effected.getMaxMp()) / 100.) - _effected.getCurrentMp()));
    _effected.sendPacket(new SystemMessage(SystemMessage.S1_MPS_HAVE_BEEN_RESTORED).addNumber(Math.round(addToMp)));
    if (addToMp > 0)
    {
      _effected.setCurrentMp(addToMp + _effected.getCurrentMp());
    }
  }
View Full Code Here

    Reflection ref = getActor().getReflection();
    if(!getActor().isDead() && _idleDelay > 0 && _idleDelay + 60000 < System.currentTimeMillis())
      if(!ref.isDefault())
      {
        for(Player p : ref.getPlayers())
          p.sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(1));
        ref.collapse();
      }

    super.thinkActive();
    return true;
View Full Code Here

    {
      if (_party && (((Player) activeChar).getParty() == null))
      {
        return false;
      }
      SystemMessage msg = canSummonHere((Player) activeChar);
      if (msg != null)
      {
        activeChar.sendPacket(msg);
        return false;
      }
View Full Code Here

  {
    if (!activeChar.isPlayer())
    {
      return;
    }
    SystemMessage msg = canSummonHere((Player) activeChar);
    if (msg != null)
    {
      activeChar.sendPacket(msg);
      return;
    }
View Full Code Here

    {
      return Msg.YOUR_TARGET_IS_IN_AN_AREA_WHICH_BLOCKS_SUMMONING;
    }
    if (target.isAlikeDead())
    {
      return new SystemMessage(SystemMessage.S1_IS_DEAD_AT_THE_MOMENT_AND_CANNOT_BE_SUMMONED).addString(target.getName());
    }
    if ((target.getPvpFlag() != 0) || target.isInCombat())
    {
      return new SystemMessage(SystemMessage.S1_IS_ENGAGED_IN_COMBAT_AND_CANNOT_BE_SUMMONED).addString(target.getName());
    }
    Player pTarget = (Player) target;
    if ((pTarget.getPrivateStoreType() != Player.STORE_PRIVATE_NONE) || pTarget.isProcessingRequest())
    {
      return new SystemMessage(SystemMessage.S1_IS_CURRENTLY_TRADING_OR_OPERATING_A_PRIVATE_STORE_AND_CANNOT_BE_SUMMONED).addString(target.getName());
    }
    return null;
  }
View Full Code Here

    }
    double manaDam = calc();
    if ((manaDam > _effected.getCurrentMp()) && getSkill().isToggle())
    {
      _effected.sendPacket(Msg.NOT_ENOUGH_MP);
      _effected.sendPacket(new SystemMessage(SystemMessage.THE_EFFECT_OF_S1_HAS_BEEN_REMOVED).addSkillName(getSkill().getId(), getSkill().getDisplayLevel()));
      return false;
    }
    _effected.reduceCurrentMp(manaDam, null);
    return true;
  }
View Full Code Here

        {
          sweep.dropToTheGround(player, target);
          continue;
        }
        player.getInventory().addItem(sweep);
        SystemMessage smsg;
        if (item.count == 1)
        {
          smsg = new SystemMessage(SystemMessage.YOU_HAVE_OBTAINED_S1);
          smsg.addItemName(item.itemId);
          player.sendPacket(smsg);
        }
        else
        {
          smsg = new SystemMessage(SystemMessage.YOU_HAVE_OBTAINED_S2_S1);
          smsg.addItemName(item.itemId);
          smsg.addNumber(item.count);
          player.sendPacket(smsg);
        }
        if (player.isInParty())
        {
          if (item.count == 1)
          {
            smsg = new SystemMessage(SystemMessage.S1_HAS_OBTAINED_S2_BY_USING_SWEEPER);
            smsg.addName(player);
            smsg.addItemName(item.itemId);
            player.getParty().broadcastToPartyMembers(player, smsg);
          }
          else
          {
            smsg = new SystemMessage(SystemMessage.S1_HAS_OBTAINED_3_S2_S_BY_USING_SWEEPER);
            smsg.addName(player);
            smsg.addItemName(item.itemId);
            smsg.addNumber(item.count);
            player.getParty().broadcastToPartyMembers(player, smsg);
          }
        }
      }
      activeChar.getAI().setAttackTarget(null);
View Full Code Here

      return;
    }
    double hp = (calc() * _effected.getMaxHp()) / 100.;
    double newHp = (hp * (!_ignoreHpEff ? _effected.calcStat(Stats.HEAL_EFFECTIVNESS, 100., _effector, getSkill()) : 100.)) / 100.;
    double addToHp = Math.max(0, Math.min(newHp, ((_effected.calcStat(Stats.HP_LIMIT, null, null) * _effected.getMaxHp()) / 100.) - _effected.getCurrentHp()));
    _effected.sendPacket(new SystemMessage(SystemMessage.S1_HPS_HAVE_BEEN_RESTORED).addNumber(Math.round(addToHp)));
    if (addToHp > 0)
    {
      _effected.setCurrentHp(addToHp + _effected.getCurrentHp(), false);
    }
  }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.network.serverpackets.SystemMessage

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.