Trinitycore: Core/Creature: `creature`.`faction`

Created on 5 Jan 2021  路  9Comments  路  Source: TrinityCore/TrinityCore

We need another column to override faction in creature table

[25] UpdateType: CreateObject1
[25] GUID: Full: 0xF130003BF7002307 Type: Creature Entry: 15351 Low: 8967
[25] Object Type: 3 (Unit)
[25] Update Flags: 96 (Living, StationaryObject)
[25] Movement Flags: 0 (None)
[25] Extra Movement Flags: 0 (None)
[25] Time: 2167282161
[25] Position: X: 5647.5024 Y: 805.0453 Z: 653.78094
[25] Orientation: 5.585053443908691406
[25] Fall Time: 0
[25] Walk Speed: 2.5
[25] Run Speed: 8
[25] RunBack Speed: 4.5
[25] Swim Speed: 4.722222328186035156
[25] SwimBack Speed: 2.5
[25] Turn Speed: 7
[25] Fly Speed: 4.5
[25] FlyBack Speed: 3.141592741012573242
[25] Pitch Speed: 3.141592741012573242
[25] OBJECT_FIELD_GUID: Full: 0xF130003BF7002307 Type: Creature Entry: 15351 Low: 8967
[25] OBJECT_FIELD_TYPE: 9
[25] OBJECT_FIELD_ENTRY: 15351
[25] OBJECT_FIELD_SCALE_X: 1
[25] UNIT_FIELD_BYTES_0: 0/1/0/1
[25] UNIT_FIELD_HEALTH: 126000
[25] UNIT_FIELD_POWER3: 100/1.4E-43
[25] UNIT_FIELD_POWER4: 100/1.4E-43
[25] UNIT_FIELD_POWER5: 1000000/1.401298E-39
[25] UNIT_FIELD_MAXHEALTH: 126000/1.76564E-40
[25] UNIT_FIELD_MAXPOWER3: 100/1.4E-43
[25] UNIT_FIELD_MAXPOWER4: 100/1.4E-43
[25] UNIT_FIELD_MAXPOWER5: 1000000/1.401298E-39
[25] UNIT_FIELD_LEVEL: 80/1.12E-43
[25] UNIT_FIELD_FACTIONTEMPLATE: 534/7.48E-43 (534)
[25] UNIT_FIELD_FLAGS: 320
[25] UNIT_FIELD_FLAGS_2: 2048
[25] UNIT_FIELD_BASEATTACKTIME: 2000/2.803E-42
[25] UNIT_FIELD_BASEATTACKTIME + 1: 2000/2.803E-42
[25] UNIT_FIELD_BOUNDINGRADIUS: 0.3817
[25] UNIT_FIELD_COMBATREACH: 1.6500001
[25] UNIT_FIELD_DISPLAYID: 27154/3.8051E-41
[25] UNIT_FIELD_NATIVEDISPLAYID: 27154/3.8051E-41
[25] UNIT_MOD_CAST_SPEED: 1065353216/1
[25] UNIT_NPC_FLAGS: 3/4E-45
[25] UNIT_FIELD_BYTES_2: 1/0/0/0
[25] UNIT_FIELD_HOVERHEIGHT: 1

[5] UpdateType: CreateObject1
[5] GUID: Full: 0xF130003BF7001FD8 Type: Creature Entry: 15351 Low: 8152
[5] Object Type: 3 (Unit)
[5] Update Flags: 96 (Living, StationaryObject)
[5] Movement Flags: 0 (None)
[5] Extra Movement Flags: 0 (None)
[5] Time: 2034268640
[5] Position: X: -5049.987 Y: -1270.2637 Z: 510.40768
[5] Orientation: 0.03490658476948738
[5] Fall Time: 0
[5] Walk Speed: 2.5
[5] Run Speed: 8
[5] RunBack Speed: 4.5
[5] Swim Speed: 4.722222328186035156
[5] SwimBack Speed: 2.5
[5] Turn Speed: 7
[5] Fly Speed: 4.5
[5] FlyBack Speed: 3.141592741012573242
[5] Pitch Speed: 3.141592741012573242
[5] OBJECT_FIELD_GUID: Full: 0xF130003BF7001FD8 Type: Creature Entry: 15351 Low: 8152
[5] OBJECT_FIELD_TYPE: 9
[5] OBJECT_FIELD_ENTRY: 15351
[5] OBJECT_FIELD_SCALE_X: 1
[5] UNIT_FIELD_BYTES_0: 0/1/0/1
[5] UNIT_FIELD_HEALTH: 126000
[5] UNIT_FIELD_POWER3: 100/1.4E-43
[5] UNIT_FIELD_POWER4: 100/1.4E-43
[5] UNIT_FIELD_POWER5: 1000000/1.401298E-39
[5] UNIT_FIELD_MAXHEALTH: 126000/1.76564E-40
[5] UNIT_FIELD_MAXPOWER3: 100/1.4E-43
[5] UNIT_FIELD_MAXPOWER4: 100/1.4E-43
[5] UNIT_FIELD_MAXPOWER5: 1000000/1.401298E-39
[5] UNIT_FIELD_LEVEL: 80/1.12E-43
[5] UNIT_FIELD_FACTIONTEMPLATE: 55/7.7E-44 (55)
[5] UNIT_FIELD_FLAGS: 64
[5] UNIT_FIELD_FLAGS_2: 2048
[5] UNIT_FIELD_BASEATTACKTIME: 2000/2.803E-42
[5] UNIT_FIELD_UNK63: 2000/2.803E-42
[5] UNIT_FIELD_BOUNDINGRADIUS: 0.3817
[5] UNIT_FIELD_COMBATREACH: 1.6500001
[5] UNIT_FIELD_DISPLAYID: 27154/3.8051E-41
[5] UNIT_FIELD_NATIVEDISPLAYID: 27154/3.8051E-41
[5] UNIT_MOD_CAST_SPEED: 1065353216/1
[5] UNIT_NPC_FLAGS: 131/1.84E-43
[5] UNIT_FIELD_BYTES_2: 1/1/0/0
[5] UNIT_FIELD_HOVERHEIGHT: 1

