OSRS Plugin API
    Preparing search index...

    Function locGetOp

    • Gets the name of the action at the provided index in the list of actions possible for the last active loc.

      Parameters

      • includeTags: number

        whether or not to include tags in the op string

      • opNumber: number

        the index in the list of actions to read from

      Returns string

      the name of the action at the given index for the last active loc.

      local op1 = osrs.ClientOp.locGetOp(1, 1)
      local op2 = osrs.ClientOp.locGetOp(1, 2)
      local op3 = osrs.ClientOp.locGetOp(1, 3)
      local op4 = osrs.ClientOp.locGetOp(1, 4)
      local op5 = osrs.ClientOp.locGetOp(1, 5)
      osrs.print("Loc Op: 1:", op1, ", 2: ",op2, ", 3: ",op3,", 4: ", op4, ", 5: ", op5)