[DiscordArchive] only for typing Player->Method in case like player:GiveXP, he grabs the reference to the player by i
[DiscordArchive] only for typing Player->Method in case like player:GiveXP, he grabs the reference to the player by i
Archived author: DevSoon • Posted: 2024-05-11T19:05:06.248000+00:00
Original source
only for typing Player->Method in case like player:GiveXP, he grabs the reference to the player by itself ?
Archived author: DevSoon • Posted: 2024-05-11T19:05:11.182000+00:00
Original source
and thanks for your help. ^^
Archived author: Honey • Posted: 2024-05-11T19:06:02.793000+00:00
Original source
it uses the player object, which was passed on by the event to the function
![[Image: image.png?ex=690c48f1&is=690af771&hm=4dd...dfe3a39c5&]](https://cdn.discordapp.com/attachments/448835144564867094/1238930230442328127/image.png?ex=690c48f1&is=690af771&hm=4dde7baab16834a0e67374e68af043813593c21c39d0157e27a191edfe3a39c5&)
Archived author: Honey • Posted: 2024-05-11T19:06:25.208000+00:00
Original source
The arguments and their order are given for each event.
![[Image: image.png?ex=690c48f1&is=690af771&hm=4dd...dfe3a39c5&]](https://cdn.discordapp.com/attachments/448835144564867094/1238930230442328127/image.png?ex=690c48f1&is=690af771&hm=4dde7baab16834a0e67374e68af043813593c21c39d0157e27a191edfe3a39c5&)
Archived author: Honey • Posted: 2024-05-11T19:06:36.097000+00:00
Original source
See <https://www.azerothcore.org/pages/eluna/Global/RegisterGameObjectEvent.html>
Archived author: DevSoon • Posted: 2024-05-11T19:07:47.822000+00:00
Original source
okay, it looks like 'lua' thinks different like my old baby C#.
But now i understand it.
Thanks a lot.
Archived author: Honey • Posted: 2024-05-11T19:08:50.182000+00:00
Original source
Good thinking with the GO events btw. That works around the missing spell events flawlessly.
Archived author: DevSoon • Posted: 2024-05-11T19:20:10.014000+00:00
Original source
Thanks, I'm curious to see how I'll implement this in terms of crafting items, but luckily I'm in the process of creating the gatherings first. xD
Archived author: Honey • Posted: 2024-05-11T19:23:06.746000+00:00
Original source
For events when crafting items, you will want the spell events. Cherry-picking a PR is probably a good example for an experienced C or C# dev to get a hold of the C codebase in Eluna / C++ codebase of the core.
Archived author: Honey • Posted: 2024-05-11T19:23:31.197000+00:00
Original source
Feel free to drop me a message, if you need assistance!