0
|
1 #pragma once
|
|
2
|
|
3
|
|
4
|
|
5 /* 360 */
|
|
6 enum SPELL_TYPE
|
|
7 {
|
486
|
8 SPELL_FIRE_TORCH_LIGHT = 1,
|
|
9 SPELL_FIRE_FIRE_BOLT = 2,
|
|
10 SPELL_FIRE_PROTECTION_FROM_FIRE = 3,
|
|
11 SPELL_FIRE_FIRE_AURA = 4,
|
|
12 SPELL_FIRE_HASTE = 5,
|
|
13 SPELL_FIRE_FIREBALL = 6,
|
|
14 SPELL_FIRE_FIRE_SPIKE = 7,
|
|
15 SPELL_FIRE_IMMOLATION = 8,
|
|
16 SPELL_FIRE_METEOR_SHOWER = 9,
|
|
17 SPELL_FIRE_INFERNO = 10,
|
|
18 SPELL_FIRE_INCINERATE = 11,
|
|
19
|
|
20 SPELL_AIR_WIZARD_EYE = 12,
|
|
21 SPELL_AIR_FEATHER_FALL = 13,
|
|
22 SPELL_AIR_PROTECTION_FROM_AIR = 14,
|
|
23 SPELL_AIR_SPARKS = 15,
|
|
24 SPELL_AIR_JUMP = 16,
|
|
25 SPELL_AIR_SHIELD = 17,
|
|
26 SPELL_AIR_LIGHNING_BOLT = 18,
|
|
27 SPELL_AIR_INVISIBILITY = 19,
|
|
28 SPELL_AIR_IMPLOSION = 20,
|
|
29 SPELL_AIR_FLY = 21,
|
|
30 SPELL_AIR_STARBURST = 22,
|
|
31
|
|
32 SPELL_WATER_AWAKEN = 23,
|
|
33 SPELL_WATER_POISON_SPRAY = 24,
|
|
34 SPELL_WATER_PROTECTION_FROM_WATER = 25,
|
|
35 SPELL_WATER_ICE_BOLT = 26,
|
|
36 SPELL_WATER_WATER_WALK = 27,
|
|
37 SPELL_WATER_RECHARGE_ITEM = 28,
|
|
38 SPELL_WATER_ACID_BURST = 29,
|
|
39 SPELL_WATER_ENCHANT_ITEM = 30,
|
|
40 SPELL_WATER_TOWN_PORTAL = 31,
|
|
41 SPELL_WATER_ICE_BLAST = 32,
|
|
42 SPELL_WATER_LLOYDS_BEACON = 33,
|
|
43
|
|
44 SPELL_EARTH_STUN = 34,
|
|
45 SPELL_EARTH_SLOW = 35,
|
|
46 SPELL_EARTH_PROTECTION_FROM_EARTH = 36,
|
|
47 SPELL_EARTH_DEADLY_SWARM = 37,
|
|
48 SPELL_EARTH_STONESKIN = 38,
|
|
49 SPELL_EARTH_BLADES = 39,
|
|
50 SPELL_EARTH_STONE_TO_FLESH = 40,
|
|
51 SPELL_EARTH_ROCK_BLAST = 41,
|
|
52 SPELL_EARTH_TELEKINESIS = 42,
|
|
53 SPELL_EARTH_DEATH_BLOSSOM = 43,
|
|
54 SPELL_EARTH_MASS_DISTORTION = 44,
|
|
55
|
|
56 SPELL_SPIRIT_DETECT_LIFE = 45,
|
|
57 SPELL_SPIRIT_BLESS = 46,
|
|
58 SPELL_SPIRIT_FATE = 47,
|
|
59 SPELL_SPIRIT_TURN_UNDEAD = 48,
|
|
60 SPELL_SPIRIT_REMOVE_CURSE = 49,
|
|
61 SPELL_SPIRIT_PRESERVATION = 50,
|
|
62 SPELL_SPIRIT_HEROISM = 51,
|
|
63 SPELL_SPIRIT_SPIRIT_LASH = 52,
|
|
64 SPELL_SPIRIT_RAISE_DEAD = 53,
|
|
65 SPELL_SPIRIT_SHARED_LIFE = 54,
|
|
66 SPELL_SPIRIT_RESSURECTION = 55,
|
|
67
|
|
68 SPELL_MIND_REMOVE_FEAR = 56,
|
|
69 SPELL_MIND_MIND_BLAST = 57,
|
|
70 SPELL_MIND_PROTECTION_FROM_MIND = 58,
|
|
71 SPELL_MIND_TELEPATHY = 59,
|
|
72 SPELL_MIND_CHARM = 60,
|
|
73 SPELL_MIND_CURE_PARALYSIS = 61,
|
|
74 SPELL_MIND_BERSERK = 62,
|
|
75 SPELL_MIND_MASS_FEAR = 63,
|
|
76 SPELL_MIND_CURE_INSANITY = 64,
|
|
77 SPELL_MIND_PSYCHIC_SHOCK = 65,
|
|
78 SPELL_MIND_ENSLAVE = 66,
|
|
79
|
|
80 SPELL_BODY_CURE_WEAKNESS = 67,
|
|
81 SPELL_BODY_FIRST_AID = 68,
|
|
82 SPELL_BODY_PROTECTION_FROM_BODY = 69,
|
|
83 SPELL_BODY_HARM = 70,
|
|
84 SPELL_BODY_REGENERATION = 71,
|
|
85 SPELL_BODY_CURE_POISON = 72,
|
|
86 SPELL_BODY_HAMMERHANDS = 73,
|
|
87 SPELL_BODY_CURE_DISEASE = 74,
|
|
88 SPELL_BODY_PROTECTION_FROM_MAGIC = 75,
|
|
89 SPELL_BODY_FLYING_FIST = 76,
|
|
90 SPELL_BODY_POWER_CURE = 77,
|
|
91
|
|
92 SPELL_LIGHT_LIGHT_BOLT = 78,
|
|
93 SPELL_LIGHT_DESTROY_UNDEAD = 79,
|
|
94 SPELL_LIGHT_DISPEL_MAGIC = 80,
|
|
95 SPELL_LIGHT_PARALYZE = 81,
|
|
96 SPELL_LIGHT_SUMMON_ELEMENTAL = 82,
|
|
97 SPELL_LIGHT_DAY_OF_THE_GODS = 83,
|
|
98 SPELL_LIGHT_PRISMATIC_LIGHT = 84,
|
|
99 SPELL_LIGHT_DAY_OF_PROTECTION = 85,
|
|
100 SPELL_LIGHT_HOUR_OF_POWER = 86,
|
|
101 SPELL_LIGHT_SUNRAY = 87,
|
|
102 SPELL_LIGHT_DIVINE_INTERVENTION = 88,
|
|
103
|
|
104 SPELL_DARK_REANIMATE = 89,
|
|
105 SPELL_DARK_TOXIC_CLOUD = 90,
|
|
106 SPELL_DARK_VAMPIRIC_WEAPON = 91,
|
|
107 SPELL_DARK_SHRINKING_RAY = 92,
|
|
108 SPELL_DARK_SHARPMETAL = 93,
|
|
109 SPELL_DARK_CONTROL_UNDEAD = 94,
|
|
110 SPELL_DARK_PAIN_REFLECTION = 95,
|
|
111 SPELL_DARK_SACRIFICE = 96,
|
|
112 SPELL_DARK_DRAGON_BREATH = 97,
|
|
113 SPELL_DARK_ARMAGEDDON = 98,
|
|
114 SPELL_DARK_SOULDRINKER = 99
|
0
|
115 };
|
|
116
|
|
117
|
192
|
118 enum SPELL_SCHOOL : int
|
|
119 {
|
|
120 SPELL_SCHOOL_FIRE = 0,
|
|
121 SPELL_SCHOOL_AIR = 1,
|
|
122 SPELL_SCHOOL_WATER = 2,
|
|
123 SPELL_SCHOOL_EARTH = 3,
|
|
124 SPELL_SCHOOL_NONE = 4,
|
|
125 SPELL_SCHOOL_MAGIC = 5,
|
|
126 SPELL_SCHOOL_SPIRIT = 6,
|
|
127 SPELL_SCHOOL_MIND = 7,
|
|
128 SPELL_SCHOOL_BODY = 8,
|
|
129 SPELL_SCHOOL_LIGHT = 9,
|
|
130 SPELL_SCHOOL_DARK = 10
|
|
131 };
|
|
132
|
0
|
133
|
|
134
|
|
135 /* 68 */
|
|
136 #pragma pack(push, 1)
|
|
137 struct SpellBuff
|
|
138 {
|
|
139 inline SpellBuff()
|
|
140 {
|
|
141 uExpireTime = 0;
|
|
142 uPower = 0;
|
|
143 uSkill = 0;
|
|
144 uOverlayID = 0;
|
|
145 uCaster = 0;
|
|
146 uFlags = 0;
|
|
147 }
|
|
148
|
|
149 signed int Apply(unsigned __int64 uExpireTime, unsigned __int16 uSkillLevel, unsigned __int16 uPower, int a5, unsigned __int8 a6);
|
|
150 void Reset();
|
|
151 signed int _4585CA(__int64 a2);
|
|
152 bool NotExpired();
|
|
153
|
|
154 unsigned __int64 uExpireTime;
|
|
155 unsigned __int16 uPower;
|
|
156 unsigned __int16 uSkill;
|
|
157 unsigned __int16 uOverlayID;
|
|
158 unsigned __int8 uCaster;
|
|
159 unsigned __int8 uFlags;
|
|
160 };
|
|
161 #pragma pack(pop)
|
|
162
|
|
163
|
|
164 #pragma pack(push, 1)
|
|
165 struct SpellInfo
|
|
166 {
|
|
167 char *pName;
|
|
168 char *pShortName;
|
|
169 char *pDescription;
|
|
170 char *pBasicSkillDesc;
|
|
171 char *pExpertSkillDesc;
|
|
172 char *pMasterSkillDesc;
|
|
173 char *pGrandmasterSkillDesc;
|
192
|
174 SPELL_SCHOOL uSchool;
|
0
|
175 int field_20;
|
|
176 };
|
|
177 #pragma pack(pop)
|
|
178
|
|
179
|
|
180
|
|
181 #pragma pack(push, 1)
|
|
182 struct SpellStats
|
|
183 {
|
|
184 void Initialize();
|
|
185
|
|
186 SpellInfo pInfos[100];
|
|
187 };
|
|
188 #pragma pack(pop)
|
|
189
|
|
190
|
|
191
|
|
192
|
|
193
|
|
194
|
|
195
|
|
196
|
|
197
|
|
198 /* 364 */
|
|
199 #pragma pack(push, 1)
|
|
200 struct stru324_spell
|
|
201 {
|
|
202 __int16 uItemType;
|
|
203 __int16 field_2;
|
|
204 };
|
|
205 #pragma pack(pop)
|
|
206
|
|
207 /* 151 */
|
|
208 #pragma pack(push, 1)
|
|
209 struct SpellData
|
|
210 {
|
363
|
211 union
|
|
212 {
|
|
213 unsigned __int16 mana_per_skill[4];
|
|
214 struct
|
|
215 {
|
0
|
216 unsigned __int16 uNormalLevelMana;
|
|
217 unsigned __int16 uExpertLevelMana;
|
|
218 unsigned __int16 uMasterLevelMana;
|
|
219 unsigned __int16 uMagisterLevelMana;
|
363
|
220 };
|
|
221 };
|
0
|
222 unsigned __int16 field_8;
|
|
223 __int16 field_A;
|
|
224 __int16 field_C;
|
|
225 __int16 field_E;
|
|
226 __int16 field_10;
|
192
|
227 __int16 field_12;
|
|
228 // char field_12;
|
|
229 // char field_13;
|
189
|
230 // __int16 field_14;
|
0
|
231 };
|
|
232 #pragma pack(pop)
|
|
233
|
357
|
234 #pragma pack(push, 1)
|
|
235 struct SpellBookIconPos
|
|
236 {
|
|
237 unsigned int Xpos;
|
|
238 unsigned int Ypos;
|
|
239 };
|
0
|
240
|
357
|
241 #pragma pack(pop)
|
0
|
242
|
|
243
|
|
244 extern struct SpellStats *pSpellStats;
|
|
245
|
363
|
246 extern struct SpellBookIconPos pIconPos[9][12];
|
0
|
247
|
|
248 extern stru324_spell stru_4E3ACC[];
|
192
|
249 extern SpellData pSpellDatas[100]; |