Examples of broadcastPacketToOthers()


Examples of l2p.gameserver.model.instances.L2NpcInstance.broadcastPacketToOthers()

    teleportSelf();
    spawnMinions();
    int rnd_per = Rnd.get(100);
    if(rnd_per < 5)
    {
      actor.broadcastPacketToOthers(new MagicSkillUse(actor, target, ScatterEnemy, 1, 2900, 0));
      ThreadPoolManager.getInstance().scheduleGeneral(new TeleportTask(target), 2900);
      return true;
    }
    if(rnd_per < 8)
    {
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.broadcastPacketToOthers()

      ThreadPoolManager.getInstance().scheduleGeneral(new TeleportTask(target), 2900);
      return true;
    }
    if(rnd_per < 8)
    {
      actor.broadcastPacketToOthers(new MagicSkillUse(actor, target, MassTeleport, 1, 2900, 0));
      ThreadPoolManager.getInstance().scheduleGeneral(new TeleportTask(target), 2900);
      for(L2Playable playable : L2World.getAroundPlayables(target, 200, 200))
      {
        ThreadPoolManager.getInstance().scheduleGeneral(new TeleportTask(playable), 2900);
      }
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.broadcastPacketToOthers()

    switch(_stage2)
    {
      case 0:
        if(actor_hp_precent < 85)
        {
          actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, InstantMove, 1, 500, 0));
          ThreadPoolManager.getInstance().scheduleGeneral(new TeleportTask(actor), 500);
          _stage2++;
        }
        break;
      case 1:
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.broadcastPacketToOthers()

        }
        break;
      case 1:
        if(actor_hp_precent < 50)
        {
          actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, InstantMove, 1, 500, 0));
          ThreadPoolManager.getInstance().scheduleGeneral(new TeleportTask(actor), 500);
          _stage2++;
        }
        break;
      case 2:
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.broadcastPacketToOthers()

        }
        break;
      case 2:
        if(actor_hp_precent < 25)
        {
          actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, InstantMove, 1, 500, 0));
          ThreadPoolManager.getInstance().scheduleGeneral(new TeleportTask(actor), 500);
          _stage2++;
        }
        break;
    }
View Full Code Here

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

    {
      activeChar.onJumpingBreak();
      return;
    }
    Location destLoc = point.getLocation();
    activeChar.broadcastPacketToOthers(new ExFlyMoveBroadcast(activeChar, 2, destLoc));
    activeChar.setLoc(destLoc);
    JumpTrack track = activeChar.getCurrentJumpTrack();
    if (track == null)
    {
      activeChar.onJumpingBreak();
View Full Code Here

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

    if (way == null)
    {
      return;
    }
    activeChar.sendPacket(new ExFlyMove(activeChar.getObjectId(), way.getPoints(), track.getId()));
    activeChar.broadcastPacketToOthers(new ExFlyMoveBroadcast(activeChar, 2, destLoc));
    activeChar.setVar("@safe_jump_loc", activeChar.getLoc().toXYZString(), -1);
    activeChar.setCurrentJumpTrack(track);
    activeChar.setCurrentJumpWay(way);
  }
}
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.broadcastPacketToOthers()

    final Location loc = _points[Rnd.get(_points.length)];
    if (_thisActor.getLoc().equals(loc))
    {
      return false;
    }
    _thisActor.broadcastPacketToOthers(new MagicSkillUse(_thisActor, _thisActor, 4671, 1, 1000, 0));
    ThreadPoolManager.getInstance().schedule(new Teleport(loc), 1000);
    _lastTeleport = System.currentTimeMillis();
    return true;
  }
 
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.broadcastPacketToOthers()

              step_stage2 = 2;
              return true;
            case 2:
              actor.setHeading(0);
              actor.stopMove();
              actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, 454, 1, 3000, 0));
              step_stage2 = 3;
              return true;
            case 3:
              actor.addStatFunc(new FuncMul(Stats.MAGIC_ATTACK_SPEED, 0x40, actor, 5));
              actor.addStatFunc(new FuncMul(Stats.MAGIC_DAMAGE, 0x40, actor, 10));
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.broadcastPacketToOthers()

      Location loc = points[Rnd.get(points.length)];
      if (actor.getLoc().equals(loc))
      {
        continue;
      }
      actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, 4671, 1, 1000, 0));
      ThreadPoolManager.getInstance().schedule(new Teleport(loc), 1000);
      _lastTeleport = System.currentTimeMillis();
      break;
    }
    return true;
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.