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