Project

General

Profile

Bug #2261

Me:GetMyOrders doesn't fill index

Added by john41 4 months ago. Updated 17 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
broken feature(s)
vbulletin_issue_id:

Description

According to the changelog, you can retrieve a list of current market orders with a snippet like this:

function main()
{
    variable index:myorder OrderIndex
    Me:UpdateMyOrders
    while !${Me:GetMyOrders[OrderIndex]}
    {
        wait 10
        echo ${OrderIndex}
    }
    echo Found ${OrderIndex.Used} orders
}

Unfortunately, the orders are never fetched, and you end up stuck in the while loop.

Steps to Reproduce:

  1. Create a market order
    1. Open the market window by clicking the market icon on left sidebar (default hotkey: alt-r)
    2. Navigate to any item on the market
    3. Click 'Place Buy Order' button at the bottom
    4. Enter a 'Price' lower than the current lowest sell value.
    5. Click the 'Buy' button
    6. You should now see a line in the market listing for your chosen item with a blue background. This is your buy order
  2. Create a script that contains the above code and run it

Expected Result:

  1. The script should print out the number of found orders (one)

Actual Result:

  1. 'UpdateMyOrders' fails to fetch any of the users orders, resulting in the while loop running forever

 

Side Note:

There may be other issues with the market order functionality, such as issues with buying/selling items, but they are hard to test until 'UpdateMyOrders' works.

#1

Updated by HeroXx 17 days ago

 

Also seeing this as of 09/04/2024.

Also available in: Atom PDF