DarkAngel
Wiki Author
Hello. I would like to know if anyone has any information regarding world states.
Here is what I have:
I stole the packet structure from Stoneharry's custom bg and updated it for Eluna.
Looking at opcodes.h I found the following opcodes:
743 SMSG_INIT_WORLD_STATES = 0x2C2,
744 SMSG_UPDATE_WORLD_STATE = 0x2C3
Nothing happens when I send the packet to the player.
Any help would be greatly appreciated!
Regards, DarkAngel
Here is what I have:
Code:
local packet = CreatePacket(0x2C2, 18) -- HORDE
packet:WriteULong(mapid]) -- Map
packet:WriteULong(zoneid) -- Zone
packet:WriteULong(0)
packet:WriteUShort(2)
packet:WriteULong(0) -- ID
packet:WriteULong(1) -- Value
packet:WriteULong(0) -- ID
packet:WriteULong(1) -- Value
player:SendPacketToPlayer(packet)
local packet = CreatePacket(0x2C3, 8)
packet:WriteULong(2317) -- ID, total
packet:WriteULong(maxPoints) -- NeededScore
player:SendPacketToPlayer(packet)
local packet = CreatePacket(0x2C3, 8)
packet:WriteULong(2314) -- ID
packet:WriteULong(teamscore_1) -- Horde Score
player:SendPacketToPlayer(packet)
local packet = CreatePacket(0x2C3, 8)
packet:WriteULong(2313) -- ID
packet:WriteULong(teamscore_2) -- Alliance Score
player:SendPacketToPlayer(packet)
I stole the packet structure from Stoneharry's custom bg and updated it for Eluna.
Looking at opcodes.h I found the following opcodes:
743 SMSG_INIT_WORLD_STATES = 0x2C2,
744 SMSG_UPDATE_WORLD_STATE = 0x2C3
Nothing happens when I send the packet to the player.
Any help would be greatly appreciated!
Regards, DarkAngel
Last edited: