summaryrefslogtreecommitdiff
path: root/docs/character_instance.md
blob: a29ad1c57e788a1ae487f72a5ea5fe648d9a82b7 (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
# character\_instance

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

**The \`character\_instance\` table**

Contains the instance data for characters.

**Structure**

| Field          | Type       | Attributes | Key | Null | Default | Extra | Comment |
|----------------|------------|------------|-----|------|---------|-------|---------|
| [guid][1]      | int(10)    | unsigned   | PRI | NO   | 0       |       |         |
| [instance][2]  | int(10)    | unsigned   | PRI | NO   | 0       |       |         |
| [permanent][3] | tinyint(3) | unsigned   |     | NO   | 0       |       |         |

[1]: #guid
[2]: #instance
[3]: #permanent

**Description of the fields**

### guid

The GUID of the character. See [characters.guid](Characters+tc2#Characterstc2-guid)

### instance

The instance ID. See [instance.id](Instance+tc2#Instancetc2-id)

### permanent

Boolean 0 or 1 controlling if the player has been bound to the instance. A player is bound to the instance only when he (or his party/raid) kills a creature with the CREATURE\_FLAG\_EXTRA\_INSTANCE\_BIND flag set in the [flags\_extras](creature_template#creature_template-flags_extra) field.