Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.L2Character.sendPacket()


      {
        L2Character Char = (L2Character) obj;
        MagicSkillUser msk = new MagicSkillUser(Char, 1008, 1, 4000, 0);
        Char.broadcastPacket(msk);
        SetupGauge sg = new SetupGauge(0, 4000);
        Char.sendPacket(sg);
      }
      //end of animation
      obj.decayMe();
      obj.spawnMe(obj.getX(),obj.getY(),obj.getZ());
      activeChar.sendMessage("Polymorph succeed");
View Full Code Here


      if (totalHeal > 0)
        target.setLastHealAmount((int) totalHeal);

      StatusUpdate su = new StatusUpdate(target.getObjectId());
      su.addAttribute(StatusUpdate.CUR_HP, (int) target.getCurrentHp());
      target.sendPacket(su);

      SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
      sm.addString("HP of the party has been balanced.");
      target.sendPacket(sm);
View Full Code Here

      su.addAttribute(StatusUpdate.CUR_HP, (int) target.getCurrentHp());
      target.sendPacket(su);

      SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
      sm.addString("HP of the party has been balanced.");
      target.sendPacket(sm);

    }
  }

  @Override
View Full Code Here

      //hp += skill.getPower()/*+(Math.sqrt(cLev)*cLev)+cLev*/;
            target.setLastHealAmount((int)mp);
      target.setCurrentMp(mp+target.getCurrentMp());
      StatusUpdate sump = new StatusUpdate(target.getObjectId());
      sump.addAttribute(StatusUpdate.CUR_MP, (int)target.getCurrentMp());
      target.sendPacket(sump);

            if (actChar instanceof L2PcInstance && actChar != target)
            {
                SystemMessage sm = new SystemMessage(SystemMessageId.S2_MP_RESTORED_BY_S1);
                sm.addString(actChar.getName());
View Full Code Here

            if (actChar instanceof L2PcInstance && actChar != target)
            {
                SystemMessage sm = new SystemMessage(SystemMessageId.S2_MP_RESTORED_BY_S1);
                sm.addString(actChar.getName());
                sm.addNumber((int)mp);
                target.sendPacket(sm);
            }
            else
            {
                SystemMessage sm = new SystemMessage(SystemMessageId.S1_MP_RESTORED);
                sm.addNumber((int)mp);
View Full Code Here

            }
            else
            {
                SystemMessage sm = new SystemMessage(SystemMessageId.S1_MP_RESTORED);
                sm.addNumber((int)mp);
                target.sendPacket(sm);
            }
    }
  }

View Full Code Here

          if (target.isSleeping()) target.stopSleeping(null);

        StatusUpdate sump = new StatusUpdate(target.getObjectId());
        sump.addAttribute(StatusUpdate.CUR_MP, (int) target.getCurrentMp());
        // [L2J_JP EDIT START - TSL]
        target.sendPacket(sump);
        SystemMessage sm = new SystemMessage(SystemMessageId.S2_MP_HAS_BEEN_DRAINED_BY_S1);
        if (activeChar instanceof L2NpcInstance)
        {
          int mobId = ((L2NpcInstance)activeChar).getNpcId();
          sm.addNpcName(mobId);
View Full Code Here

        else
        {
          sm.addString(activeChar.getName());
        }
        sm.addNumber((int)mp);
        target.sendPacket(sm);
        if (activeChar instanceof L2PcInstance)
              {
                  SystemMessage sm2 = new SystemMessage(SystemMessageId.YOUR_OPPONENTS_MP_WAS_REDUCED_BY_S1);
          sm2.addNumber((int)mp);
                  activeChar.sendPacket(sm2);
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.