[DiscordArchive] <@313764821776465920> R:
[DiscordArchive] <@313764821776465920> R:
Archived author: Alexandra_Samo • Posted: 2023-11-06T18:40:58.721000+00:00
Original source
<@313764821776465920> R:
That’s interesting. Is there a documentation for OnAfterSpellLoad? Can you share a link?
Archived author: Abillister • Posted: 2023-11-06T19:17:51.091000+00:00
Original source
Well as mentioned I was just messing around and asking Microsoft Edges implementation of GPT-4. So I haven't tested it yet.
But I asked "it" about documentation and got the reply:
"Hello, this is Bing. I searched the web for your question and found some relevant results. According to the AzerothCore wiki, the OnAfterSpellLoad hook is a function that is declared inside a ScriptObject and that is defined by the Listeners1. It is part of the ScriptAI system, which uses a special Observer pattern strategy to implement an event-driven programming1. The wiki also provides some examples of how to create and use hooks in your scripts1.
The OnAfterSpellLoad hook is not explicitly documented in the wiki, but you can find some references to it in the spell system article, which explains how spells work in AzerothCore2. You can also check the FAQ section, which suggests that you can add the hook to your own fork and create a pull request to the official repository3. Alternatively, you can visit the AzerothCore website and look for recent commits or updates related to the hook4."
Archived author: Honey • Posted: 2023-11-06T19:34:46.819000+00:00
Original source
AI is funny sometimes. It's somewhere in between funny and scary how it mixes up useful and utterly wrong/made up information.
Archived author: Honey • Posted: 2023-11-06T19:36:19.064000+00:00
Original source
If you're looking for any hook in the emulator, check the `ScriptMgr.h` file.