[DiscordArchive] `mechanic_immune_mask` is it's own column. Can i access that at runtime as well using Eluna?
[DiscordArchive] `mechanic_immune_mask` is it's own column. Can i access that at runtime as well using Eluna?
Archived author: Honey • Posted: 2024-02-07T12:11:22.615000+00:00
Original source
Ah, got it. Now to start digging.
Archived author: Foe • Posted: 2024-02-07T12:11:34.159000+00:00
Original source
pUnit:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FIELD_FLAG_C_UNATTACKABLE)
Archived author: Foe • Posted: 2024-02-07T12:12:06.179000+00:00
Original source
That's an example on how to make the creature unattackable
Archived author: Foe • Posted: 2024-02-07T12:12:35.072000+00:00
Original source
So you just need to find the correct permutation of what you want to achieve
Archived author: Foe • Posted: 2024-02-07T12:13:18.410000+00:00
Original source
You also have UNIT_FIELD_BYTES_1, 2 etc
Archived author: Foe • Posted: 2024-02-07T12:13:49.416000+00:00
Original source
So I'd just look at how that mechanic immunity DB field is handled and which unit field it gets written to
Archived author: Foe • Posted: 2024-02-07T12:13:56.321000+00:00
Original source
Then you just do that
Archived author: Honey • Posted: 2024-02-07T12:17:31.085000+00:00
Original source
`creatureTemplate.MechanicImmuneMask = fields[67].Get<uint32>();`
That's from the object manager. Field 67.
Archived author: Foe • Posted: 2024-02-07T12:24:34.059000+00:00
Original source
That's just the database field
Archived author: Foe • Posted: 2024-02-07T12:24:38.412000+00:00
Original source
Not the creature field