summaryrefslogtreecommitdiff
path: root/docs/auctionhouse.md
blob: bf4603d72a057e97c976b445e61702ab22e1c602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# auctionhouse

[<-Back-to:Characters](database-characters.md)

**The \`auctionhouse\` table**

Contains all information about the currently ongoing auctions in the auction houses. It controls what items are put up for auction and who put it up, who is the highest bidder, etc.

This table is used by Trinity while running and not a table that you would usually edit.

**Structure**

| Field               | Type    | Attributes | Key | Null | Default | Extra | Comment |
|---------------------|---------|------------|-----|------|---------|-------|---------|
| [id][1]             | int(10) | unsigned   | PRI | NO   | 0       |       |         |
| [auctioneerguid][2] | int(10) | unsigned   |     | NO   | 0       |       |         |
| [itemguid][3]       | int(10) | unsigned   | UNI | NO   | 0       |       |         |
| [itemowner][4]      | int(10) | unsigned   |     | NO   | 0       |       |         |
| [buyoutprice][5]    | int(10) | unsigned   |     | NO   | 0       |       |         |
| [time][6]           | int(10) | unsigned   |     | NO   | 0       |       |         |
| [buyguid][7]        | int(10) | unsigned   |     | NO   | 0       |       |         |
| [lastbid][8]        | int(10) | unsigned   |     | NO   | 0       |       |         |
| [startbid][9]       | int(10) | unsigned   |     | NO   | 0       |       |         |
| [deposit][10]       | int(10) | unsigned   |     | NO   | 0       |       |         |

[1]: #id
[2]: #auctioneerguid
[3]: #itemguid
[4]: #itemowner
[5]: #buyoutprice
[6]: #time
[7]: #buyguid
[8]: #lastbid
[9]: #startbid
[10]: #deposit

**Description of the fields**

### id

Unique identifier for every auction.

### auctioneerguid

The GUID of the creature where the auction item was added. See creature.guid

### itemguid

The GUID of the item that is up for auction. See item\_instance.guid

### itemowner

The GUID of the owner of the item up for auction. See characters.guid

### buyoutprice

The buyout price of the item in copper. Divide by 100 to get silver and by 100 again to get gold.

### time

The time when the auction will end, measured in [Unix time](http://en.wikipedia.org/wiki/Unix_time) (number of seconds from 00:00 Jan 1, 1970).

### buyguid

The GUID of the highest bidder. See characters.guid

### lastbid

The amount of copper of the last bid put on the item.

### startbid

The amount of copper of the starting bid.

### deposit

The amount of copper spent on the deposit.