Package l2p.gameserver.model.instances

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


    {
      Functions.npcSay(temp_npc, TEXT[6]);
      temp_npc.moveToLocation(new Location(-56511, -56647, -2008, 36863), 0, true);
      temp_npc.broadcastPacket(new PlaySound(1, "NS22_F", 0, 0, new Location()));
      L2NpcInstance elf = addSpawn(singer1, -56344, -56328, -2008, 32768);
      elf.moveToLocation(new Location(-56657, -56338, -2008, 33102), 0, true);
      L2NpcInstance elf1 = addSpawn(singer2, -56552, -56245, -2008, 36863);
      L2NpcInstance elf2 = addSpawn(singer2, -56546, -56426, -2008, 28672);
      L2NpcInstance elf3 = addSpawn(singer2, -56570, -56473, -2008, 28672);
      L2NpcInstance elf4 = addSpawn(singer2, -56594, -56516, -2008, 28672);
      L2NpcInstance elf5 = addSpawn(singer2, -56580, -56203, -2008, 36863);
View Full Code Here


    Location sloc = actor.getSpawnedLoc();
    int x = sloc.x + Rnd.get(2 * WALK_RANGE) - WALK_RANGE;
    int y = sloc.y + Rnd.get(2 * WALK_RANGE) - WALK_RANGE;
    int z = GeoEngine.getHeight(x, y, sloc.z, actor.getReflection().getGeoIndex());
    actor.setRunning();
    actor.moveToLocation(x, y, z, 0, true);
    return true;
  }
}
View Full Code Here

    {
      int x = edwin.getX() + Rnd.get(2 * DRIFT_DISTANCE) - DRIFT_DISTANCE;
      int y = edwin.getY() + Rnd.get(2 * DRIFT_DISTANCE) - DRIFT_DISTANCE;
      int z = edwin.getZ();
      actor.setRunning(); // всегда бегают
      actor.moveToLocation(x, y, z, 0, true);
      return true;
    }
    return false;
  }

View Full Code Here

    {
      return false;
    }
    actor.setWalking();
    // Телепортируемся домой, только если далеко от дома
    if(!actor.moveToLocation(x, y, z, 0, false) && !isInRange)
    {
      teleportHome(true);
    }
    return true;
  }
View Full Code Here

        }
        if(actor.isMoving)
        {
          return false;
        }
        if(!actor.moveToLocation(currentTask.loc, 0, currentTask.pathfind))
        {
          clientStopMoving();
          _pathfind_fails = 0;
          actor.teleToLocation(currentTask.loc);
          //actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, 2036, 1, 500, 600000));
View Full Code Here

    if(obj != null && obj.isNpc())
    {
      L2NpcInstance temp = (L2NpcInstance) obj;
      L2Player activeChar = client.getActiveChar();
      temp.setTarget(activeChar);
      temp.moveToLocation(activeChar.getLoc(), 0, true);
    }
  }

  private void playerHelp(int objectId, String path)
  {
View Full Code Here

    if(actor == null)
    {
      return;
    }
    actor.setRunning();
    if(actor.moveToLocation(loc, 0, true))
    {
      return;
    }
    clientStopMoving();
    _pathfind_fails = 0;
View Full Code Here

    int spawnZ = sloc.z;
    int x = spawnX + Rnd.get(2 * range) - range;
    int y = spawnY + Rnd.get(2 * range) - range;
    int z = GeoEngine.getHeight(x, y, spawnZ, actor.getReflection().getGeoIndex());
    actor.setRunning();
    actor.moveToLocation(x, y, z, 0, true);
    addTaskMove(spawnX, spawnY, spawnZ, false);
    if(System.currentTimeMillis() - _lastAction > voicetime)
    {
      Functions.npcSay(actor, _retreatText[Rnd.get(_retreatText.length)]);
      _lastAction = System.currentTimeMillis();
View Full Code Here

    Location sloc = actor.getSpawnedLoc();
    int x = sloc.x + Rnd.get(2 * PET_WALK_RANGE) - PET_WALK_RANGE;
    int y = sloc.y + Rnd.get(2 * PET_WALK_RANGE) - PET_WALK_RANGE;
    int z = GeoEngine.getHeight(x, y, sloc.z, actor.getReflection().getGeoIndex());
    actor.setRunning();
    actor.moveToLocation(x, y, z, 0, true);
    return true;
  }

  @Override
  protected void onEvtAttacked(L2Character attacker, int damage)
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.