View Single Post
  #4  
Old 04-11-2008, 01:20 AM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

I have not read original post in great detail, but thinking how eq2 market works, here general idea layout, how I see the principle.

1. A Db will recieve a new table called BAZAAR (or market)
2. All players will have access to special command like /bazaar (or /market) or posibly #market.
Inside that command players can: add item to the market listing with a price, or search for items offered.
#market add ITEMID PRICE (perhaps dragging icon link into comand line text box woudl work?)
#market REMOVE ITEMID (your own item only of course)
#market listitems (or search for by various options.)
#market BUY ITEMID

One player ADDS the item to the market it is REMOVED from players inventory or bank (or perhaps make a rule item MUST be on a corsor or soemthiogn liek FIRST inventory slot) and a new row is added to the MARKEt table

The MARKEt table will need to have following collumns:

listing_id, itemid, item_name, player_id (seller), price, quantety

When players buys an item, cash is removed from his person, item is removed from the market and put onto buyers cursor, and cash them is added to sellers bank

so in conclsuion - players inside the game can add, remove their own items to the market, and buy them.


The way I see - such structure works no diffirently than build in Gm comands.
No need to stand alone add-ons

Of course my understanding of EMU code only goes so deep, but this seems like simply enough general concept.

Oh yeah - server admin should be bale to restrict access to market for exmaple to specific zones.

Last edited by ChaosSlayer; 04-11-2008 at 09:24 AM..
Reply With Quote