[DiscordArchive] Is there something like if emulator == "TRINITYCORE" in eluna? Like the C++ compile time variables?
[DiscordArchive] Is there something like if emulator == "TRINITYCORE" in eluna? Like the C++ compile time variables?
Archived author: Kaev • Posted: 2021-11-26T13:50:36.868000+00:00
Original source
I got a really good feeling about the API now. Thinking about stuff like NpcObject:AddLootItem(args) right now.
Archived author: Foe • Posted: 2021-11-26T13:51:12.988000+00:00
Original source
if you write your API as an extension (use .ext) then it'll always be loaded before the .lua files
Archived author: Foe • Posted: 2021-11-26T13:51:53.685000+00:00
Original source
then you just make your functions globals so you can call them from anywhere
Archived author: Kaev • Posted: 2021-11-26T13:51:58.220000+00:00
Original source
Good to know. No need for "___realawesomeluaextension.lua" then. Is there any other difference between .ext and .lua?
Archived author: Foe • Posted: 2021-11-26T13:52:04.952000+00:00
Original source
none
Archived author: Kaev • Posted: 2021-11-26T13:52:11.477000+00:00
Original source
Awesome