[DiscordArchive] Isn't it linked in the first paragraph of the AIO readme.md ?
[DiscordArchive] Isn't it linked in the first paragraph of the AIO readme.md ?
Archived author: Honey • Posted: 2023-11-08T04:28:38.594000+00:00
Original source
Isn't it linked in the first paragraph of the AIO readme.md ?
Archived author: Rymercyble • Posted: 2023-11-08T05:16:40.414000+00:00
Original source
https://github.com/MellianStudios/azerot.../tree/CAIO i didnt update it for long time so there will be few conflicts
Archived author: KJack • Posted: 2023-11-08T05:16:55.396000+00:00
Original source
ah, gotcha
Archived author: Rymercyble • Posted: 2023-11-08T05:18:19.864000+00:00
Original source
i got it updated in my private repo so it definitely works
Archived author: Rymercyble • Posted: 2023-11-08T05:18:30.696000+00:00
Original source
maybe i can update it there too
Archived author: Rymercyble • Posted: 2023-11-08T05:22:41.521000+00:00
Original source
https://github.com/Rochet2/TrinityCore/tree/c_aio this is what u were looking for that is original by rochet2 but obviously for TC some time ago alistar ported it for AC and i fixed and refactored it
Archived author: Rymercyble • Posted: 2023-11-08T05:32:12.713000+00:00
Original source
im updating it so u dont have to
Archived author: Rymercyble • Posted: 2023-11-08T05:35:18.659000+00:00
Original source
there also slipped some of my custom changes which shouldnt be there so at least i clean it up
Archived author: Rymercyble • Posted: 2023-11-08T05:44:37.683000+00:00
Original source
<@163514614863101962> updated
Archived author: Rymercyble • Posted: 2023-11-08T05:51:07.560000+00:00
Original source
there are no examples so
for sending
```cpp
player->AIOHandle("InstanceProgress", "Title", "something");
```
for receiving (same as classic hook) (AIOInstanceProgress is just my name)
```cpp
class AIOInstanceProgress : public AIOScript
{
public:
AIOInstanceProgress() : AIOScript("AIOInstanceProgress")
{
AddHandler("Reload", [](auto &&PH1, auto /*&&PH2*/) {
handleReload(PH1);
});
}
static void handleReload(Player *player)
{
}
};
void AddAddonScripts()
{
new AIOInstanceProgress;
}
```
in addon
```lua
local AIO = AIO or require("AIO")
```
for receiving
```lua
local handler = AIO.AddHandlers("InstanceProgress", {})
function handler.Title(player, message)
print(message)
end
```
for sending
```lua
AIO.Handle("AIOInstanceProgress", "Reload")
```
and obviously u need aio addon and it probably has to be correct version (1.72)