Item Monetary Values

Post Reply
fallen45078
Posts: 33
Joined: Wed Dec 03, 2014 2:17 pm

Item Monetary Values

Post by fallen45078 » Sun May 08, 2016 10:53 am

Where would one find the values of items? The short is that I want to completely fill the auction house, but I want to set each item's price to equal the buy back price at npc shops. Im trying to find a balance between item availability and the economy of my server. The idea is to stop someone from buying an item from the auction house and immediately selling it for a profit at an npc.

I would have assumed it'd be stored in a table, but I cant seem to find it.

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Item Monetary Values

Post by whasf » Sun May 08, 2016 11:14 am

They're in the individual scripts for the NPC that sells them.
-- Whasf

fallen45078
Posts: 33
Joined: Wed Dec 03, 2014 2:17 pm

Re: Item Monetary Values

Post by fallen45078 » Sun May 08, 2016 1:14 pm

I found what I was looking for in the item_basic table. This table lists the sell value for each item.

What I need now is the SQL command that would set the price on item 123456 on the auction house to the value listed in the table item_basic for item 123456.

fallen45078
Posts: 33
Joined: Wed Dec 03, 2014 2:17 pm

Re: Item Monetary Values

Post by fallen45078 » Sun May 08, 2016 3:45 pm

Here's the solution. Posting this because no one ever posts how they solved their problem..

UPDATE auction_house
SET price = (SELECT BaseSell
FROM item_basic
WHERE auction_house.itemid = item_basic.itemid)
WHERE EXISTS (SELECT BaseSell
FROM item_basic
WHERE auction_house.itemid = item_basic.itemid);





this query will set your auction house prices to equal what the "sell" price TO the npc shop is. This closes the loophole of players buying cheap in the auction house and selling the items to an NPC shop for profit.

nasomi
Posts: 141
Joined: Wed Feb 13, 2013 8:51 am

Re: Item Monetary Values

Post by nasomi » Mon May 09, 2016 12:11 pm

That would set the price, but it wouldn't fill the AH. Also be weary of crafting mats, many guild npc's will buy items back for more than the base_sell in item_basic.

fallen45078
Posts: 33
Joined: Wed Dec 03, 2014 2:17 pm

Re: Item Monetary Values

Post by fallen45078 » Mon May 09, 2016 8:19 pm

You're correct, but setting the price was all I needed. My auction house was already populated at 100 gil per item.

Post Reply