Package lineage2.gameserver.model.instances

Examples of lineage2.gameserver.model.instances.NpcInstance.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


    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

    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

              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

      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

      Functions.npcSay(actor, "Готов�?те�?�? к �?мерти!!!");
      return true;
    }
    if ((rnd_per < 5) && (spawnTask == null) && (despawnTask == null))
    {
      actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, 5441, 1, 3000, 0));
      spawnTask = ThreadPoolManager.getInstance().schedule(new SpawnMobsTask(), 3000);
      return true;
    }
    if (!actor.isAMuted() && (rnd_per < 75))
    {
View Full Code Here

    {
      isInside = ((Territory) spawnRange).isInside(x, y);
    }
    if (isInside)
    {
      actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, 4671, 1, 500, 0));
      ThreadPoolManager.getInstance().schedule(new Teleport(new Location(x, y, z)), 500);
      _lastTeleport = System.currentTimeMillis();
    }
    return isInside;
  }
View Full Code Here

    setAttackTimeout(Long.MAX_VALUE);
    setAttackTarget(null);
    changeIntention(CtrlIntention.AI_INTENTION_ACTIVE, null, null);
    if (teleport)
    {
      actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, 2036, 1, 500, 0));
      actor.teleToLocation(sloc.x, sloc.y, GeoEngine.getHeight(sloc, actor.getGeoIndex()));
    }
    else
    {
      if (!clearAggro)
View Full Code Here

    public void runImpl()
    {
      final NpcInstance actor = getActor();
      if (actor != null)
      {
        actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, PresentationBalor2, 1, 4000, 0));
      }
    }
  }
 
  /**
 
View Full Code Here

      return false;
    }
    final int rnd_per = Rnd.get(100);
    if (rnd_per < 5)
    {
      actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, 5440, 1, 3000, 0));
      ThreadPoolManager.getInstance().schedule(new TrapTask(), 3000);
      return true;
    }
    final double distance = actor.getDistance(target);
    if (!actor.isAMuted() && (rnd_per < 75))
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.