Post
by AlphaBeta » Mon Jun 09, 2003 3:04 pm
$bazaar(<item name>,xxx) where xxx is
"price" - average price (based on items [ie if 100 are for sale at 3p from player A and another is sold for 1pp at player B, it will be a little under 3000...]) (returns value in copper...)
"price,average,item" - see above (in cp)
"price,average,player" - in the above example, if only two players had the item, the average would be 2000, not a little under 3000 (in cp)
"price,lowest" - lowest price available for an item (in cp)
"price,highest" - Highest price available for an item (in cp)
"seller" - name of the seller selling the item
"seller,id" - so we can use $spawn(id,xxx) :p
"age" - track the time it took to sell an item based on trader still trading but item is gone fom trader inventory.
also things from $item([pack,]slot,xxx) are usable
returns:
thing its supposed to
-1 if item is not found
-2 if some weird error occurs (i dunno... item has no price? or someting?)
Would be nifty if you could read/write to the bazzar .ini file to change prices on the fly. This might require exiting trader mode and restarting it.
Also would be nice if we could store prices in a historical database for trending data and to spot great deals on items etc.