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

[DiscordArchive] Hey guys, is it possible to expose custom values via wow api using trinitycore so they can be used i

rektbyfaith
Administrator
0
06-18-2023, 05:24 PM
#1
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?
rektbyfaith
06-18-2023, 05:24 PM #1

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?

rektbyfaith
Administrator
0
06-18-2023, 05:28 PM
#2
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
rektbyfaith
06-18-2023, 05:28 PM #2

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

rektbyfaith
Administrator
0
06-18-2023, 05:29 PM
#3
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
rektbyfaith
06-18-2023, 05:29 PM #3

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

rektbyfaith
Administrator
0
06-18-2023, 05:30 PM
#4
Archived author: Foe • Posted: 2023-06-18T17:30:04.926000+00:00
Original source

https://github.com/Foereaper/CSMH is an alternative
rektbyfaith
06-18-2023, 05:30 PM #4

Archived author: Foe • Posted: 2023-06-18T17:30:04.926000+00:00
Original source

https://github.com/Foereaper/CSMH is an alternative

rektbyfaith
Administrator
0
06-18-2023, 05:39 PM
#5
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
rektbyfaith
06-18-2023, 05:39 PM #5

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

rektbyfaith
Administrator
0
06-18-2023, 05:40 PM
#6
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
rektbyfaith
06-18-2023, 05:40 PM #6

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

rektbyfaith
Administrator
0
06-18-2023, 05:48 PM
#7
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?
rektbyfaith
06-18-2023, 05:48 PM #7

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?

rektbyfaith
Administrator
0
06-18-2023, 05:49 PM
#8
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
rektbyfaith
06-18-2023, 05:49 PM #8

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

rektbyfaith
Administrator
0
06-18-2023, 05:51 PM
#9
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);
```
rektbyfaith
06-18-2023, 05:51 PM #9

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);
```

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