Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.L2CharPosition


      y = Universe.MIN_Y;
    }
   
    int z = getZ();
   
    L2CharPosition pos = new L2CharPosition(x, y, z, 0);
   
    // Set the AI Intention to AI_INTENTION_MOVE_TO
    getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, pos);
  }
View Full Code Here


        //posX += signx*40; //distance less than melee attacks (40)
        //posY += signy*40;

        getEffected().setRunning();
        getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO,
                              new L2CharPosition(posX +(signx*40),posY + (signy*40),posZ,0));
        getEffected().sendPacket(SystemMessage.sendString("You can feel Bluff's effect"));
        getEffected().setTarget(null);
        onActionTime();
    }
View Full Code Here

    if (getEffected().getY()>getEffector().getY())
      signy=1;
    posX += signx*FEAR_RANGE;
    posY += signy*FEAR_RANGE;
    getEffected().setRunning();
    getEffected().getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO,new L2CharPosition(posX,posY,posZ,0));
    return true;
  }
View Full Code Here

        if (Config.DEBUG)
          _log.fine("Teleporting player "+player.getName()+" to new location: "+list.getLocX()+":"+list.getLocY()+":"+list.getLocZ());

        // teleport
        player.teleToLocation(list.getLocX(), list.getLocY(), list.getLocZ(), true);
        player.stopMove(new L2CharPosition(list.getLocX(), list.getLocY(), list.getLocZ(), player.getHeading()));
      }
    }
    else
    {
      _log.warning("No teleport destination with id:" +val);
View Full Code Here

    {
      if (Config.DEBUG) _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

TOP

Related Classes of net.sf.l2j.gameserver.model.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.