Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] ```lua

[DiscordArchive] ```lua

[DiscordArchive] ```lua

rektbyfaith
Administrator
0
11-15-2023, 05:52 PM
#1
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?
rektbyfaith
11-15-2023, 05:52 PM #1

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?

rektbyfaith
Administrator
0
11-15-2023, 06:30 PM
#2
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
rektbyfaith
11-15-2023, 06:30 PM #2

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

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