Package net.sf.l2j.gameserver.model

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


                int x = Integer.parseInt(x1);
                String y1 = st.nextToken();
                int y = Integer.parseInt(y1);
                String z1 = st.nextToken();
                int z = Integer.parseInt(z1);
                L2CharPosition pos = new L2CharPosition(x,y,z,0);
                activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO,pos);
            }
            catch (Exception e)
            {
                if (Config.DEBUG) _log.info("admin_walk: "+e);
View Full Code Here


            if (Config.DEBUG) _log.fine(getObjectId()+": moving home");
            setisReturningToSpawnPoint(true);   
            clearAggroList();
           
            if (hasAI())
                getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(_homeX, _homeY, _homeZ, 0));
        }
    }
View Full Code Here

        activeChar.setInBoat(true);
      }
      L2BoatInstance boat = BoatManager.getInstance().GetBoat(_boatId);
      activeChar.setBoat(boat);
      activeChar.setInBoatPosition(_pos);
      activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO_IN_A_BOAT, new L2CharPosition(_pos.getX(),_pos.getY(), _pos.getZ(), 0), new L2CharPosition(_origin_pos.getX(),_origin_pos.getY(),_origin_pos.getZ(), 0));
    }
  }
View Full Code Here

    if (obj instanceof L2NpcInstance)
    {
      L2NpcInstance temp = (L2NpcInstance) obj;
      temp.setTarget(activeChar);
      temp.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO,
          new L2CharPosition(activeChar.getX(),activeChar.getY(), activeChar.getZ(), 0 ));
//      temp.moveTo(player.getX(),player.getY(), player.getZ(), 0 );
    }

  }
View Full Code Here

    int destinationZ = _route.get(_currentPos).getMoveZ();

    //notify AI of MOVE_TO
    setWalkingToNextPoint(true);
 
    setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(destinationX, destinationY, destinationZ, 0));
  }
View Full Code Here

                {
                    x -= Rnd.nextInt(FESTIVAL_MAX_OFFSET_X);
                    y -= Rnd.nextInt(FESTIVAL_MAX_OFFSET_Y);
                }

                L2CharPosition moveTo = new L2CharPosition(x, y, _startLocation._z, Rnd.nextInt(65536));

                festivalMob.setRunning();
                festivalMob.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, moveTo);
            }
        }
View Full Code Here

                            signx=1;
                        if (_actor.getY()>getAttackTarget().getY())
                            signy=1;
                        posX += Math.round((float)((signx * ((range / 2) + (Rnd.get(range)))) - distance));
                        posY += Math.round((float)((signy * ((range / 2) + (Rnd.get(range)))) - distance));
                        setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(posX, posY, posZ, 0));
                        return;
                    }
                }
            }

View Full Code Here

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

      if(activeChar.getParty() != null)
        activeChar.getParty().broadcastToPartyMembers(activeChar,new PartyMemberPosition(activeChar));
    }
  }
View Full Code Here

      break;
    case 53: // move to target
      if (target != null && pet != null && pet != target && !pet.isMovementDisabled())
      {
        pet.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO,
            new L2CharPosition(target.getX(),target.getY(), target.getZ(), 0 ));
      }
      break;
    case 54: // move to target hatch/strider
      if (target != null && pet != null && pet != target && !pet.isMovementDisabled())
      {
        pet.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO,
            new L2CharPosition(target.getX(),target.getY(), target.getZ(), 0 ));
      }
      break;
    case 96: // Quit Party Command Channel
      _log.info("98 Accessed");
      break;
View Full Code Here

          + " server x:" + player.getX() + " y:" + player.getY()
          + " z:" + player.getZ());
    if (player.getAI() != null)
    {
      player.getAI().notifyEvent(CtrlEvent.EVT_ARRIVED_BLOCKED,
          new L2CharPosition(_x, _y, _z, _heading));
    }
    if (player instanceof L2PcInstance
        && ((L2PcInstance) player).getParty() != null)
      ((L2PcInstance) player).getParty().broadcastToPartyMembers(
          ((L2PcInstance) player),
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.