Branch(es): both
TC rev. hash/commit: 94c03b2107ad

Comp-Core Priority-FutureFeatureRequest Sub-Creature

All 9 comments

Why do you need to override the creature's faction?

Example is brew of the month vendors and some other brew fest npcs there is only one entry per vendor currently these set faction via sai and conditions depending on wether they are in horde or alliance zone

Why do you need to override the creature's faction?

Answer is literally in packets I attached :)

Yeah, brew of the month vendors + some more too related to brewfest. There are more but I already forgot which ones

I really don't understand why they did the SAI in this commit ba6365f, just putting faction (FactionTemplate.ID = 127) that belongs to npc solved the problem.

they are sniffed factions and

Another case.

[40] UpdateType: CreateObject1
[40] GUID: Full: 0xF1300066A80062D8 Type: Creature Entry: 26280 Low: 25304
[40] Object Type: 3 (Unit)
[40] Update Flags: 96 (Living, StationaryObject)
[40] Movement Flags: 3072 (DisableGravity, Root)
[40] Extra Movement Flags: 0 (None)
[40] Time: 4264611602
[40] Position: X: 3101.8157 Y: 1371.178 Z: 136.07372
[40] Orientation: 5.619960308074951171
[40] Fall Time: 0
[40] Walk Speed: 2.5
[40] Run Speed: 8
[40] RunBack Speed: 4.5
[40] Swim Speed: 4.722222328186035156
[40] SwimBack Speed: 2.5
[40] Turn Speed: 7
[40] Fly Speed: 4.5
[40] FlyBack Speed: 3.141592741012573242
[40] Pitch Speed: 3.141592741012573242
[40] OBJECT_FIELD_GUID: Full: 0xF1300066A80062D8 Type: Creature Entry: 26280 Low: 25304
[40] OBJECT_FIELD_TYPE: 9
[40] OBJECT_FIELD_ENTRY: 26280
[40] OBJECT_FIELD_SCALE_X: 1
[40] UNIT_FIELD_BYTES_0: 0/2/0/0
[40] UNIT_FIELD_HEALTH: 9610
[40] UNIT_FIELD_POWER1: 3309/4.637E-42
[40] UNIT_FIELD_POWER3: 100/1.4E-43
[40] UNIT_FIELD_POWER4: 100/1.4E-43
[40] UNIT_FIELD_POWER5: 1000000/1.401298E-39
[40] UNIT_FIELD_MAXHEALTH: 9610/1.3466E-41
[40] UNIT_FIELD_MAXPOWER1: 3309/4.637E-42
[40] UNIT_FIELD_MAXPOWER3: 100/1.4E-43
[40] UNIT_FIELD_MAXPOWER4: 100/1.4E-43
[40] UNIT_FIELD_MAXPOWER5: 1000000/1.401298E-39
[40] UNIT_FIELD_LEVEL: 72/1.01E-43
[40] UNIT_FIELD_FACTIONTEMPLATE: 35/4.9E-44 (35)
[40] UNIT_FIELD_FLAGS: 537165824
[40] UNIT_FIELD_FLAGS_2: 2049
[40] UNIT_FIELD_BASEATTACKTIME: 2000/2.803E-42
[40] UNIT_FIELD_UNK63: 2000/2.803E-42
[40] UNIT_FIELD_BOUNDINGRADIUS: 0.3366
[40] UNIT_FIELD_COMBATREACH: 1.6500001
[40] UNIT_FIELD_DISPLAYID: 23832/3.3396E-41
[40] UNIT_FIELD_NATIVEDISPLAYID: 23832/3.3396E-41
[40] UNIT_DYNAMIC_FLAGS: 32/4.5E-44
[40] UNIT_MOD_CAST_SPEED: 1065353216/1
[40] UNIT_FIELD_BASE_MANA: 3241/4.542E-42
[40] UNIT_FIELD_BYTES_2: 1/0/0/0
[40] UNIT_FIELD_HOVERHEIGHT: 1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jildor picture Jildor  路  3Comments

Teppic1 picture Teppic1  路  3Comments

Rushor picture Rushor  路  3Comments

ZenoX92 picture ZenoX92  路  3Comments

Blasphemous picture Blasphemous  路  3Comments