Caught a cold for New Years, but otherwise had a good one. =P
I understand that I can post on forums, but if helpbot store had an in game interface, it would get so much more use. I would like to request the following features:
/tell helpbot DROPPED_ITEM [price [quantity]]
Opens a new store if player doesn't already have one. Adds the item to the store and sets the price and quantity if items if specified. The more I think about it the more I like the idea of having a limit of 21 "records" for any person's store. People can sell multiple of the same item (see next feature) the can "stack" things that normally don't stack in AO, but this limits the ability for people to abuse the helpbot store.
!store stock UID price quantity
Lets you modify the price and quantity of an item in your store. Price can be a positive integer or "PST". Setting quantity to a number less than or equal to zero removes the item from your store. Where, UID is an internal unique ID number that helpbot (or MYSQL) assigned this item (not the AO database Item ID).
!store sold UID
Decrements the quantity value of the item specified by UID by one. If the quantity reaches zero, the item is removed from the store.
!store [show] USERNAME
Displays all items currently being sold by USERNAME. Would having the command be "store show" be a more consistent way to access helpbot store? More typing but makes the interface more consistent?
!store search [QL] SEARCH_STRING
Searches all the items in all the stores on helpbot returns any matches. Comparison shopping is born! We shopaholics are happy!
The helpbot store would need a database with the following table structure:
| UID | aodb_itemid | [item_name] | QL | sellername | quantity | price
I don't know if item_name is needed because I don't know how the item lookup would work, but if this was done using SQL, then the !store search command would some kind of "where item_name matches SEARCH_STRING" kind of SQL command. (I'm sorry, I don't know much SQL).
When displaying search results for people's stores, the standard helpbot/itembot display plus quantity and price:
[picture] clickable_itemref QL price quantity Buy_this_now_clicky
Where the clicky at the end sends a tell to the player who is selling this item.
However if someone were to look up their own store on helpbot: "!store [show] YOUR_OWN_NAME", the listing would put the UID (maybe in parenthesis) at the end of each row instead of the "buy this item" clicky at the end of the listing. This would allow people to manage the items in their store:
[picture] clickable_itemref QL price quantity ( UID )