[DiscordArchive] Would the Global:RegisterUniqueCreatureEvent guid and instance_id relate to creature:GetGUID() and c
[DiscordArchive] Would the Global:RegisterUniqueCreatureEvent guid and instance_id relate to creature:GetGUID() and c
Archived author: functorism • Posted: 2024-01-05T18:37:05.127000+00:00
Original source
Would the Global:RegisterUniqueCreatureEvent guid and instance_id relate to creature:GetGUID() and creature:GetInstanceId()? Or is that wrong?
Archived author: functorism • Posted: 2024-01-05T18:55:40.555000+00:00
Original source
I can only get RegisterCreatureEvent to work, but not RegisterUniqueCreatureEvent
```
local _ = RegisterUniqueCreatureEvent(creature:GetGUID(), creature:GetInstanceId(), CREATURE_EVENT_ON_REACH_WP, callback, 1)
RegisterCreatureEvent(entry, CREATURE_EVENT_ON_REACH_WP, callback, 1)
```
Archived author: Honey • Posted: 2024-01-05T18:55:50.682000+00:00
Original source
I usually stick with GitHub copilot for repeatetive tasks especially and keep a tab of the doxygen open for manual reference.
Archived author: functorism • Posted: 2024-01-05T18:56:28.592000+00:00
Original source
That works too, but I definitely want to see the type signatures of the functions when I wrote code.
Archived author: Honey • Posted: 2024-01-05T18:57:52.850000+00:00
Original source
I sure wouldn't mind to see that in my IDE anyways. No idea about compatibility though.
Archived author: functorism • Posted: 2024-01-05T19:07:54.139000+00:00
Original source
You use vscode? If so just install the lua extension by sumneko and put the stub files somewhere in your workspace and that's it.
Archived author: functorism • Posted: 2024-01-05T19:09:01.402000+00:00
Original source
You can git clone the gist,
git clone https://gist.github.com/functorism/1646c...181e7c4c7f
Archived author: functorism • Posted: 2024-01-05T19:14:05.185000+00:00
Original source
Any ideas as to why `RegisterUniqueCreatureEvent(creature:GetGUID(), creature:GetInstanceId(), CREATURE_EVENT_ON_REACH_WP, callback, 1)` might not work?
Archived author: functorism • Posted: 2024-01-05T19:17:05.025000+00:00
Original source
I can find exceptionally little information on `RegisterUniqueCreatureEvent`
Archived author: Honey • Posted: 2024-01-05T19:57:09.887000+00:00
Original source
Havent's used that one tbh. <@169121237539356673> is it fine on master?
If so we might miss a hook,