Package com.l2jfrozen.gameserver.model.actor.position

Examples of com.l2jfrozen.gameserver.model.actor.position.L2CharPosition


          _mobiliseTask = ThreadPoolManager.getInstance().scheduleGeneral(new SetMobilised(_antharas), 16);
         
          // Move at random.
          if (FWA_MOVEATRANDOM)
          {
            L2CharPosition pos = new L2CharPosition(Rnd.get(175000,178500), Rnd.get(112400, 116000), -7707, 0);
            _moveAtRandomTask = ThreadPoolManager.getInstance().scheduleGeneral(new MoveAtRandom(_antharas, pos),500);
          }
         
          if (_socialTask != null)
          {
View Full Code Here


        else
        {
          _vanHalter.startFear();
          if(_vanHalter.getZ() >= -10476)
          {
            L2CharPosition pos = new L2CharPosition(-16397, -53308, -10448, 0);
            if(_vanHalter.getX() == pos.x && _vanHalter.getY() == pos.y)
            {
              _vanHalter.stopEffects(L2Effect.EffectType.FEAR);
              _vanHalter.setIsAfraid(false);
              _vanHalter.updateAbnormalEffect();
            }
            else
            {
              _vanHalter.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, pos);
            }
          }
          else if(_vanHalter.getX() >= -16397)
          {
            L2CharPosition pos = new L2CharPosition(-15548, -54830, -10475, 0);
            _vanHalter.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, pos);
          }
          else
          {
            L2CharPosition pos = new L2CharPosition(-17248, -54830, -10475, 0);
            _vanHalter.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, pos);
          }
        }
        if(_halterEscapeTask != null)
        {
View Full Code Here

      setisReturningToSpawnPoint(true);
      clearAggroList();

      if(hasAI())
      {
        getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(_homeX, _homeY, _homeZ, 0));
      }
    }
  }
View Full Code Here

    posX += signx * FEAR_RANGE;
    posY += signy * FEAR_RANGE;

    Location destiny = GeoData.getInstance().moveCheck(getEffected().getX(), getEffected().getY(), getEffected().getZ(), posX, posY, posZ);
    getEffected().setRunning();
    getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO,new L2CharPosition(destiny.getX(),destiny.getY(),destiny.getZ(),0));
   
    destiny = null;
    return true;
  }
View Full Code Here

      {
        activeChar.sendPacket(ActionFailed.STATIC_PACKET);
        return;
      }
     
      activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(_targetX, _targetY, _targetZ, 0));
    }
  }
View Full Code Here

        _log.fine(getObjectId() + ": moving hometo" + " X:" + _homeX + " Y:" + _homeY + " Z:" + _homeZ);
      }

      clearAggroList();

      getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(_homeX, _homeY, _homeZ, 0));
    }
  }
View Full Code Here

  }

  public void stopCycle()
  {
    _inCycle = false;
    stopMove(new L2CharPosition(getX(), getY(), getZ(), getPosition().getHeading()));
  }
View Full Code Here

      setisReturningToSpawnPoint(true);
      clearAggroList();

      if(hasAI())
      {
        getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(getSpawn().getLocx(), getSpawn().getLocy(), getSpawn().getLocz(), 0));
      }
    }
  }
View Full Code Here

      randomY = spawnY + Rnd.get(150);
      if(randomX < 50)
        randomX = 50;
      if(randomY < 50)
        randomY = 50;
      getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(randomX,randomY,getZ(),0));
    }
View Full Code Here

        if(x == 0 && y == 0){
          activeChar.sendMessage("Usage: //walk <valid_coordinates>");
          return false;
        }
       
        L2CharPosition pos = new L2CharPosition(x, y, z, 0);
        activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, pos);
        return true;
       
      }
      case admin_recall_npc:{
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.actor.position.L2CharPosition

Copyright © 2018 www.massapicom. 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.