10-17-2013, 08:40 AM
It is a non-object-oriented, but I thought an API that can be used simply.
[/code][/php]
you might be BAN When you access the board anywhere! ;-O
Code:
-- Draft of MarketMgr API
-- main search screen of market board
MarketMgr.Search(marketBordObjectId, itemType, minLevel, maxLevel, queryString)
-- list of exhibition
MarketMgr.SearchDetail(marketBordObjectId, item_id)
Code:
-- Use cases
-- somewhere ul'dah hoge market board object id
board_id = 9999
-- get list of shards
MarketMgr.Search(board_id, "Crystal", nil, nil, "Shard")
-- => {
-- {name = "Lightning Shard", qty = 3, itemId = 120},
-- {name = "Earth Shard", qty = 0, itemId = 130},
-- .
-- .
-- .
-- }
-- get list of exhibition Lightning Shard
MarketMgr.SearchDetail(board_id, 123)
-- => {
-- {qty = 100, price = 3000, createdBy = 2500, itemId = 120},
-- {qty = 100, price = 3200, createdBy = 4010, itemId = 120},
-- {qty = 100, price = 6000, createdBy = 900, itemId = 121}, -- a Example, HQ is different ID
-- }
(10-17-2013, 06:58 AM)jetmagnum Wrote: I was also thinking the same thing.. And also have a internal app to sell things and buy things without the need for you to go to the market board. Hell it would be even better if we had all the stores at our figure tips. All we got to do is open the app, and look for stores to buy from and bam without being in a city or teleport to get that item.
you might be BAN When you access the board anywhere! ;-O