Forums WoW Modding Support Archives WoWModding Threads [DiscordArchive] Hi there, I have an eluna question PLAYER_...

[DiscordArchive] Hi there, I have an eluna question PLAYER_...

[DiscordArchive] Hi there, I have an eluna question PLAYER_...

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
03-29-2025, 01:13 PM
#1
Archived author: Needle • Posted: 2025-03-29T13:13:44.617000+00:00
Original source

rektbyfaith
03-29-2025, 01:13 PM #1

Archived author: Needle • Posted: 2025-03-29T13:13:44.617000+00:00
Original source

rektbyfaith
Administrator
0
03-29-2025, 01:13 PM
#2
Archived author: Needle • Posted: 2025-03-29T13:13:47.225000+00:00
Original source

Thread automatically created by Thiesant in <#415944535718494208>
rektbyfaith
03-29-2025, 01:13 PM #2

Archived author: Needle • Posted: 2025-03-29T13:13:47.225000+00:00
Original source

Thread automatically created by Thiesant in <#415944535718494208>

rektbyfaith
Administrator
0
03-29-2025, 02:12 PM
#3
Archived author: stoneharry • Posted: 2025-03-29T14:12:24.192000+00:00
Original source

```
void Eluna::OnItemUnEquip(Player* pPlayer, Item* pItem, uint8 slot)
{
START_HOOK(ITEM_EVENT_ON_UNEQUIP, pItem->GetEntry());
HookPush(pPlayer);
HookPush(pItem);
HookPush(slot);
CallAllFunctions(ItemEventBindings, key);
}
```
rektbyfaith
03-29-2025, 02:12 PM #3

Archived author: stoneharry • Posted: 2025-03-29T14:12:24.192000+00:00
Original source

```
void Eluna::OnItemUnEquip(Player* pPlayer, Item* pItem, uint8 slot)
{
START_HOOK(ITEM_EVENT_ON_UNEQUIP, pItem->GetEntry());
HookPush(pPlayer);
HookPush(pItem);
HookPush(slot);
CallAllFunctions(ItemEventBindings, key);
}
```

rektbyfaith
Administrator
0
03-29-2025, 02:12 PM
#4
Archived author: stoneharry • Posted: 2025-03-29T14:12:46.849000+00:00
Original source

https://elunaluaengine.github.io/Global/...Event.html
[Embed: Global:RegisterItemEvent - Eluna]
API documentation for the Global:RegisterItemEvent method in the Eluna engine.
https://elunaluaengine.github.io/Global/...Event.html
rektbyfaith
03-29-2025, 02:12 PM #4

Archived author: stoneharry • Posted: 2025-03-29T14:12:46.849000+00:00
Original source

https://elunaluaengine.github.io/Global/...Event.html
[Embed: Global:RegisterItemEvent - Eluna]
API documentation for the Global:RegisterItemEvent method in the Eluna engine.
https://elunaluaengine.github.io/Global/...Event.html

rektbyfaith
Administrator
0
03-29-2025, 02:13 PM
#5
Archived author: stoneharry • Posted: 2025-03-29T14:13:00.559000+00:00
Original source

It looks like the player equip event is deprecated, and the item events are preferred
rektbyfaith
03-29-2025, 02:13 PM #5

Archived author: stoneharry • Posted: 2025-03-29T14:13:00.559000+00:00
Original source

It looks like the player equip event is deprecated, and the item events are preferred

rektbyfaith
Administrator
0
03-29-2025, 02:23 PM
#6
Archived author: Thiesant • Posted: 2025-03-29T14:23:17.647000+00:00
Original source

Thanks I will look further with this event, I was looking on ac and did not see it there, will have to check if they've updated the module though.
https://www.azerothcore.org/eluna/Global...Event.html
[Embed: Global:RegisterItemEvent - Eluna]
API documentation for the Global:RegisterItemEvent method in the Eluna engine.
https://www.azerothcore.org/eluna/Global...Event.html
rektbyfaith
03-29-2025, 02:23 PM #6

Archived author: Thiesant • Posted: 2025-03-29T14:23:17.647000+00:00
Original source

Thanks I will look further with this event, I was looking on ac and did not see it there, will have to check if they've updated the module though.
https://www.azerothcore.org/eluna/Global...Event.html
[Embed: Global:RegisterItemEvent - Eluna]
API documentation for the Global:RegisterItemEvent method in the Eluna engine.
https://www.azerothcore.org/eluna/Global...Event.html

rektbyfaith
Administrator
0
03-29-2025, 02:23 PM
#7
Archived author: Thiesant • Posted: 2025-03-29T14:23:33.229000+00:00
Original source

7 and 8 IDs were not on the AC page
rektbyfaith
03-29-2025, 02:23 PM #7

Archived author: Thiesant • Posted: 2025-03-29T14:23:33.229000+00:00
Original source

7 and 8 IDs were not on the AC page

rektbyfaith
Administrator
0
03-29-2025, 02:24 PM
#8
Archived author: stoneharry • Posted: 2025-03-29T14:24:04.685000+00:00
Original source

In on equip both hooks are called:
```c++
#ifdef ELUNA
if (Eluna* e = GetEluna())
{
e->OnEquip(this, pItem2, bag, slot); // This should be removed in the future
e->OnItemEquip(this, pItem2, slot);
}
#endif
```
On unequip:
```c++
#ifdef ELUNA
if (Eluna* e = GetEluna())
e->OnItemUnEquip(this, pItem, slot);
#endif
```
So the same unequip event doesn't exist for players but could be implemented with a bit of copy + paste
rektbyfaith
03-29-2025, 02:24 PM #8

Archived author: stoneharry • Posted: 2025-03-29T14:24:04.685000+00:00
Original source

In on equip both hooks are called:
```c++
#ifdef ELUNA
if (Eluna* e = GetEluna())
{
e->OnEquip(this, pItem2, bag, slot); // This should be removed in the future
e->OnItemEquip(this, pItem2, slot);
}
#endif
```
On unequip:
```c++
#ifdef ELUNA
if (Eluna* e = GetEluna())
e->OnItemUnEquip(this, pItem, slot);
#endif
```
So the same unequip event doesn't exist for players but could be implemented with a bit of copy + paste

rektbyfaith
Administrator
0
03-29-2025, 02:24 PM
#9
Archived author: stoneharry • Posted: 2025-03-29T14:24:31.644000+00:00
Original source

AC's Eluna implementation is a bit outdated and poor quality, so unsure there ‍♂️
rektbyfaith
03-29-2025, 02:24 PM #9

Archived author: stoneharry • Posted: 2025-03-29T14:24:31.644000+00:00
Original source

AC's Eluna implementation is a bit outdated and poor quality, so unsure there ‍♂️

rektbyfaith
Administrator
0
03-29-2025, 02:26 PM
#10
Archived author: Thiesant • Posted: 2025-03-29T14:26:21.077000+00:00
Original source

well, I'll try anyway, thanks
rektbyfaith
03-29-2025, 02:26 PM #10

Archived author: Thiesant • Posted: 2025-03-29T14:26:21.077000+00:00
Original source

well, I'll try anyway, thanks

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