Bug #2261
Me:GetMyOrders doesn't fill index
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:
- Create a market order
- Open the market window by clicking the market icon on left sidebar (default hotkey: alt-r)
- Navigate to any item on the market
- Click 'Place Buy Order' button at the bottom
- Enter a 'Price' lower than the current lowest sell value.
- Click the 'Buy' button
- You should now see a line in the market listing for your chosen item with a blue background. This is your buy order
- Create a script that contains the above code and run it
Expected Result:
- The script should print out the number of found orders (one)
Actual Result:
- '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.