MMOMinion

Full Version: a plan to implement the market board function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I think nice to have the ability to search the market board.

I think that it is useful to be able to save the search results to a file.

I want to make an external program to analyze the trend of the market.

It is the birth of Eoruzea stock exchange!
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.
It is a non-object-oriented, but I thought an API that can be used simply.

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
--    }
[/code][/php]

(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