Forums WoW Modding Support Archives Azerothcore Discord Archives [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

[DiscordArchive] Would the Global:RegisterUniqueCreatureEvent guid and instance_id relate to creature:GetGUID() and c

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
01-05-2024, 06:37 PM
#1
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?
rektbyfaith
01-05-2024, 06:37 PM #1

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?

rektbyfaith
Administrator
0
01-05-2024, 06:55 PM
#2
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)
```
rektbyfaith
01-05-2024, 06:55 PM #2

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)
```

rektbyfaith
Administrator
0
01-05-2024, 06:55 PM
#3
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.
rektbyfaith
01-05-2024, 06:55 PM #3

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.

rektbyfaith
Administrator
0
01-05-2024, 06:56 PM
#4
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.
rektbyfaith
01-05-2024, 06:56 PM #4

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.

rektbyfaith
Administrator
0
01-05-2024, 06:57 PM
#5
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.
rektbyfaith
01-05-2024, 06:57 PM #5

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.

rektbyfaith
Administrator
0
01-05-2024, 07:07 PM
#6
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.
rektbyfaith
01-05-2024, 07:07 PM #6

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.

rektbyfaith
Administrator
0
01-05-2024, 07:09 PM
#7
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
rektbyfaith
01-05-2024, 07:09 PM #7

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

rektbyfaith
Administrator
0
01-05-2024, 07:14 PM
#8
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?
rektbyfaith
01-05-2024, 07:14 PM #8

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?

rektbyfaith
Administrator
0
01-05-2024, 07:17 PM
#9
Archived author: functorism • Posted: 2024-01-05T19:17:05.025000+00:00
Original source

I can find exceptionally little information on `RegisterUniqueCreatureEvent`
rektbyfaith
01-05-2024, 07:17 PM #9

Archived author: functorism • Posted: 2024-01-05T19:17:05.025000+00:00
Original source

I can find exceptionally little information on `RegisterUniqueCreatureEvent`

rektbyfaith
Administrator
0
01-05-2024, 07:57 PM
#10
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,
rektbyfaith
01-05-2024, 07:57 PM #10

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,

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)