[DiscordArchive] I have a question about the SendAddonMessage function: I see there are 2 player pointers, one called
[DiscordArchive] I have a question about the SendAddonMessage function: I see there are 2 player pointers, one called
Archived author: devout_filidh • Posted: 2025-08-19T14:05:36.472000+00:00
Original source
I have a question about the SendAddonMessage function: I see there are 2 player pointers, one called player and one called receiver. does it mean you are sending a message from a player to another player and that message is then intercepted and read by their addon?
Archived author: iThorgrim • Posted: 2025-08-19T14:45:35.366000+00:00
Original source
The message you’re replying to has nothing to do with it. As for your case, since you want to send a message to your player (so to himself), the target is… himself
Archived author: devout_filidh • Posted: 2025-08-19T14:56:17.835000+00:00
Original source
sending a message to yourself will be rejected by the client right?
Archived author: iThorgrim • Posted: 2025-08-19T14:59:04.702000+00:00
Original source
It's not "yourself" because the entity is not shared from the server to the client.
For the server you use Player entity to send message to "Bob" in game (Bob is you).
For the client Bob just received a message
Archived author: devout_filidh • Posted: 2025-08-19T15:01:29.241000+00:00
Original source
thanks
Archived author: devout_filidh • Posted: 2025-08-19T15:58:28.815000+00:00
Original source
what am I doing wrong? I get this error when using the SendAddonMessage: lua_scripts/addon_test.lua:2: attempt to call global 'SendAddonMessage' (a nil value)
Archived author: metallinos • Posted: 2025-08-19T16:11:00.260000+00:00
Original source
You need a player object
Archived author: metallinos • Posted: 2025-08-19T16:11:19.778000+00:00
Original source
https://www.azerothcore.org/eluna/Player...ssage.html https://www.azerothcore.org/eluna/Player...=sendaddon it's not a global function
[Embed: Player:SendAddonMessage - Eluna]
API documentation for the Player:SendAddonMessage method in the Eluna engine.
https://www.azerothcore.org/eluna/Player...ssage.html
[Embed: Player:SendAddonMessage - Eluna]
API documentation for the Player:SendAddonMessage method in the Eluna engine.
https://www.azerothcore.org/eluna/Player...=sendaddon
Archived author: devout_filidh • Posted: 2025-08-19T16:43:55.526000+00:00
Original source
thanks. it worked
Archived author: devout_filidh • Posted: 2025-08-19T16:47:04.596000+00:00
Original source
Now for the hard part. the data I want to send is in c++ collections. is there a way I can use Eluna's SendAddonMessage from C++, or recreate this function in c++ (i've been trying and failing for days), or is there a way for eluna to get this data somehow? or maybe I can intercept this packet and recreate it in c++ somehow?