Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Can confirm it works. I'm on my phone, got no example at hand. Check Foes pastebin? Or the Eluna-ac

[DiscordArchive] Can confirm it works. I'm on my phone, got no example at hand. Check Foes pastebin? Or the Eluna-ac

[DiscordArchive] Can confirm it works. I'm on my phone, got no example at hand. Check Foes pastebin? Or the Eluna-ac

rektbyfaith
Administrator
0
03-15-2023, 03:33 PM
#1
Archived author: Honey • Posted: 2023-03-15T15:33:38.741000+00:00
Original source

Can confirm it works. I'm on my phone, got no example at hand. Check Foes pastebin? Or the Eluna-ac doxygen?
rektbyfaith
03-15-2023, 03:33 PM #1

Archived author: Honey • Posted: 2023-03-15T15:33:38.741000+00:00
Original source

Can confirm it works. I'm on my phone, got no example at hand. Check Foes pastebin? Or the Eluna-ac doxygen?

rektbyfaith
Administrator
0
03-15-2023, 04:27 PM
#2
Archived author: Foe • Posted: 2023-03-15T16:27:45.178000+00:00
Original source

```Lua
local function OnOpcode(event, packet, player)
if(packet:GetOpcode() == 278) then
-- do stuff
end
end

RegisterPacketEvent(278, 5, OnOpcode) -- 278 = On trade opcode```
rektbyfaith
03-15-2023, 04:27 PM #2

Archived author: Foe • Posted: 2023-03-15T16:27:45.178000+00:00
Original source

```Lua
local function OnOpcode(event, packet, player)
if(packet:GetOpcode() == 278) then
-- do stuff
end
end

RegisterPacketEvent(278, 5, OnOpcode) -- 278 = On trade opcode```

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)