summaryrefslogtreecommitdiff
path: root/docs/battleground_deserters.md
blob: 48611246b7c24cb5b5624b68a0234a4b22029e3d (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
# battleground\_deserters

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

**The \`battleground\_deserters\` table**

This table holds datas about BattleGrounds deserters. To enable storing this kind of informations, set **Battleground . TrackDeserters . Enable   =   1** in **worldserver.config** file.

**Structure**

| Field         | Type     | Attributes | Key | Null | Default | Extra | Comment |
|---------------|----------|------------|-----|------|---------|-------|---------|
| [guid][1]     | int      | unsigned   |     |      |         |       |         |
| [type][2]     | tinyint  | unsigned   |     |      |         |       |         |
| [datetime][3] | datetime |            |     |      |         |       |         |

[1]: #guid
[2]: #type
[3]: #datetime

**Description of the fields**

### guid

Link to characters.guid

### type

| Value | Description                                             |
|-------|---------------------------------------------------------|
| 0     | player leaves the BG                                    |
| 1     | player is kicked from BG because offline                |
| 2     | player is invited to join and refuses to do it          |
| 3     | player is invited to join and do nothing (time expires) |
| 4     | player is invited to join and logs out                  |

### datetime

date and time of the event