summaryrefslogtreecommitdiffstats
path: root/src/control/Script9.cpp
blob: 1bd4f99d85f40d6caa0cea485e3ca5494a0fb14b (plain) (blame)
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
#include "common.h"

#include "Script.h"
#include "ScriptCommands.h"

int8 CRunningScript::ProcessCommands1500To1599(int32 command)
{
	switch (command) {
	case COMMAND_1497:
		script_assert(false);
		return 0;
	case COMMAND_1498:
		script_assert(false);
		return 0;
	case COMMAND_1499:
		script_assert(false);
		return 0;
	case COMMAND_1500:
		script_assert(false);
		return 0;
	case COMMAND_1501:
		script_assert(false);
		return 0;
	case COMMAND_1502:
		script_assert(false);
		return 0;
	case COMMAND_1503:
		script_assert(false);
		return 0;
	case COMMAND_1504:
		script_assert(false);
		return 0;
	case COMMAND_1505:
		script_assert(false);
		return 0;
	case COMMAND_1506:
		script_assert(false);
		return 0;
	case COMMAND_1507:
		script_assert(false);
		return 0;
	case COMMAND_1508:
		script_assert(false);
		return 0;
	case COMMAND_1509:
		script_assert(false);
		return 0;
	case COMMAND_1510:
		script_assert(false);
		return 0;
	case COMMAND_1511:
		script_assert(false);
		return 0;
	case COMMAND_1512:
		script_assert(false);
		return 0;
	case COMMAND_1513:
		script_assert(false);
		return 0;
	case COMMAND_1514:
		script_assert(false);
		return 0;
	case COMMAND_1515:
		script_assert(false);
		return 0;
	case COMMAND_1516:
		script_assert(false);
		return 0;
	case COMMAND_1517:
		script_assert(false);
		return 0;
	case COMMAND_1518:
		// TODO (?)
		UpdateCompareFlag(true);
		return 0;
	case COMMAND_1519:
		CollectParameters(&m_nIp, 1);
		// TODO (SET_NUMBER_USJ_FOUND?)
		return 0;
	case COMMAND_1520:
		CollectParameters(&m_nIp, 1);
		// TODO (SET_TOTAL_HIDDEN_PACKAGES?)
		return 0;
	case COMMAND_1521:
		script_assert(false);
		return 0;
	case COMMAND_1522:
		script_assert(false);
		return 0;
	case COMMAND_1523:
		script_assert(false);
		return 0;
	case COMMAND_1524:
		script_assert(false);
		return 0;
	case COMMAND_1525:
		script_assert(false);
		return 0;
	case COMMAND_1526:
		script_assert(false);
		return 0;
	case COMMAND_1527:
		script_assert(false);
		return 0;
	case COMMAND_1528:
		script_assert(false);
		return 0;
	case COMMAND_1529:
		script_assert(false);
		return 0;
	case COMMAND_1530:
		script_assert(false);
		return 0;
	case COMMAND_1531:
		script_assert(false);
		return 0;
	case COMMAND_1532:
		script_assert(false);
		return 0;
	case COMMAND_1533:
		script_assert(false);
		return 0;
	case COMMAND_1534:
		script_assert(false);
		return 0;
	case COMMAND_1535:
		script_assert(false);
		return 0;
	case COMMAND_1536:
		script_assert(false);
		return 0;
	case COMMAND_1537:
		script_assert(false);
		return 0;
	case COMMAND_1538:
		script_assert(false);
		return 0;
	case COMMAND_1539:
		//TODO (REGISTER_OUTFIT_CHANGE)
		return 0;
	case COMMAND_1540:
		script_assert(false);
		return 0;
	case COMMAND_1541:
		script_assert(false);
		return 0;
	case COMMAND_1542:
		script_assert(false);
		return 0;
	case COMMAND_1543:
		script_assert(false);
		return 0;
	case COMMAND_1544:
		script_assert(false);
		return 0;
	case COMMAND_1545:
		script_assert(false);
		return 0;
	case COMMAND_1546:
		script_assert(false);
		return 0;
	case COMMAND_1547:
		script_assert(false);
		return 0;
	case COMMAND_1548:
		// TODO (GET_ONFOOT_CAMERA_MODE)
		ScriptParams[0] = 0;
		StoreParameters(&m_nIp, 1);
		return 0;
	case COMMAND_1549:
		CollectParameters(&m_nIp, 1);
		// TODO (SET_ONFOOT_CAMERA_MODE?)
		return 0;
	case COMMAND_1550:
		script_assert(false);
		return 0;
	case COMMAND_1551:
		script_assert(false);
		return 0;
	case COMMAND_1552:
		script_assert(false);
		return 0;
	case COMMAND_1553:
		script_assert(false);
		return 0;
	case COMMAND_1554:
		script_assert(false);
		return 0;
	case COMMAND_1555:
		CollectParameters(&m_nIp, 1);
		// TODO (FREEZE_ONFOOT_CAMERA_MODE?)
		return 0;
	case COMMAND_1556:
		script_assert(false);
		return 0;
	case COMMAND_1557:
		script_assert(false);
		return 0;
	case COMMAND_1558:
		UpdateCompareFlag(false);
		// TODO
		return 0;
	case COMMAND_1559:
		script_assert(false);
		return 0;
	case COMMAND_1560:
		// TODO (IS_E3_BUILD?)
		UpdateCompareFlag(false);
		return 0;
	case COMMAND_1561:
		// TODO (check, SET_FS_DESTROYED_FLAG)
		CTheScripts::FSDestroyedFlag = GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL) - (int32*)CTheScripts::ScriptSpace;
		return 0;
	case COMMAND_1562:
		script_assert(false);
		return 0;
	case COMMAND_1563:
		script_assert(false);
		return 0;
	case COMMAND_1564:
		script_assert(false);
		return 0;
	case COMMAND_1565:
		script_assert(false);
		return 0;
	case COMMAND_1566:
		script_assert(false);
		return 0;
	case COMMAND_1567:
		CollectParameters(&m_nIp, 1);
		// TODO (BUILD_WORLD_GEOMETRY)
		return 0;
	case COMMAND_1568:
		script_assert(false);
		return 0;
	case COMMAND_1569:
		// TODO (IS_MULTIPLAYER_ACTIVE?)
		UpdateCompareFlag(false);
		return 0;
	case COMMAND_1570:
		script_assert(false);
		return 0;
	case COMMAND_1571:
		script_assert(false);
		return 0;
	case COMMAND_1572:
		script_assert(false);
		return 0;
	case COMMAND_1573:
		script_assert(false);
		return 0;
	case COMMAND_1574:
		script_assert(false);
		return 0;
	case COMMAND_1575:
		script_assert(false);
		return 0;
	case COMMAND_1576:
		script_assert(false);
		return 0;
	case COMMAND_1577:
		script_assert(false);
		return 0;
	case COMMAND_1578:
		script_assert(false);
		return 0;
	case COMMAND_1579:
		script_assert(false);
		return 0;
	case COMMAND_1580:
		script_assert(false);
		return 0;
	case COMMAND_1581:
	{
		// TODO (SET_HELP_MESSAGE?)
		wchar* key = CTheScripts::GetTextByKeyFromScript(&m_nIp);
		return 0;
	}
	case COMMAND_1582:
		script_assert(false);
		return 0;
	case COMMAND_1583:
		script_assert(false);
		return 0;
	case COMMAND_1584:
		script_assert(false);
		return 0;
	case COMMAND_1585:
		script_assert(false);
		return 0;
	case COMMAND_1586:
		script_assert(false);
		return 0;
	case COMMAND_1587:
		script_assert(false);
		return 0;
	case COMMAND_1588:
		script_assert(false);
		return 0;
	case COMMAND_1589:
		CollectParameters(&m_nIp, 2);
		// TODO (SWAP_BUILDING?)
		return 0;
	case COMMAND_1590:
		script_assert(false);
		return 0;
	case COMMAND_1591:
		script_assert(false);
		return 0;
	case COMMAND_1592:
		script_assert(false);
		return 0;
	case COMMAND_1593:
		script_assert(false);
		return 0;
	case COMMAND_1594:
		script_assert(false);
		return 0;
	case COMMAND_1595:
		script_assert(false);
		return 0;
	case COMMAND_1596:
		script_assert(false);
		return 0;
	case COMMAND_1597:
		script_assert(false);
		return 0;
	case COMMAND_1598:
		script_assert(false);
		return 0;
	case COMMAND_1599:
		script_assert(false);
		return 0;
	default:
		script_assert(0);
	}
	return -1;
}