[DiscordArchive] Hey guys, is it possible to expose custom values via wow api using trinitycore so they can be used i
[DiscordArchive] Hey guys, is it possible to expose custom values via wow api using trinitycore so they can be used i
Archived author: Skili • Posted: 2023-06-18T17:24:26.009000+00:00
Original source
Hey guys, is it possible to expose custom values via wow api using trinitycore so they can be used in addons clientside? FE a bit mask that represents a state and the lua clientside would determine whats shown in the UI based on the state represented by the bit mask?
Archived author: <o> • Posted: 2023-06-18T17:28:17.957000+00:00
Original source
send an addon message whisper from the player to the player on the server and intercept it in the addon is the common method
Archived author: <o> • Posted: 2023-06-18T17:29:03.241000+00:00
Original source
if you use eluna there's aio that can send more complex packets, but for simple applications it's overkill
Archived author: Foe • Posted: 2023-06-18T17:30:04.926000+00:00
Original source
https://github.com/Foereaper/CSMH is an alternative
Archived author: Skili • Posted: 2023-06-18T17:39:26.544000+00:00
Original source
thx guys, ill look into your suggestions! for now i only have one use case, so i dont feel like adding another layer like eluna just yet, feels like an overkill
Archived author: Foe • Posted: 2023-06-18T17:40:48.570000+00:00
Original source
You can handle it in c++ as well, but I don't think there's any message frameworks available so you'd have to write the logic yourself
Archived author: Skili • Posted: 2023-06-18T17:48:29.822000+00:00
Original source
ngl your solution reads like its exactly what i want. but reading through the eluna installation it sounds like i need to start from zero and compiling trinitycore from scratch? or is it possible to add it to my existing modifyied code base?
Archived author: Foe • Posted: 2023-06-18T17:49:19.675000+00:00
Original source
you can always diff it and add it yourself, but, good amount of work
Archived author: <o> • Posted: 2023-06-18T17:51:10.582000+00:00
Original source
if it's just a server->client message you can just
```c++
player->Whisper(your_text,LANG_ADDON,player);
```