[DiscordArchive] <@169121237539356673> ive been reading eluna source and i have a question, why are `Eluna::OnExpire`
[DiscordArchive] <@169121237539356673> ive been reading eluna source and i have a question, why are `Eluna::OnExpire`
Archived author: jackpoz • Posted: 2024-03-09T16:16:54.610000+00:00
Original source
and a wiki page omg
Archived author: Foe • Posted: 2024-03-09T16:17:09.239000+00:00
Original source
Cata was primarily the preservation project (not updated) and mangos (also not updated)
Archived author: Foe • Posted: 2024-03-09T16:18:06.352000+00:00
Original source
I am working on updating the mangos specific stuff atm, but it's a slog and I don't know if I'll even continue mangos support. The project is pretty dead, and so much other legacy code that needs to be refactored to even support C++17
Archived author: Tea • Posted: 2024-03-09T16:18:18.358000+00:00
Original source
also can you send me a sample script that uses `LuaVal`? ive been looking into improving integration with unmodified tc to get rid of as many in-core changes as possible
ata():Get("Test") or 0
ata():Set("Test", data+1)Archived author: Foe • Posted: 2024-03-09T16:20:49.199000+00:00
Original source
```Lua
local function OnMapChange(event, player)
local data = player
ata():Get("Test") or 0
player:SendBroadcastMessage("Moved to map: "..GetStateMapId())
player:SendBroadcastMessage("Old data: "..data.." Setting new data to: "..data+1)
player
ata():Set("Test", data+1)
end
RegisterPlayerEvent(28, OnMapChange)```
Simple script I used just to check the player data store between Lua states
ata - Eluna]
ata method in the Eluna engine.Archived author: Foe • Posted: 2024-03-09T16:21:26.141000+00:00
Original source
https://elunaluaengine.github.io/WorldObject/Data.html
Some more examples there
[Embed: WorldObject
ata - Eluna]
API documentation for the WorldObject
ata method in the Eluna engine.
https://elunaluaengine.github.io/WorldObject/Data.html
Archived author: Foe • Posted: 2024-03-09T16:22:22.223000+00:00
Original source
And yeah, that would be nice. The majority right now is hooks outside of scriptmgr
Archived author: Tea • Posted: 2024-03-09T16:27:53.445000+00:00
Original source
not making any promises if that will go anywhere
Archived author: Foe • Posted: 2024-03-09T16:28:55.121000+00:00
Original source
No worries
Archived author: Foe • Posted: 2024-03-09T16:30:39.212000+00:00
Original source
I considered moving all the function hooks into their own scriptmgr functions, but that would (currently) just give me the exact same amount of merge conflicts, if not more