summaryrefslogtreecommitdiff
path: root/docs/phase_area.md
blob: 5ea22d84145e5ba53b0b80e73b7acbbbef091a78 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# phase\_area

[Back-to:World](World)

# Tables**:** phase\_area

## General

PhaseIds added to player by zone/area events. 
Each line holds one Zone or Area with one phaseId and a description.  Each line is active by default. With the table [conditions](conditions)you can edit the working range of the phase.

## Structure

<table>
<thead>
<tr class="header">
<th>Field</th>
<th>Type</th>
<th>Null</th>
<th>Key</th>
<th>Default</th>
<th>Extra</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><a href="#areaid">AreaId</a></td>
<td>int</td>
<td>No</td>
<td>Pri</td>
<td>0</td>
<td><br />
</td>
</tr>
<tr class="even">
<td><a href="#phaseid">PhaseId</a></td>
<td>int</td>
<td>No</td>
<td>Pri</td>
<td>0</td>
<td><br />
</td>
</tr>
<tr class="odd">
<td><a href="#comment">Comment</a></td>
<td>varchar</td>
<td><br />
</td>
<td><br />
</td>
<td><br />
</td>
<td><br />
</td>
</tr>
</tbody>
</table>

## Description of the fields

### AreaId

This is the Zone or Area identifier, see [AreaTrigger.dbc](AreaTrigger)

### PhaseId

This is the connected PhaseId 

### Comment

A free description.

**
Examples**

As Demo we look at Kezan, Startarea Goblin.

The Player-Character is starting with PhaseId 378 and change on Quest Reward 14109 to Phase 379.

So first we set the definition of both phaseIds to table phase\_area

| AreaId | PhaseId | Comment         |
|--------|---------|-----------------|
| 4737   | 378     | Kezan startarea |
| 4737   | 379     | Kezan startarea |

Now we must declare the Quest-Range by using conditions. Note: we starting from start in phase 378, so we need no start-range, only the end range

| SourceTypeOrReferenceId | SourceGroup | SourceEntry | ConditionTypeOrReference | ConditionValue1 | NegativeCondition | Comment                                            |
|-------------------------|-------------|-------------|--------------------------|-----------------|-------------------|----------------------------------------------------|
| 26                      | 378         | 4737        | 8                        | 14109           | 1                 | Kezan Set in Phase 378 from start to -Reward 14109 |

Next we declare the following range for phase 379 starting with reward on quest 10109 and end on reward quest 14153

| SourceTypeOrReferenceId | SourceGroup | SourceEntry | ConditionTypeOrReference | ConditionValue1 | NegativeCondition | Comment                                  |
|-------------------------|-------------|-------------|--------------------------|-----------------|-------------------|------------------------------------------|
| 26                      | 379         | 4737        | 8                        | 14109           | 0                 | Kezan Set in Phase 379 from reward 14109 |
| 26                      | 379         | 4737        | 8                        | 14153           | 1                 | Kezan Set in Phase 379 to reward 14153   |

And so on....

Note: The quest 14109/14110 14113/14153 are Required Gender Quest.