Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] How do they do this through Eluna?

[DiscordArchive] How do they do this through Eluna?

[DiscordArchive] How do they do this through Eluna?

rektbyfaith
Administrator
0
08-24-2023, 04:52 AM
#1
Archived author: Deleted User • Posted: 2023-08-24T04:52:04.148000+00:00
Original source

How do they do this through Eluna?
20230823_163239.mp4
rektbyfaith
08-24-2023, 04:52 AM #1

Archived author: Deleted User • Posted: 2023-08-24T04:52:04.148000+00:00
Original source

How do they do this through Eluna?
20230823_163239.mp4

rektbyfaith
Administrator
0
08-24-2023, 04:55 AM
#2
Archived author: Deleted User • Posted: 2023-08-24T04:55:16.513000+00:00
Original source

This is an example that I was doing, but I really don't understand much, of all the opcodes that I tried, this was one that worked for me, and I found it interesting
local DATA_PVP = 0x2E0

local function SendPvpLogData(player, stateID, value)
local packet = CreatePacket(DATA_PVP, 18)
local map = player:GetMapId()
local zone = player:GetZoneId()

packet:WriteULong(map)
packet:WriteULong(zone)
packet:WriteULong(0)
packet:WriteUShort(1)
packet:WriteULong(stateID)
packet:WriteULong(value)

player:SendPacket(packet)
end

local function OnPlayerChat(event, player, message, type, language)
if message == "sendpvplogdata" then
local stateID = 123
local value = 456
SendPvpLogData(player, stateID, value)
end
end

RegisterPlayerEvent(42, OnPlayerChat)
rektbyfaith
08-24-2023, 04:55 AM #2

Archived author: Deleted User • Posted: 2023-08-24T04:55:16.513000+00:00
Original source

This is an example that I was doing, but I really don't understand much, of all the opcodes that I tried, this was one that worked for me, and I found it interesting
local DATA_PVP = 0x2E0

local function SendPvpLogData(player, stateID, value)
local packet = CreatePacket(DATA_PVP, 18)
local map = player:GetMapId()
local zone = player:GetZoneId()

packet:WriteULong(map)
packet:WriteULong(zone)
packet:WriteULong(0)
packet:WriteUShort(1)
packet:WriteULong(stateID)
packet:WriteULong(value)

player:SendPacket(packet)
end

local function OnPlayerChat(event, player, message, type, language)
if message == "sendpvplogdata" then
local stateID = 123
local value = 456
SendPvpLogData(player, stateID, value)
end
end

RegisterPlayerEvent(42, OnPlayerChat)

Recently Browsing
 
Recently Browsing