Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Character.sendPacket()


          amount = Math.min(((full) ? target.getMaxCp() : (target.getMaxCp() * skill.getPower() / 100.0)), target.getMaxCp() - target.getCurrentCp());
      target.setCurrentCp(amount + target.getCurrentCp());
     
      sm = SystemMessage.getSystemMessage(SystemMessageId.S1_CP_WILL_BE_RESTORED);
      sm.addNumber((int) amount);
      target.sendPacket(sm);
      StatusUpdate sump = new StatusUpdate(target.getObjectId());
      sump.addAttribute(StatusUpdate.CUR_CP, (int) target.getCurrentCp());
        }
       }
    }
View Full Code Here


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

        StatusUpdate sump = new StatusUpdate(target.getObjectId());
        sump.addAttribute(StatusUpdate.CUR_MP, (int) target.getCurrentMp());
        target.sendPacket(sump);
        sump = null;

        SystemMessage sm = new SystemMessage(SystemMessageId.S2_MP_HAS_BEEN_DRAINED_BY_S1);

        if(activeChar instanceof L2NpcInstance)
View Full Code Here

        else
        {
          sm.addString(activeChar.getName());
        }
        sm.addNumber((int) mp);
        target.sendPacket(sm);

        target = null;
        sm = null;

        if(activeChar instanceof L2PcInstance)
View Full Code Here

      {
        cp = target.getMaxCp() * cp / 100.0;
      }
      SystemMessage sm = new SystemMessage(SystemMessageId.S1_CP_WILL_BE_RESTORED);
      sm.addNumber((int) cp);
      target.sendPacket(sm);
     
      target.setCurrentCp(cp + target.getCurrentCp());
      StatusUpdate sump = new StatusUpdate(target.getObjectId());
      sump.addAttribute(StatusUpdate.CUR_CP, (int) target.getCurrentCp());
      target.sendPacket(sump);
View Full Code Here

      target.sendPacket(sm);
     
      target.setCurrentCp(cp + target.getCurrentCp());
      StatusUpdate sump = new StatusUpdate(target.getObjectId());
      sump.addAttribute(StatusUpdate.CUR_CP, (int) target.getCurrentCp());
      target.sendPacket(sump);
    }
  }

  @Override
  public SkillType[] getSkillIds()
View Full Code Here

    double manaDam = calc();

    if(manaDam > effected.getStatus().getCurrentMp())
    {
      effected.sendPacket(new SystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP));
      return false;
    }

    if(!retval)
    {
View Full Code Here

      {
        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);
        Char = null;
        sg = null;
        msk = null;
      }
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.