[DiscordArchive] ```lua
[DiscordArchive] ```lua
Archived author: Crow • Posted: 2023-11-15T17:52:40.508000+00:00
Original source
```lua
if intid == 12 then
local data = CreatePacket(SMSG_OVERRIDE_LIGHT, 12);
local SkyNum = tonumber(code)
data:WriteULong(player:GetAreaId());
data:WriteULong(0);
data:WriteULong(SkyNum);
player:SendPacket(data)
--player:UpdateLightByOverriding(player:GetAreaId(), 1000, code)
player:SendBroadcastMessage( "Testing Lightbox" )
player:GossipComplete()
end```
I have a gossip npc I use to text stuff in lua, I decided to try to send packets updating the light in a given zone for the player using it, is this correct? am I using it wrong? does SMSG_OVERRIDE_LIGHT not do what I think it does?
Archived author: Titi • Posted: 2023-11-15T18:30:18.698000+00:00
Original source
Why the heck do you need a patch that large for wallcraft