@airbreather/mod-nodejs-types 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/acore.d.ts CHANGED
@@ -9,6 +9,10 @@ declare global {
9
9
  const hooks: EventEmitter<HooksConforming>;
10
10
 
11
11
  function gc(): void;
12
+ //function getFactionEntry(entry: number): FactionEntry | undefined;
13
+ function getItemTemplate(entry: number): ItemTemplate | undefined;
14
+ //function getVehicleEntry(entry: number): VehicleEntry | undefined;
15
+ function getCharTitlesEntry(entry: number): CharTitlesEntry | undefined;
12
16
  function guidsEqual(a: ObjectGuid | undefined, b: ObjectGuid | undefined): boolean;
13
17
  function decodeGuid(g: ObjectGuid | undefined): ObjectGuidDecoded;
14
18
  function getCurrTime(): Temporal.Instant;
@@ -1,6 +1,10 @@
1
1
  declare global {
2
2
  namespace Acore {
3
3
  class Player extends Unit {
4
+ static byGuid(guid: ObjectGuid): Player | undefined;
5
+ static byName(name: string): Player | undefined;
6
+ static allInWorld(): Player[];
7
+
4
8
  readonly race: Races;
5
9
  readonly raceMask: number;
6
10
  readonly clazz: Classes;
@@ -102,10 +106,37 @@ declare global {
102
106
  readonly completedAchievementsCount: number;
103
107
  readonly completedAchievementsCountExcludingFeatsOfStrength: number;
104
108
  readonly currentQuestIds: number[];
109
+ readonly spells: number[];
110
+ readonly knownTaxiNodes: number[];
111
+ readonly isFFAPvP: boolean;
112
+ readonly isInArenaTeam: boolean;
105
113
 
106
- static byGuid(guid: ObjectGuid): Player | undefined;
107
- static byName(name: string): Player | undefined;
108
- static allInWorld(): Player[];
114
+ money: number;
115
+ drunkValue: number;
116
+ freeTalentPoints: number;
117
+ arenaPoints: number;
118
+ honorPoints: number;
119
+ lifetimeKills: number;
120
+ taxiCheat: boolean;
121
+ gmChat: boolean;
122
+ isPvP: boolean;
123
+ bonusTalentCount: number;
124
+ canTeleport: boolean;
125
+ lastPetNumber: number;
126
+ lastPetSpell: number;
127
+ temporaryUnsummonedPetNumber: number;
128
+ acceptWhispers: boolean;
129
+ gmVisible: boolean;
130
+ creationTime: Temporal.Instant;
131
+ guildRank: number;
132
+ isGM: boolean;
133
+ afk: boolean;
134
+ dnd: boolean;
135
+ isSpectator: boolean;
136
+ canBlock: boolean;
137
+ canParry: boolean;
138
+ viewpoint: WorldObject | undefined;
139
+ gossipMenuId: number;
109
140
 
110
141
  hasAccountFlag(flag: AccountFlag): boolean;
111
142
  setAccountFlag(flag: AccountFlag): boolean;
@@ -150,7 +181,167 @@ declare global {
150
181
  hasArmorProficiency(armor: ItemSubclassArmor): boolean;
151
182
  hasWeaponProficiency(weapon: ItemSubclassWeapon): boolean;
152
183
  getGlyph(slot: number): GlyphPropertiesEntry | undefined;
184
+ getBaseSkillValue(skill: SkillType): number;
185
+ getPureSkillValue(skill: SkillType): number;
186
+ getPureMaxSkillValue(skill: SkillType): number;
187
+ getSkillPermBonusValue(skill: SkillType): number;
188
+ getSkillTempBonusValue(skill: SkillType): number;
189
+ hasQuestFor(gameObject: GameObject): boolean;
190
+ getQuestLevel(quest: Quest): number;
191
+ getQuestSlotQuestId(slot: number): number;
192
+ hasTitle(titleId: number): boolean;
193
+ hasTitleByIndex(bitIndex: number): boolean;
194
+ hasItem(entryId: number, count?: number): boolean;
195
+ getItemByEntry(entryId: number): Item | undefined;
196
+ // TODO: consistent naming
197
+ getItemByGUID(guid: ObjectGuid): Item | undefined;
198
+ getItemByPos(bag: number, slot: number): Item | undefined;
199
+ calculateReputationGain(source: ReputationSource, creatureOrQuestLevel: number, rep: number, factionId: number, noQuestBonus?: boolean): number;
200
+ getNearbyGameObject(entryId: number, range: number): GameObject | undefined;
201
+ getNextRandomRaidMember(radius: number): Player | undefined;
202
+ getReqKillOrCastCurrentCount(questId: number, entry: number): number;
203
+ getQuestRewardStatus(questId: number): boolean;
204
+ getSpellCooldownDelay(spellId: number): number;
205
+ hasAtLoginFlag(flag: AtLoginFlags): boolean;
206
+ hasSkill(skill: SkillType): boolean;
207
+ getAchievementCriteriaProgress(criteriaId: number): number;
208
+
209
+
153
210
  sendSystemMessage(msg: string): void;
211
+ learnSpell(spellId: number, temporary?: boolean, learnFromSkill?: boolean): void;
212
+ removeSpell(spellId: number, temporary?: boolean, learnFromSkill?: boolean): void;
213
+ modifyMoney(amount: number): boolean;
214
+ teleport(mapId: number, x: number, y: number, z: number, o: number, options?: TeleportToOptions, target?: Unit, newInstance?: boolean): boolean;
215
+ resurrect(restorePct?: number, applySickness?: boolean): void;
216
+ equipItem(itemId: number, slot: number): Item | undefined;
217
+ mute(duration: Temporal.Duration): void;
218
+ giveXP(amount: number, target: Unit, groupRate?: number, isLfgReward?: boolean): void;
219
+ toggleDND(): void;
220
+ toggleAFK(): void;
221
+ resetTalents(noResetCost?: boolean): void;
222
+ talkedToCreature(entry: number, guid: ObjectGuid): void;
223
+ killedMonsterCredit(entry: number, guid?: ObjectGuid): void;
224
+ addQuest(quest: Quest, questGiver?: Object): void;
225
+ removeQuest(questId: number): void;
226
+ completeQuest(questId: number): void;
227
+ failQuest(questId: number): void;
228
+ incompleteQuest(questId: number): void;
229
+ abandonQuest(questId: number): void;
230
+ addItem(itemId: number, count?: number): boolean;
231
+ removeItem(itemId: number, count?: number): void;
232
+ resetSpellCooldown(spellId: number, target: Unit): void;
233
+ resetAllCooldowns(): void;
234
+ sendNotification(msg: string): void;
235
+ sendAreaTriggerMessage(msg: string): void;
236
+ sendAddonMessage(prefix: string, msg: string): void;
237
+ durabilityRepairAll(cost: boolean, discountMod: number, guildBank: boolean): number;
238
+ durabilityRepair(slot: number, cost: boolean, discountMod: number, guildBank: boolean): number;
239
+ durabilityLossAll(percent: number, inventory: boolean): void;
240
+ durabilityPointsLossAll(points: number, inventory: boolean): void;
241
+ advanceSkillsToMax(): void;
242
+ advanceAllSkills(step: number): void;
243
+ advanceSkill(skill: SkillType, step: number): boolean;
244
+ summonPet(entry: number, x: number, y: number, z: number, o: number, petType?: PetType, duration?: Temporal.Duration, healthPct?: number): Pet | undefined;
245
+ createPet(entry: number, spellId?: number): Pet | undefined;
246
+ returnPet(entry: number, mode?: PetSaveMode, returnReagent?: boolean): void;
247
+ unsummonPetTemporarilyIfAny(): void;
248
+ resummonPetIfTemporarilyUnsummoned(): void;
249
+ inviteToGroup(target: Player): boolean;
250
+ createGroupWith(target: Player): Group | undefined;
251
+ removeFromGroup(method?: RemoveMethod): void;
252
+ addLifetimeKills(kills: number): void;
253
+ removeLifetimeKills(kills: number): void;
254
+ sendTaxiMenu(creature: Creature): void;
255
+ sendSpiritResurrect(): void;
256
+ sendShowBank(banker: ObjectGuid): void;
257
+ sendAuctionMenu(auctioneer: Creature): void;
258
+ unbindInstance(instanceId: number, difficulty?: Difficulty): void;
259
+ unbindAllInstances(): void;
260
+ leaveBattleground(): void;
261
+ logoutPlayer(save?: boolean): void;
262
+ saveToDB(): void;
263
+ modifyArenaPoints(pts: number): void;
264
+ modifyHonorPoints(pts: number): void;
265
+ setGender(gender: Gender): void;
266
+ setPlayerLock(apply?: boolean): void;
267
+ setAtLoginFlag(flags: AtLoginFlags): void;
268
+ doRandomRoll(min: number, max: number): number;
269
+ sendCinematicStart(cinematicId: number): void;
270
+ sendMovieStart(movieId: number): void;
271
+ sendTrainerList(trainer: Creature): void;
272
+ sendListInventory(vendor: WorldObject, overrideEntry?: number): void;
273
+ sendGuildInvite(playerName: string): void;
274
+ sendShowMailBox(mailbox: GameObject): void;
275
+ areaExploredOrEventHappens(eventId: number): void;
276
+ groupEventHappens(questId: number, eventObject?: WorldObject): void;
277
+ takeEnvironmentalDamage(type: EnviromentalDamage, amount: number): number;
278
+ canCompleteRepeatableQuest(quest: Quest): boolean;
279
+ canRewardQuest(quest: Quest, msg: boolean): boolean;
280
+ canCompleteQuest(questId: number): boolean;
281
+ canTakeQuest(quest: Quest, msg: boolean): boolean;
282
+ canAddQuest(quest: Quest, msg: boolean): boolean;
283
+ addArmorProficiency(proficiency: ItemSubclassMaskArmor): void;
284
+ addBonusTalent(count: number): void;
285
+ learnTalent(id: number, rank?: number): void;
286
+ addWeaponProficiency(proficiency: ItemSubclassMaskWeapon): void;
287
+ learnPetTalent(talentId: number, talentRank: number): void;
288
+ resetPetTalents(): void;
289
+ setGlyph(glyphId: number, slot: number): void;
290
+ completedAchievement(achievement: AchievementEntry): void;
291
+ resetAchievements(): void;
292
+ bindToInstance(): void;
293
+ kickPlayer(): void;
294
+ runCommand(command: string): void;
295
+ removeFromBattlegroundRaid(): void;
296
+ gossipAddQuests(source: Creature | GameObject): void;
297
+ gossipClearMenu(): void;
298
+ gossipComplete(): void;
299
+ gossipMenuAddItem(menuItemId: number, icon: GossipOptionIcon, message: string, sender: number, action: GossipAction, boxMessage: string, boxMoney: number, coded?: boolean): void;
300
+ gossipSendMenuToCreature(titleTextId: number, creature: ObjectGuid): void;
301
+ gossipSendPOI(poiId: number): void;
302
+ setSkill(type: SkillType, value: number): void;
303
+ applyRatingMod(rating: CombatRating, value: number): void;
304
+ setQuestStatus(questId: number, status: QuestStatus): void;
305
+ removeRewardedQuest(questId: number): void;
306
+ rewardQuest(quest: Quest, reward?: number, questGiver?: Creature | GameObject, announce?: boolean, isLfgReward?: boolean): void;
307
+ removeActiveQuest(questId: number): void;
308
+ // get the bit index from Acore.getCharTitlesEntry(id).bitIndex
309
+ setKnownTitle(titleBitIndex: number): void;
310
+ // get the bit index from Acore.getCharTitlesEntry(id).bitIndex
311
+ unsetKnownTitle(titleBitIndex: number): void;
312
+ initTaxiNodesForLevel(): void;
313
+ startTaxiByTaxiPathId(taxiPathId: number, spellId?: number): boolean;
314
+ startTaxiByNodes(nodeIds: readonly number[], npc?: Creature, spellId?: number): boolean;
315
+ toggleInstantFlight(): void;
316
+ removeAmmo(): void;
317
+ setAmmo(entry: number): void;
318
+ spawnBones(): void;
319
+ gainSpellComboPoints(amount: number): void;
320
+ applySpellPowerBonus(amount: number, apply?: boolean): void;
321
+ resetTypeCooldowns(type: number): void;
322
+ removeArenaSpellCooldowns(): void;
323
+ setShowDKPet(show: boolean): void;
324
+ setPvPDeath(isPvPDeath: boolean): void;
325
+ setPlayerFlag(flag: PlayerFlags): void;
326
+ removePlayerFlag(flag: PlayerFlags): void;
327
+ getPlayerSettingValue(source: string, index: number): number;
328
+ // this actually consumes it from the rest bonus pool
329
+ getXPRestBonus(xp: number): number;
330
+ setBindPoint(x: number, y: number, z: number, mapId: number, areaId: number): number;
331
+ setFactionForRace(race: Races): void;
332
+ setKnownTaxiNodes(nodes: readonly number[]): void;
333
+ // setReputation(faction: FactionEntry, value: number): void;
334
+ setRestState(triggerId: number): void;
335
+ updatePlayerSetting(source: string, index: number, value: number): void;
336
+ durabilityPointLossForEquipSlot(slot: EquipmentSlots): void;
337
+ durabilityPointsLoss(item: Item, points: number): void;
338
+ sendQuestTemplate(questGiver: ObjectGuid, quest: Quest, activateAccept?: boolean): void;
339
+ sendTabardVendorActivate(creature: ObjectGuid): void;
340
+ sendUpdateWorldState(dataId: number, value: number): void;
341
+ removedInsignia(looter: Player): void;
342
+ killPlayer(): void;
343
+ textEmote(text: string): void;
344
+ removeBonusTalent(count: number): void;
154
345
  storeNewItemInBestSlots(itemId: number, itemCount: number): boolean;
155
346
  }
156
347
  }
package/classes/Unit.d.ts CHANGED
@@ -79,6 +79,7 @@ declare global {
79
79
  // sometimes aka feared
80
80
  isFleeing: boolean;
81
81
  emoteState: Emote;
82
+ canFly: boolean;
82
83
 
83
84
  getCurrentSpell(spellType?: CurrentSpellTypes): Spell | undefined;
84
85
  isNonMeleeSpellCast(withDelayed: boolean, skipChanneled?: boolean, skipAutorepeat?: boolean, isAutoshoot?: boolean, skipInstant?: boolean): boolean;
@@ -162,11 +163,12 @@ declare global {
162
163
  setWalk(enable: boolean): void;
163
164
  setDisableGravity(disable: boolean): void;
164
165
  setSwim(enable: boolean): void;
165
- setCanFly(enable: boolean): void;
166
166
  setWaterWalking(enable: boolean): void;
167
167
  setFeatherFall(enable: boolean): void;
168
168
  setHover(enable: boolean): void;
169
169
  buildCastSpell(spell: SpellInfo): CastSpellBuilder;
170
+ summonPlayer(player: Player): void
171
+ dealDamage(target: Unit, amount: number, type?: DamageEffectType, spellSchoolMask?: SpellSchoolMask, spellInfo?: SpellInfo, durabilityLoss?: boolean, allowGm?: boolean, spell?: Spell): number;
170
172
  }
171
173
  }
172
174
  }
@@ -0,0 +1,18 @@
1
+ declare global {
2
+ const enum AtLoginFlags {
3
+ AT_LOGIN_NONE = 0x00,
4
+ AT_LOGIN_RENAME = 0x01,
5
+ AT_LOGIN_RESET_SPELLS = 0x02,
6
+ AT_LOGIN_RESET_TALENTS = 0x04,
7
+ AT_LOGIN_CUSTOMIZE = 0x08,
8
+ AT_LOGIN_RESET_PET_TALENTS = 0x10,
9
+ AT_LOGIN_FIRST = 0x20,
10
+ AT_LOGIN_CHANGE_FACTION = 0x40,
11
+ AT_LOGIN_CHANGE_RACE = 0x80,
12
+ AT_LOGIN_RESET_AP = 0x100,
13
+ AT_LOGIN_RESET_ARENA = 0x200,
14
+ AT_LOGIN_CHECK_ACHIEVS = 0x400,
15
+ AT_LOGIN_RESURRECT = 0x800,
16
+ }
17
+ }
18
+ export {};
@@ -0,0 +1,30 @@
1
+ declare global {
2
+ const enum CombatRating {
3
+ CR_WEAPON_SKILL = 0,
4
+ CR_DEFENSE_SKILL = 1,
5
+ CR_DODGE = 2,
6
+ CR_PARRY = 3,
7
+ CR_BLOCK = 4,
8
+ CR_HIT_MELEE = 5,
9
+ CR_HIT_RANGED = 6,
10
+ CR_HIT_SPELL = 7,
11
+ CR_CRIT_MELEE = 8,
12
+ CR_CRIT_RANGED = 9,
13
+ CR_CRIT_SPELL = 10,
14
+ CR_HIT_TAKEN_MELEE = 11,
15
+ CR_HIT_TAKEN_RANGED = 12,
16
+ CR_HIT_TAKEN_SPELL = 13,
17
+ CR_CRIT_TAKEN_MELEE = 14,
18
+ CR_CRIT_TAKEN_RANGED = 15,
19
+ CR_CRIT_TAKEN_SPELL = 16,
20
+ CR_HASTE_MELEE = 17,
21
+ CR_HASTE_RANGED = 18,
22
+ CR_HASTE_SPELL = 19,
23
+ CR_WEAPON_SKILL_MAINHAND = 20,
24
+ CR_WEAPON_SKILL_OFFHAND = 21,
25
+ CR_WEAPON_SKILL_RANGED = 22,
26
+ CR_EXPERTISE = 23,
27
+ CR_ARMOR_PENETRATION = 24,
28
+ }
29
+ }
30
+ export {};
@@ -0,0 +1,12 @@
1
+ declare global {
2
+ const enum EnviromentalDamage {
3
+ DAMAGE_EXHAUSTED = 0,
4
+ DAMAGE_DROWNING = 1,
5
+ DAMAGE_FALL = 2,
6
+ DAMAGE_LAVA = 3,
7
+ DAMAGE_SLIME = 4,
8
+ DAMAGE_FIRE = 5,
9
+ DAMAGE_FALL_TO_VOID = 6, // custom case for fall without durability loss
10
+ }
11
+ }
12
+ export {};
@@ -0,0 +1,26 @@
1
+ declare global {
2
+ const enum EquipmentSlots { // 19 slots
3
+ EQUIPMENT_SLOT_START = 0,
4
+ EQUIPMENT_SLOT_HEAD = 0,
5
+ EQUIPMENT_SLOT_NECK = 1,
6
+ EQUIPMENT_SLOT_SHOULDERS = 2,
7
+ EQUIPMENT_SLOT_BODY = 3,
8
+ EQUIPMENT_SLOT_CHEST = 4,
9
+ EQUIPMENT_SLOT_WAIST = 5,
10
+ EQUIPMENT_SLOT_LEGS = 6,
11
+ EQUIPMENT_SLOT_FEET = 7,
12
+ EQUIPMENT_SLOT_WRISTS = 8,
13
+ EQUIPMENT_SLOT_HANDS = 9,
14
+ EQUIPMENT_SLOT_FINGER1 = 10,
15
+ EQUIPMENT_SLOT_FINGER2 = 11,
16
+ EQUIPMENT_SLOT_TRINKET1 = 12,
17
+ EQUIPMENT_SLOT_TRINKET2 = 13,
18
+ EQUIPMENT_SLOT_BACK = 14,
19
+ EQUIPMENT_SLOT_MAINHAND = 15,
20
+ EQUIPMENT_SLOT_OFFHAND = 16,
21
+ EQUIPMENT_SLOT_RANGED = 17,
22
+ EQUIPMENT_SLOT_TABARD = 18,
23
+ EQUIPMENT_SLOT_END = 19,
24
+ }
25
+ }
26
+ export {};
@@ -0,0 +1,27 @@
1
+ declare global {
2
+ const enum GossipOptionIcon {
3
+ GOSSIP_ICON_CHAT = 0, // white chat bubble
4
+ GOSSIP_ICON_VENDOR = 1, // brown bag
5
+ GOSSIP_ICON_TAXI = 2, // flightmarker (paperplane)
6
+ GOSSIP_ICON_TRAINER = 3, // brown book (trainer)
7
+ GOSSIP_ICON_INTERACT_1 = 4, // golden interaction wheel
8
+ GOSSIP_ICON_INTERACT_2 = 5, // golden interaction wheel
9
+ GOSSIP_ICON_MONEY_BAG = 6, // brown bag (with gold coin in lower corner)
10
+ GOSSIP_ICON_TALK = 7, // white chat bubble (with "..." inside)
11
+ GOSSIP_ICON_TABARD = 8, // white tabard
12
+ GOSSIP_ICON_BATTLE = 9, // two crossed swords
13
+ GOSSIP_ICON_DOT = 10, // yellow dot/point
14
+ GOSSIP_ICON_CHAT_11 = 11, // white chat bubble
15
+ GOSSIP_ICON_CHAT_12 = 12, // white chat bubble
16
+ GOSSIP_ICON_CHAT_13 = 13, // white chat bubble
17
+ GOSSIP_ICON_UNK_14 = 14, // INVALID - DO NOT USE
18
+ GOSSIP_ICON_UNK_15 = 15, // INVALID - DO NOT USE
19
+ GOSSIP_ICON_CHAT_16 = 16, // white chat bubble
20
+ GOSSIP_ICON_CHAT_17 = 17, // white chat bubble
21
+ GOSSIP_ICON_CHAT_18 = 18, // white chat bubble
22
+ GOSSIP_ICON_CHAT_19 = 19, // white chat bubble
23
+ GOSSIP_ICON_CHAT_20 = 20, // white chat bubble
24
+ GOSSIP_ICON_MAX,
25
+ }
26
+ }
27
+ export {};
@@ -0,0 +1,11 @@
1
+ declare global {
2
+ // stored in character_pet.slot
3
+ const enum PetSaveMode {
4
+ PET_SAVE_AS_DELETED = -1, // not saved in fact
5
+ PET_SAVE_AS_CURRENT = 0, // in current slot (with player)
6
+ PET_SAVE_FIRST_STABLE_SLOT = 1,
7
+ PET_SAVE_LAST_STABLE_SLOT = 4, // last in DB stable slot index (including), all higher have same meaning as PET_SAVE_NOT_IN_SLOT
8
+ PET_SAVE_NOT_IN_SLOT = 100, // for avoid conflict with stable size grow will use 100
9
+ }
10
+ }
11
+ export {};
@@ -0,0 +1,37 @@
1
+ declare global {
2
+ const enum PlayerFlags {
3
+ PLAYER_FLAGS_GROUP_LEADER = 0x00000001,
4
+ PLAYER_FLAGS_AFK = 0x00000002,
5
+ PLAYER_FLAGS_DND = 0x00000004,
6
+ PLAYER_FLAGS_GM = 0x00000008,
7
+ PLAYER_FLAGS_GHOST = 0x00000010,
8
+ PLAYER_FLAGS_RESTING = 0x00000020,
9
+ PLAYER_FLAGS_UNK6 = 0x00000040,
10
+ PLAYER_FLAGS_UNK7 = 0x00000080, // pre-3.0.3 PLAYER_FLAGS_FFA_PVP flag for FFA PVP state
11
+ PLAYER_FLAGS_CONTESTED_PVP = 0x00000100, // Player has been involved in a PvP combat and will be attacked by contested guards
12
+ PLAYER_FLAGS_IN_PVP = 0x00000200,
13
+ PLAYER_FLAGS_HIDE_HELM = 0x00000400,
14
+ PLAYER_FLAGS_HIDE_CLOAK = 0x00000800,
15
+ PLAYER_FLAGS_PARTIAL_PLAY_TIME = 0x00001000, // played long time
16
+ PLAYER_FLAGS_NO_PLAY_TIME = 0x00002000, // played too long time
17
+ PLAYER_FLAGS_IS_OUT_OF_BOUNDS = 0x00004000,
18
+ PLAYER_FLAGS_DEVELOPER = 0x00008000, // <Dev> prefix for something?
19
+ PLAYER_FLAGS_UNK16 = 0x00010000, // pre-3.0.3 PLAYER_FLAGS_SANCTUARY flag for player entered sanctuary
20
+ PLAYER_FLAGS_TAXI_BENCHMARK = 0x00020000, // taxi benchmark mode (on/off) (2.0.1)
21
+ PLAYER_FLAGS_PVP_TIMER = 0x00040000, // 3.0.2, pvp timer active (after you disable pvp manually)
22
+ PLAYER_FLAGS_UBER = 0x00080000,
23
+ PLAYER_FLAGS_UNK20 = 0x00100000,
24
+ PLAYER_FLAGS_UNK21 = 0x00200000,
25
+ PLAYER_FLAGS_COMMENTATOR2 = 0x00400000,
26
+ PLAYER_ALLOW_ONLY_ABILITY = 0x00800000, // used by bladestorm and killing spree, allowed only spells with SPELL_ATTR0_USES_RANGED_SLOT, SPELL_EFFECT_ATTACK, checked only for active player
27
+ PLAYER_FLAGS_UNK24 = 0x01000000, // disabled all melee ability on tab include autoattack
28
+ PLAYER_FLAGS_NO_XP_GAIN = 0x02000000,
29
+ PLAYER_FLAGS_UNK26 = 0x04000000,
30
+ PLAYER_FLAGS_UNK27 = 0x08000000,
31
+ PLAYER_FLAGS_UNK28 = 0x10000000,
32
+ PLAYER_FLAGS_UNK29 = 0x20000000,
33
+ PLAYER_FLAGS_UNK30 = 0x40000000,
34
+ PLAYER_FLAGS_UNK31 = 0x80000000,
35
+ }
36
+ }
37
+ export {};
package/enums/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export type * from './AchievementFlags.d.ts';
4
4
  export type * from './AcoreStrings.d.ts';
5
5
  export type * from './ArenaTeamInfoType.d.ts';
6
6
  export type * from './ArenaType.d.ts';
7
+ export type * from './AtLoginFlags.d.ts';
7
8
  export type * from './AuctionHouseId.d.ts';
8
9
  export type * from './AURA_FLAGS.d.ts';
9
10
  export type * from './AuraRemoveMode.d.ts';
@@ -17,6 +18,7 @@ export type * from './CharterTypes.d.ts';
17
18
  export type * from './ChatMsg.d.ts';
18
19
  export type * from './ClassContext.d.ts';
19
20
  export type * from './Classes.d.ts';
21
+ export type * from './CombatRating.d.ts';
20
22
  export type * from './ConditionSourceType.d.ts';
21
23
  export type * from './ConditionTypes.d.ts';
22
24
  export type * from './CorpseType.d.ts';
@@ -39,11 +41,14 @@ export type * from './Difficulty.d.ts';
39
41
  export type * from './DispelType.d.ts';
40
42
  export type * from './DuelCompleteType.d.ts';
41
43
  export type * from './Emote.d.ts';
44
+ export type * from './EnvironmentalDamage.d.ts';
45
+ export type * from './EquipmentSlots.d.ts';
42
46
  export type * from './EvadeReason.d.ts';
43
47
  export type * from './Expansions.d.ts';
44
48
  export type * from './Gender.d.ts';
45
49
  export type * from './GMTicketEscalationStatus.d.ts';
46
50
  export type * from './GossipAction.d.ts';
51
+ export type * from './GossipOptionIcon.d.ts';
47
52
  export type * from './GossipSender.d.ts';
48
53
  export type * from './GOState.d.ts';
49
54
  export type * from './GroupJoinBattlegroundResult.d.ts';
@@ -102,9 +107,11 @@ export type * from './NPCFlags.d.ts';
102
107
  export type * from './OBJECT_UPDATE_TYPE.d.ts';
103
108
  export type * from './OnlineState.d.ts';
104
109
  export type * from './PetDiet.d.ts';
110
+ export type * from './PetSaveMode.d.ts';
105
111
  export type * from './PetSpellState.d.ts';
106
112
  export type * from './PetType.d.ts';
107
113
  export type * from './PlayerChatTag.d.ts';
114
+ export type * from './PlayerFlags.d.ts';
108
115
  export type * from './PlayerXPSource.d.ts';
109
116
  export type * from './Powers.d.ts';
110
117
  export type * from './ProcFlags.d.ts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airbreather/mod-nodejs-types",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Type declarations (only) for the mod-nodejs AzerothCore module.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,9 @@
1
+ declare global {
2
+ interface CharTitlesEntry {
3
+ id: number;
4
+ nameMale: string[];
5
+ nameFemale: string[];
6
+ bitIndex: number;
7
+ }
8
+ }
9
+ export {};
@@ -1,6 +1,7 @@
1
1
  export type * from './AchievementEntry.d.ts';
2
2
  export type * from './BattlegroundScore.d.ts';
3
3
  export type * from './Box.d.ts';
4
+ export type * from './CharTitlesEntry.d.ts';
4
5
  export type * from './ChaseAngle.d.ts';
5
6
  export type * from './ChaseRange.d.ts';
6
7
  export type * from './CreatureModel.d.ts';