Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Player.broadcastPacket()


      return;
    }
    int socialActionId = action.getSocialActionId();
    if (socialActionId >= 0)
    {
      actor.broadcastPacket(new L2GameServerPacket[] { new SocialAction(actor.getObjectId(), socialActionId) });
    }
    NpcString phrase = action.getPhrase();
    if (phrase != null)
    {
      Functions.npcSay(actor, phrase, new String[0]);
View Full Code Here


        for (int skillId : BUFFS)
        {
          skill = SkillTable.getInstance().getInfo(skillId, 1);
          LazyArrayList<Creature> target = new LazyArrayList<>();
          target.add(player);
          actor.broadcastPacket(new MagicSkillUse(actor, player, skillId, 0, 0, 0));
          actor.callSkill(skill, target, true);
        }
        player.sendPacket(new ExShowScreenMessage(NpcString.NEWBIE_HELPER_HAS_CASTED_BUFFS_ON_$S1, 800, ScreenMessageAlign.TOP_CENTER, player.getName()));
      }
    }
View Full Code Here

        {
          htmltext = "jack-notime.htm";
        }
        else
        {
          npc.broadcastPacket(new MagicSkillUse(npc, player, 23179, 1, 0, 0));
          player.altOnMagicUseTimer(player, SkillTable.getInstance().getInfo(23179, 1));
          player.setVar("govEventTime", String.valueOf(System.currentTimeMillis() + (REUSE_HOURS * 60 * 60 * 1000L)), -1);
          player.setVitality(Config.MAX_VITALITY);
          htmltext = "jack-okvitality.htm";
        }
View Full Code Here

        {
          if (!player.isMageClass() || (player.getTemplate().getRace() == Race.orc))
          {
            for (int[] buff : _warrBuff)
            {
              npc.broadcastPacket(new MagicSkillUse(npc, player, buff[0], buff[1], 0, 0));
              player.altOnMagicUseTimer(player, SkillTable.getInstance().getInfo(buff[0], buff[1]));
            }
          }
          else
          {
View Full Code Here

          }
          else
          {
            for (int[] buff : _mageBuff)
            {
              npc.broadcastPacket(new MagicSkillUse(npc, player, buff[0], buff[1], 0, 0));
              player.altOnMagicUseTimer(player, SkillTable.getInstance().getInfo(buff[0], buff[1]));
            }
          }
          htmltext = "jack-okbuff.htm";
        }
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.