[DiscordArchive] How do they do this through Eluna?
[DiscordArchive] How do they do this through Eluna?
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
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)