Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Is there a possibility to send a message to all players in notification style?

[DiscordArchive] Is there a possibility to send a message to all players in notification style?

[DiscordArchive] Is there a possibility to send a message to all players in notification style?

rektbyfaith
Administrator
0
06-25-2021, 06:36 PM
#1
Archived author: MtgCore • Posted: 2021-06-25T18:36:30.998000+00:00
Original source

Is there a possibility to send a message to all players in notification style?
rektbyfaith
06-25-2021, 06:36 PM #1

Archived author: MtgCore • Posted: 2021-06-25T18:36:30.998000+00:00
Original source

Is there a possibility to send a message to all players in notification style?

rektbyfaith
Administrator
0
06-25-2021, 06:37 PM
#2
Archived author: MtgCore • Posted: 2021-06-25T18:37:03.082000+00:00
Original source

Notification for all online players
rektbyfaith
06-25-2021, 06:37 PM #2

Archived author: MtgCore • Posted: 2021-06-25T18:37:03.082000+00:00
Original source

Notification for all online players

rektbyfaith
Administrator
0
06-25-2021, 06:42 PM
#3
Archived author: Honey • Posted: 2021-06-25T18:42:42.357000+00:00
Original source

https://elunaluaengine.github.io/Global/...ssage.html
the wiki is your friend
[Embed: Global:SendWorldMessage - Eluna]
API documentation for the Global:SendWorldMessage method in the Eluna engine.
https://elunaluaengine.github.io/Global/...ssage.html
rektbyfaith
06-25-2021, 06:42 PM #3

Archived author: Honey • Posted: 2021-06-25T18:42:42.357000+00:00
Original source

https://elunaluaengine.github.io/Global/...ssage.html
the wiki is your friend
[Embed: Global:SendWorldMessage - Eluna]
API documentation for the Global:SendWorldMessage method in the Eluna engine.
https://elunaluaengine.github.io/Global/...ssage.html

rektbyfaith
Administrator
0
06-25-2021, 06:43 PM
#4
Archived author: MtgCore • Posted: 2021-06-25T18:43:05.899000+00:00
Original source

function WorldWideMessage(player, text)
textLen = string.len(text) + 1
players = GetPlayersInWorld(2, false)

SMSG_MESSAGECHAT = 150
CHAT_MSG_RAID_WARNING = 40

for k, v in pairs (players) do
local data = CreatePacket(SMSG_MESSAGECHAT, textLen + 40);
data:WriteUByte(CHAT_MSG_RAID_WARNING)
data:WriteULong(0)
data:WriteGUID(0)
data:WriteULong(0)
data:WriteGUID(0)
data:WriteULong(textLen)
data:WriteString(text)
data:WriteUByte(0)
v:SendPacket(data)
end
end

This function causes the message to be RAID WARNING
rektbyfaith
06-25-2021, 06:43 PM #4

Archived author: MtgCore • Posted: 2021-06-25T18:43:05.899000+00:00
Original source

function WorldWideMessage(player, text)
textLen = string.len(text) + 1
players = GetPlayersInWorld(2, false)

SMSG_MESSAGECHAT = 150
CHAT_MSG_RAID_WARNING = 40

for k, v in pairs (players) do
local data = CreatePacket(SMSG_MESSAGECHAT, textLen + 40);
data:WriteUByte(CHAT_MSG_RAID_WARNING)
data:WriteULong(0)
data:WriteGUID(0)
data:WriteULong(0)
data:WriteGUID(0)
data:WriteULong(textLen)
data:WriteString(text)
data:WriteUByte(0)
v:SendPacket(data)
end
end

This function causes the message to be RAID WARNING

rektbyfaith
Administrator
0
06-25-2021, 06:44 PM
#5
Archived author: MtgCore • Posted: 2021-06-25T18:44:00.713000+00:00
Original source

That's not it... I need something that shows the notification at the top like SMSG_NOTIFICATION
rektbyfaith
06-25-2021, 06:44 PM #5

Archived author: MtgCore • Posted: 2021-06-25T18:44:00.713000+00:00
Original source

That's not it... I need something that shows the notification at the top like SMSG_NOTIFICATION

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