[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?
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?
Archived author: MtgCore • Posted: 2021-06-25T18:37:03.082000+00:00
Original source
Notification for all online players
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
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
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