[DiscordArchive] Well, hook code uses the GET_GUID (which is GetObjectGuid) to do look ups in the bindings, so wouldn
[DiscordArchive] Well, hook code uses the GET_GUID (which is GetObjectGuid) to do look ups in the bindings, so wouldn
Archived author: functorism • Posted: 2024-01-05T20:19:43.111000+00:00
Original source
Well, hook code uses the GET_GUID (which is GetObjectGuid) to do look ups in the bindings, so wouldn't that mean that's what one should use?
Archived author: Honey • Posted: 2024-01-05T20:20:16.205000+00:00
Original source
That sounds like there is an underlying issue to me.
Archived author: functorism • Posted: 2024-01-05T20:20:40.740000+00:00
Original source
Register event doesn't allow you to listen to a hook, but merely create an event after a delay, which isn't what I'm trying to do. As I'm trying to listen to when a event happens to the creature.
Archived author: Honey • Posted: 2024-01-05T20:21:20.295000+00:00
Original source
If it works for you, it's allright
Archived author: functorism • Posted: 2024-01-05T20:21:38.410000+00:00
Original source
Nothing works right now
Archived author: Honey • Posted: 2024-01-05T20:21:48.746000+00:00
Original source
I haven't read the code you're looking at. But `GetObjectGuid` uses the entry and the low guid iirc.
Archived author: Foe • Posted: 2024-01-05T20:52:49.867000+00:00
Original source
It's a bit of an AI issue tbh
Archived author: Foe • Posted: 2024-01-05T20:53:32.524000+00:00
Original source
Registering an event to a creature after the creature exists (which it needs to do for GetGUID to work) doesn't instantiate Lua AI properly
Archived author: Foe • Posted: 2024-01-05T20:54:12.970000+00:00
Original source
RegisterUniqueCreatureEvent is primarily meant to work with database GUID's, which inherently is the same thing, but events need to be registered prior to the creature AI being created
Archived author: Honey • Posted: 2024-01-05T20:54:37.404000+00:00
Original source
That explains it, cheers!