0
|
1 #pragma once
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6 /* 167 */
|
|
7 #pragma pack(push, 1)
|
|
8 struct Event
|
|
9 {
|
|
10 int uEventID;
|
|
11 int field_4;
|
|
12 unsigned int uEventOffsetInEVT;
|
|
13 };
|
|
14 #pragma pack(pop)
|
|
15
|
|
16
|
|
17 #pragma pack(push, 1)
|
|
18 struct _evt_raw
|
|
19 {
|
|
20 unsigned char v0;
|
|
21 unsigned char v1;
|
|
22 unsigned char v2;
|
|
23 unsigned char v3;
|
|
24 unsigned char v4;
|
|
25 unsigned char v5;
|
|
26 unsigned char v6;
|
|
27 unsigned char v7;
|
|
28 unsigned char v8;
|
|
29 unsigned char v9;
|
|
30 unsigned char v10;
|
|
31 unsigned char v11;
|
|
32 unsigned char v12;
|
|
33 unsigned char v13;
|
|
34 unsigned char v14;
|
|
35 unsigned char v15;
|
|
36 unsigned char v16;
|
|
37 unsigned char v17;
|
|
38 unsigned char v18;
|
|
39 unsigned char v19;
|
|
40 unsigned char v20;
|
|
41 unsigned char v21;
|
|
42 unsigned char v22;
|
|
43 unsigned char v23;
|
|
44 unsigned char v24;
|
|
45 unsigned char v25;
|
|
46 unsigned char v26;
|
|
47 unsigned char v27;
|
|
48 unsigned char v28;
|
|
49 unsigned char v29;
|
|
50 unsigned char v30;
|
|
51 unsigned char v31;
|
|
52 unsigned char v32;
|
|
53 unsigned char tail[128];
|
|
54 };
|
|
55 #pragma pop()
|
|
56
|
|
57
|
|
58
|
|
59 /* 310 */
|
|
60 enum EventType
|
|
61 {
|
|
62 EVENT_Exit = 0x1,
|
|
63 EVENT_SpeakInHouse = 0x2,
|
|
64 EVENT_PlaySound = 0x3,
|
|
65 EVENT_MouseOver = 0x4,
|
|
66 EVENT_LocationName = 0x5,
|
|
67 EVENT_MoveToMap = 0x6,
|
|
68 EVENT_OpenChest = 0x7,
|
|
69 EVENT_ShowFace = 0x8,
|
|
70 EVENT_ReceiveDamage = 0x9,
|
|
71 EVENT_SetSnow = 0xA,
|
|
72 EVENT_SetTexture = 0xB,
|
|
73 EVENT_ShowMovie = 0xC,
|
|
74 EVENT_SetSprite = 0xD,
|
|
75 EVENT_Compare = 0xE,
|
|
76 EVENT_ChangeDoorState = 0xF,
|
|
77 EVENT_Add = 0x10,
|
|
78 EVENT_Substract = 0x11,
|
|
79 EVENT_Set = 0x12,
|
|
80 EVENT_SummonMonsters = 0x13,
|
|
81 EVENT_CastSpell = 0x15,
|
|
82 EVENT_SpeakNPC = 0x16,
|
|
83 EVENT_SetFacesBit = 0x17,
|
|
84 EVENT_ToggleActorFlag = 0x18,
|
|
85 EVENT_RandomGoTo = 0x19,
|
|
86 EVENT_InputString = 0x1A,
|
|
87 EVENT_StatusText = 0x1D,
|
|
88 EVENT_ShowMessage = 0x1E,
|
|
89 EVENT_OnTimer = 0x1F,
|
|
90 EVENT_ToggleIndoorLight = 0x20,
|
|
91 EVENT_PressAnyKey = 0x21,
|
|
92 EVENT_SummonItem = 0x22,
|
|
93 EVENT_ForPartyMember = 0x23,
|
|
94 EVENT_Jmp = 0x24,
|
|
95 EVENT_OnMapReload = 0x25,
|
|
96 EVENT_OnLongTimer = 0x26,
|
|
97 EVENT_SetNPCTopic = 0x27,
|
|
98 EVENT_MoveNPC = 0x28,
|
|
99 EVENT_GiveItem = 0x29,
|
|
100 EVENT_ChangeEvent = 0x2A,
|
|
101 EVENT_CheckSkill = 0x2B,
|
|
102 EVENT_OnCanShowDialogItemCmp = 0x2C,
|
|
103 EVENT_EndCanShowDialogItem = 0x2D,
|
|
104 EVENT_SetCanShowDialogItem = 0x2E,
|
|
105 EVENT_SetNPCGroupNews = 0x2F,
|
|
106 EVENT_SetActorGroup = 0x30,
|
|
107 EVENT_NPCSetItem = 0x31,
|
|
108 EVENT_SetNPCGreeting = 0x32,
|
|
109 EVENT_IsActorAlive = 0x33,
|
|
110 EVENT_OnMapLeave = 0x35,
|
|
111 EVENT_ChangeGroup = 0x36,
|
|
112 EVENT_ChangeGroupAlly = 0x37,
|
|
113 EVENT_CheckSeason = 0x38,
|
|
114 EVENT_ToggleActorGroupFlag = 0x39,
|
|
115 EVENT_ToggleChestFlag = 0x3A,
|
|
116 EVENT_CharacterAnimation = 0x3B,
|
|
117 EVENT_SetActorItem = 0x3C,
|
|
118 EVENT_OnDateTimer = 0x3D,
|
|
119 EVENT_EnableDateTimer = 0x3E,
|
|
120 EVENT_StopAnimation = 0x3F,
|
|
121 EVENT_CheckItemsCount = 0x40,
|
|
122 EVENT_RemoveItems = 0x41,
|
|
123 EVENT_SpecialJump = 0x42,
|
|
124 EVENT_IsTotalBountyHuntingAwardInRange = 0x43,
|
|
125 EVENT_IsNPCInParty = 0x44,
|
|
126 };
|
|
127
|
|
128 /* 311 */
|
|
129 enum VariableType
|
|
130 {
|
|
131 VAR_Sex = 0x1,
|
|
132 VAR_Class = 0x2,
|
|
133 VAR_CurrentHP = 0x3,
|
|
134 VAR_MaxHP = 0x4,
|
|
135 VAR_CurrentSP = 0x5,
|
|
136 VAR_MaxSP = 0x6,
|
|
137 VAR_ActualAC = 0x7,
|
|
138 VAR_ACModifier = 0x8,
|
|
139 VAR_BaseLevel = 0x9,
|
|
140 VAR_LevelModifier = 0xA,
|
|
141 VAR_Age = 0xB,
|
|
142 VAR_Award = 0xC,
|
|
143 VAR_Experience = 0xD,
|
|
144 VAR_Race = 0xE,
|
|
145 VAR_QBits_QuestsDone = 0x10,
|
|
146 VAR_PlayerItemInHands = 0x11,
|
|
147 VAR_Hour = 0x12,
|
|
148 VAR_DayOfYear = 0x13,
|
|
149 VAR_DayOfWeek = 0x14,
|
|
150 VAR_FixedGold = 0x15,
|
|
151 VAR_RandomGold = 0x16,
|
|
152 VAR_FixedFood = 0x17,
|
|
153 VAR_RandomFood = 0x18,
|
|
154 VAR_MightBonus = 0x19,
|
|
155 VAR_IntellectBonus = 0x1A,
|
|
156 VAR_PersonalityBonus = 0x1B,
|
|
157 VAR_EnduranceBonus = 0x1C,
|
|
158 VAR_SpeedBonus = 0x1D,
|
|
159 VAR_AccuracyBonus = 0x1E,
|
|
160 VAR_LuckBonus = 0x1F,
|
|
161 VAR_BaseMight = 0x20,
|
|
162 VAR_BaseIntellect = 0x21,
|
|
163 VAR_BasePersonality = 0x22,
|
|
164 VAR_BaseEndurance = 0x23,
|
|
165 VAR_BaseSpeed = 0x24,
|
|
166 VAR_BaseAccuracy = 0x25,
|
|
167 VAR_BaseLuck = 0x26,
|
|
168 VAR_ActualMight = 0x27,
|
|
169 VAR_ActualIntellect = 0x28,
|
|
170 VAR_ActualPersonality = 0x29,
|
|
171 VAR_ActualEndurance = 0x2A,
|
|
172 VAR_ActualSpeed = 0x2B,
|
|
173 VAR_ActualAccuracy = 0x2C,
|
|
174 VAR_ActualLuck = 0x2D,
|
|
175 VAR_FireResistance = 0x2E,
|
|
176 VAR_AirResistance = 0x2F,
|
|
177 VAR_WaterResistance = 0x30,
|
|
178 VAR_EarthResistance = 0x31,
|
|
179 VAR_SpiritResistance = 0x32,
|
|
180 VAR_MindResistance = 0x33,
|
|
181 VAR_BodyResistance = 0x34,
|
|
182 VAR_LightResistance = 0x35,
|
|
183 VAR_DarkResistance = 0x36,
|
|
184 VAR_PhysicalResistance = 0x37,
|
|
185 VAR_MagicResistance = 0x38,
|
|
186 VAR_FireResistanceBonus = 0x39,
|
|
187 VAR_AirResistanceBonus = 0x3A,
|
|
188 VAR_WaterResistanceBonus = 0x3B,
|
|
189 VAR_EarthResistanceBonus = 0x3C,
|
|
190 VAR_SpiritResistanceBonus = 0x3D,
|
|
191 VAR_MindResistanceBonus = 0x3E,
|
|
192 VAR_BodyResistanceBonus = 0x3F,
|
|
193 VAR_LightResistanceBonus = 0x40,
|
|
194 VAR_DarkResistanceBonus = 0x41,
|
|
195 VAR_PhysicalResistanceBonus = 0x42,
|
|
196 VAR_MagicResistanceBonus = 0x43,
|
|
197 VAR_StaffSkill = 0x44,
|
|
198 VAR_SwordSkill = 0x45,
|
|
199 VAR_DaggerSkill = 0x46,
|
|
200 VAR_AxeSkill = 0x47,
|
|
201 VAR_SpearSkill = 0x48,
|
|
202 VAR_BowSkill = 0x49,
|
|
203 VAR_MaceSkill = 0x4A,
|
|
204 VAR_BlasterSkill = 0x4B,
|
|
205 VAR_ShieldSkill = 0x4C,
|
|
206 VAR_LeatherSkill = 0x4D,
|
|
207 VAR_SkillChain = 0x4E,
|
|
208 VAR_PlateSkill = 0x4F,
|
|
209 VAR_FireSkill = 0x50,
|
|
210 VAR_AirSkill = 0x51,
|
|
211 VAR_WaterSkill = 0x52,
|
|
212 VAR_EarthSkill = 0x53,
|
|
213 VAR_SpiritSkill = 0x54,
|
|
214 VAR_MindSkill = 0x55,
|
|
215 VAR_BodySkill = 0x56,
|
|
216 VAR_LightSkill = 0x57,
|
|
217 VAR_DarkSkill = 0x58,
|
|
218 VAR_IdentifyItemSkill = 0x59,
|
|
219 VAR_MerchantSkill = 0x5A,
|
|
220 VAR_RepairSkill = 0x5B,
|
|
221 VAR_BodybuildingSkill = 0x5C,
|
|
222 VAR_MeditationSkill = 0x5D,
|
|
223 VAR_PerceptionSkill = 0x5E,
|
|
224 VAR_DiplomacySkill = 0x5F,
|
|
225 VAR_ThieverySkill = 0x60,
|
|
226 VAR_DisarmTrapSkill = 0x61,
|
|
227 VAR_DodgeSkill = 0x62,
|
|
228 VAR_UnarmedSkill = 0x63,
|
|
229 VAR_IdentifyMonsterSkill = 0x64,
|
|
230 VAR_ArmsmasterSkill = 0x65,
|
|
231 VAR_StealingSkill = 0x66,
|
|
232 VAR_AlchemySkill = 0x67,
|
|
233 VAR_LearningSkill = 0x68,
|
|
234 VAR_Cursed = 0x69,
|
|
235 VAR_Weak = 0x6A,
|
|
236 VAR_Asleep = 0x6B,
|
|
237 VAR_Afraid = 0x6C,
|
|
238 VAR_Drunk = 0x6D,
|
|
239 VAR_Insane = 0x6E,
|
|
240 VAR_PoisonedGreen = 0x6F,
|
|
241 VAR_DiseasedGreen = 0x70,
|
|
242 VAR_PoisonedYellow = 0x71,
|
|
243 VAR_DiseasedYellow = 0x72,
|
|
244 VAR_PoisonedRed = 0x73,
|
|
245 VAR_DiseasedRed = 0x74,
|
|
246 VAR_Paralyzed = 0x75,
|
|
247 VAR_Unconsious = 0x76,
|
|
248 VAR_Dead = 0x77,
|
|
249 VAR_Stoned = 0x78,
|
|
250 VAR_Eradicated = 0x79,
|
|
251 VAR_MajorCondition = 0x7A,
|
|
252 VAR_MapPersistentVariable_0 = 0x7B,
|
|
253 VAR_NPCs = 0xD6,
|
|
254 VAR_Reputation = 0xD7,
|
|
255 VAR_ActiveSpells = 0xDE,
|
|
256 VAR_AutoNotes = 0xDF,
|
|
257 VAR_MonthEquals = 0xE2,
|
|
258 VAR_NPCs2 = 0xE8,
|
|
259 VAR_IsFlying = 0xF0,
|
|
260 VAR_HiredNPCHasSpeciality = 0xF1,
|
|
261 VAR_CircusPrises = 0xF2,
|
|
262 VAR_NumSkillPoints = 0xF3,
|
|
263 VAR_MonthEquals2 = 0xF4,
|
|
264 VAR_Counter1 = 0xF7,
|
|
265 VAR_Counter2 = 0xF8,
|
|
266 VAR_Counter3 = 0xF9,
|
|
267 VAR_Counter4 = 0xFA,
|
|
268 VAR_Counter5 = 0xFB,
|
|
269 VAR_Counter6 = 0xFC,
|
|
270 VAR_Counter7 = 0xFD,
|
|
271 VAR_Counter8 = 0xFE,
|
|
272 VAR_Counter9 = 0xFF,
|
|
273 VAR_CounterA = 0x100,
|
|
274 VAR_ReputationInCurrentLocation = 0x113,
|
|
275 VAR_History_0 = 0x114,
|
|
276 VAR_History_28 = 0x130,
|
|
277 VAR_GoldInBank = 0x132,
|
|
278 VAR_NumDeaths = 0x133,
|
|
279 VAR_NumBounties = 0x134,
|
|
280 VAR_PrisonTerms = 0x135,
|
|
281 VAR_ArenaWinsPage = 0x136,
|
|
282 VAR_ArenaWinsSquire = 0x137,
|
|
283 VAR_ArenaWinsKnight = 0x138,
|
|
284 VAR_ArenaWinsLord = 0x139,
|
|
285 VAR_Invisible = 0x13A,
|
|
286 VAR_ItemEquipped = 0x13B,
|
|
287 };
|
|
288
|
|
289
|
|
290
|
|
291
|
|
292 extern Event pSomeOtherEVT_Events[4400];
|
|
293 extern unsigned int uSomeOtherEVT_NumEvents;
|
|
294 extern char *pSomeOtherEVT;
|
|
295 extern Event pSomeEVT_Events[4400];
|
|
296 extern unsigned int uSomeEVT_NumEvents;
|
|
297 extern char *pSomeEVT;
|
|
298
|
|
299 extern unsigned int uGlobalEVT_NumEvents;
|
|
300 extern unsigned int uGlobalEVT_Size;
|
|
301 extern char pGlobalEVT[46080];
|
|
302 extern Event pGlobalEVT_Events[4400];
|
|
303
|
|
304 extern unsigned int pLevelStrOffsets[500];
|
|
305 extern unsigned int uLevelStrNumStrings;
|
|
306 extern unsigned int uLevelStrFileSize;
|
|
307 extern unsigned int uLevelEVT_NumEvents;
|
|
308 extern unsigned int uLevelEVT_Size;
|
|
309 extern char pLevelStr[9216];
|
|
310 extern char pLevelEVT[9216];
|
|
311 extern Event pLevelEVT_Events[4400];
|
|
312
|
|
313
|
|
314
|
|
315
|
|
316
|
|
317
|
|
318
|
|
319 /* 312 */
|
|
320 #pragma pack(push, 1)
|
|
321 struct ByteArray
|
|
322 {
|
|
323 char f[65535];
|
|
324 };
|
|
325 #pragma pack(pop)
|