Examples of StopMove


Examples of com.l2client.network.game.ServerPackets.StopMove

        break;
      case 0x45:
        pa = new ShortCutInit();
        break;
      case 0x47:
        pa = new StopMove();
        break;
      case 0x48:
//        pa = new MagicSkillUse();
        break;
      case 0x49:
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.StopMove

        if(((L2PcInstance)this).isInBoat())
          broadcastPacket(new ValidateLocationInVehicle(this));
      }
    }
   
    broadcastPacket(new StopMove(this));
    //MAJAX fix
    //broadcastPacket(new ValidateLocation(this));
   
    if(updateKnownObjects)
    {
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.StopMove

                if (type.equals("1"))
                    player.startAbnormalEffect(0x0400);
                else
                    player.startAbnormalEffect(0x0800);
                player.setIsParalyzed(true);
                StopMove sm = new StopMove(player);
                player.sendPacket(sm);
               player.broadcastPacket(sm);
               }
             }
       catch (Exception e)
       {}
    }
   
    else if (command.equals("admin_unpara")||command.equals("admin_unpara_menu"))
    {
    try
    {
      L2Object target = activeChar.getTarget();
      L2Character player = null;
      if (target instanceof L2Character)
      {
         player = (L2Character)target;
         player.stopAbnormalEffect((short)0x0400);
         player.setIsParalyzed(false);
      }
    }
    catch (Exception e)
    {}
    }
   
    else if (command.startsWith("admin_para_all"))
    {
    try
    {
    for (L2PcInstance player : activeChar.getKnownList().getKnownPlayers().values())
      {
      if (!player.isGM())
         {
           player.startAbnormalEffect(0x0400);
           player.setIsParalyzed(true);
          StopMove sm = new StopMove(player);
           player.sendPacket(sm);
           player.broadcastPacket(sm);
           }
      }
    }
    catch (Exception e)
    { }
    }
   
    else if (command.startsWith("admin_unpara_all"))
    {
    try
    {
    for (L2PcInstance player : activeChar.getKnownList().getKnownPlayers().values())
      {
         player.stopAbnormalEffect(0x0400);
         player.setIsParalyzed(false);
      }
    }
    catch (Exception e)
    {}
    }

    else if(command.startsWith("admin_bighead"))
    {
      try
      {
        L2Object target = activeChar.getTarget();
        L2Character player = null;

        if(target instanceof L2Character)
        {
          player = (L2Character) target;
          player.startAbnormalEffect(0x2000);
        }

        target = null;
        player = null;
      }
      catch(Exception e)
      {
        if(Config.ENABLE_ALL_EXCEPTIONS)
          e.printStackTrace();
      }
    }

    else if(command.startsWith("admin_shrinkhead"))
    {
      try
      {
        L2Object target = activeChar.getTarget();
        L2Character player = null;

        if(target instanceof L2Character)
        {
          player = (L2Character) target;
          player.stopAbnormalEffect((short) 0x2000);
        }

        target = null;
        player = null;
      }
      catch(Exception e)
      {
        if(Config.ENABLE_ALL_EXCEPTIONS)
          e.printStackTrace();
      }
    }

    else if(command.startsWith("admin_gmspeed"))
    {
      try
      {
        int val = Integer.parseInt(st.nextToken());
        boolean sendMessage = activeChar.getFirstEffect(7029) != null;

        activeChar.stopSkillEffects(7029);

        if(val == 0 && sendMessage)
        {
          activeChar.sendPacket(new SystemMessage(SystemMessageId.EFFECT_S1_DISAPPEARED).addSkillName(7029));
        }
        else if(val >= 1 && val <= 4)
        {
          L2Skill gmSpeedSkill = SkillTable.getInstance().getInfo(7029, val);
          activeChar.doCast(gmSpeedSkill);
        }
      }
      catch(Exception e)
      {
        if(Config.ENABLE_ALL_EXCEPTIONS)
        e.printStackTrace();
     
        activeChar.sendMessage("Use //gmspeed value (0=off...4=max).");
      }
      finally
      {
        activeChar.updateEffectIcons();
      }
    }

    else if(command.startsWith("admin_polyself"))
    {
      try
      {
        String id = st.nextToken();

        activeChar.getPoly().setPolyInfo("npc", id);
        activeChar.teleToLocation(activeChar.getX(), activeChar.getY(), activeChar.getZ(), false);

        CharInfo info1 = new CharInfo(activeChar);
        activeChar.broadcastPacket(info1);
        UserInfo info2 = new UserInfo(activeChar);
        activeChar.sendPacket(info2);

        info1 = null;
        info2 = null;
        id = null;
      }
      catch(Exception e)
      {
        if(Config.ENABLE_ALL_EXCEPTIONS)
          e.printStackTrace();
      }
    }

    else if(command.startsWith("admin_unpolyself"))
    {
      try
      {
        activeChar.getPoly().setPolyInfo(null, "1");
        activeChar.decayMe();
        activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ());

        CharInfo info1 = new CharInfo(activeChar);
        activeChar.broadcastPacket(info1);
        UserInfo info2 = new UserInfo(activeChar);
        activeChar.sendPacket(info2);

        info1 = null;
        info2 = null;
      }
      catch(Exception e)
      {
        if(Config.ENABLE_ALL_EXCEPTIONS)
          e.printStackTrace();
      }
    }

    else if(command.equals("admin_clear_teams"))
    {
      try
      {
        for(L2PcInstance player : activeChar.getKnownList().getKnownPlayers().values())
        {
          player.setTeam(0);
          player.broadcastUserInfo();
        }
      }
      catch(Exception e)
      {
        if(Config.ENABLE_ALL_EXCEPTIONS)
          e.printStackTrace();
      }
    }

    else if(command.startsWith("admin_setteam_close"))
    {
      try
      {
        String val = st.nextToken();

        int teamVal = Integer.parseInt(val);

        for(L2PcInstance player : activeChar.getKnownList().getKnownPlayers().values())
        {
          if(activeChar.isInsideRadius(player, 400, false, true))
          {
            player.setTeam(0);

            if(teamVal != 0)
            {
              SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
              sm.addString("You have joined team " + teamVal);
              player.sendPacket(sm);
              sm = null;
            }

            player.broadcastUserInfo();
          }
        }

        val = null;
      }
      catch(Exception e)
      {
        if(Config.ENABLE_ALL_EXCEPTIONS)
          e.printStackTrace();
      }
    }

    else if(command.startsWith("admin_setteam"))
    {
      String val = command.substring(14);

      int teamVal = Integer.parseInt(val);

      L2Object target = activeChar.getTarget();
      L2PcInstance player = null;

      if(target instanceof L2PcInstance)
      {
        player = (L2PcInstance) target;
      }
      else
        return false;

      player.setTeam(teamVal);

      if(teamVal != 0)
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        sm.addString("You have joined team " + teamVal);
        player.sendPacket(sm);
        sm = null;
      }

      player.broadcastUserInfo();
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.StopMove

    if(_clientMoving || pos != null)
    {
      _clientMoving = false;

      // Send a Server->Client packet StopMove to the actor and all L2PcInstance in its _knownPlayers
      StopMove msg = new StopMove(_actor);
      _actor.broadcastPacket(msg);
      msg = null;

      if(pos != null)
      {
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.StopMove

  protected void clientStoppedMoving()
  {
    if(_clientMovingToPawnOffset > 0) // movetoPawn needs to be stopped
    {
      _clientMovingToPawnOffset = 0;
      StopMove msg = new StopMove(_actor);
      _actor.broadcastPacket(msg);
      msg = null;
    }
    _clientMoving = false;
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.StopMove

      activeChar.setActiveEnchantItem(null);
    }
   
    if (_targetX == _originX && _targetY == _originY && _targetZ == _originZ)
    {
      activeChar.sendPacket(new StopMove(activeChar));
      return;
    }
   
    /*
     * // Correcting targetZ from floor level to head level (?) // Client is giving floor level as targetZ but that floor level doesn't // match our current geodata and teleport coords as good as head level! // L2J uses floor, not head level as char coordinates. This is some // sort of
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.StopMove

   * @see com.l2jfrozen.gameserver.model.L2Character#doCast(com.l2jfrozen.gameserver.model.L2Skill)
   */
  protected void sitCastAndFollow(L2Skill skill, L2Character target)
  {
    stopMove(null);
    broadcastPacket(new StopMove(this));
    getAI().setIntention(AI_INTENTION_IDLE);

    setTarget(target);
    doCast(skill);
    getAI().setIntention(CtrlIntention.AI_INTENTION_FOLLOW, _owner);
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.StopMove

   
    // Send a Server->Client packet ActionFailed to this L2PcInstance
    sendPacket(ActionFailed.STATIC_PACKET);
   
    // Send a Server->Client packet StopMove to this L2PcInstance
    StopMove sm = new StopMove(this);
    if (Config.DEBUG)
      _log.fine("pickup pos: " + target.getX() + " " + target.getY() + " " + target.getZ());
    sendPacket(sm);
    sm = null;
   
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.StopMove

   */
  @Override
  protected void doPickupItem(L2Object object)
  {
    getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
    StopMove sm = new StopMove(getObjectId(), getX(), getY(), getZ(), getHeading());
   
    if (Config.DEBUG)
    {
      _logPet.fine("Pet pickup pos: " + object.getX() + " " + object.getY() + " " + object.getZ());
    }
View Full Code Here

Examples of l2p.gameserver.serverpackets.StopMove

          _moveTask.cancel(false);
          _moveTask = null;
        }
        _targetRecorder.clear();
      }
      broadcastPacket(new StopMove(this));
      if(validate)
      {
        validateLocation(1);
      }
    }
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.