Forums WoW Modding Support Archives Azerothcore Discord Archives [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

[DiscordArchive] I have a question about the SendAddonMessage function: I see there are 2 player pointers, one called

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
08-19-2025, 02:05 PM
#1
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?
rektbyfaith
08-19-2025, 02:05 PM #1

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?

rektbyfaith
Administrator
0
08-19-2025, 02:45 PM
#2
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
rektbyfaith
08-19-2025, 02:45 PM #2

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

rektbyfaith
Administrator
0
08-19-2025, 02:56 PM
#3
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?
rektbyfaith
08-19-2025, 02:56 PM #3

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?

rektbyfaith
Administrator
0
08-19-2025, 02:59 PM
#4
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
rektbyfaith
08-19-2025, 02:59 PM #4

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

rektbyfaith
Administrator
0
08-19-2025, 03:01 PM
#5
Archived author: devout_filidh • Posted: 2025-08-19T15:01:29.241000+00:00
Original source

thanks
rektbyfaith
08-19-2025, 03:01 PM #5

Archived author: devout_filidh • Posted: 2025-08-19T15:01:29.241000+00:00
Original source

thanks

rektbyfaith
Administrator
0
08-19-2025, 03:58 PM
#6
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)
rektbyfaith
08-19-2025, 03:58 PM #6

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)

rektbyfaith
Administrator
0
08-19-2025, 04:11 PM
#7
Archived author: metallinos • Posted: 2025-08-19T16:11:00.260000+00:00
Original source

You need a player object
rektbyfaith
08-19-2025, 04:11 PM #7

Archived author: metallinos • Posted: 2025-08-19T16:11:00.260000+00:00
Original source

You need a player object

rektbyfaith
Administrator
0
08-19-2025, 04:11 PM
#8
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
rektbyfaith
08-19-2025, 04:11 PM #8

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

rektbyfaith
Administrator
0
08-19-2025, 04:43 PM
#9
Archived author: devout_filidh • Posted: 2025-08-19T16:43:55.526000+00:00
Original source

thanks. it worked
rektbyfaith
08-19-2025, 04:43 PM #9

Archived author: devout_filidh • Posted: 2025-08-19T16:43:55.526000+00:00
Original source

thanks. it worked

rektbyfaith
Administrator
0
08-19-2025, 04:47 PM
#10
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?
rektbyfaith
08-19-2025, 04:47 PM #10

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?

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)