Package com.l2jfrozen.gameserver.model

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


      if (target instanceof L2PcInstance)
      {
        if (skill.getId() == 4051)
        {
          SystemMessage sm = new SystemMessage(SystemMessageId.REJUVENATING_HP);
          target.sendPacket(sm);
          sm = null;
        }
        else
        {
          if (activeChar instanceof L2PcInstance && activeChar != target)
View Full Code Here


          if (activeChar instanceof L2PcInstance && activeChar != target)
          {
            SystemMessage sm = new SystemMessage(SystemMessageId.S2_HP_RESTORED_BY_S1);
            sm.addString(activeChar.getName());
            sm.addNumber((int) hp);
            target.sendPacket(sm);
            sm = null;
          }
          else
          {
            SystemMessage sm = new SystemMessage(SystemMessageId.S1_HP_RESTORED);
View Full Code Here

          }
          else
          {
            SystemMessage sm = new SystemMessage(SystemMessageId.S1_HP_RESTORED);
            sm.addNumber((int) hp);
            target.sendPacket(sm);
            sm = null;
          }
        }
      }
      target = null;
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);
      su = null;

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

      target.sendPacket(su);
      su = null;

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

    }
    target = null;
  }
View Full Code Here

                    player.startAbnormalEffect(0x0400);
                else
                    player.startAbnormalEffect(0x0800);
                player.setIsParalyzed(true);
                StopMove sm = new StopMove(player);
                player.sendPacket(sm);
               player.broadcastPacket(sm);
               }
             }
       catch (Exception e)
       {}
View Full Code Here

      if (!player.isGM())
         {
           player.startAbnormalEffect(0x0400);
           player.setIsParalyzed(true);
          StopMove sm = new StopMove(player);
           player.sendPacket(sm);
           player.broadcastPacket(sm);
           }
      }
    }
    catch (Exception e)
View Full Code Here

            if(teamVal != 0)
            {
              SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
              sm.addString("You have joined team " + teamVal);
              player.sendPacket(sm);
              sm = null;
            }

            player.broadcastUserInfo();
          }
View Full Code Here

      if(teamVal != 0)
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        sm.addString("You have joined team " + teamVal);
        player.sendPacket(sm);
        sm = null;
      }

      player.broadcastUserInfo();
View Full Code Here

                // Like L2OFF must remove the first effect if the second effect lands
                // target.stopSkillEffects(skill.getId());
                skill.getEffects(activeChar, target, ss, sps, bss);
                SystemMessage sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
                sm.addSkillName(skill.getId());
                target.sendPacket(sm);
                sm = null;
              }
              else
              {
                SystemMessage sm = new SystemMessage(SystemMessageId.S1_WAS_UNAFFECTED_BY_S2);
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.