You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings all, I'm trying to create a custom aura spell in AzerothCore, specifically I want to be able to cast it and have the effect applied, and the buff icon to be displayed in the top right corner with other auras. But when I try ".cast <spell_id>" nothing happens, no relevant error logs are found, and from what I can tell I have followed the standard protocol for creating a custom spell.
Here is what I have done/tried
First, I copied an existing spell in the spell editor, it is based on Blessing of Kings. I gave it the spell id "400001"
I exported the dbc files and put them in RelWithDebInfo/Data/dbc and in the wotlk client's data folder for the custom patch
I have my C++ spell script located in /src/server/scripts/Custom/DraconicBlood/draconic_blood.cpp, and it looks like this:
I have registered this custom spell script in custom_script_loader.cpp:
void AddSC_DraconicBloodSpell();
// The name of this function should match:
// void Add${NameOfDirectory}Scripts()
void AddCustomScripts()
{
AddSC_DraconicBloodSpell();
}
I have added the identifier string "DraconicBloodSpell" together with the corresponding spell id "400001" in the spell_script_names table:
after doing all this, I have of course reconfigured cmake, regenerated, cleaned and rebuilt the project (build was successful with no errors), and deleted the cache folder in the wotlk client. Yet despite all this, when I load up the server and boot the game, and try ".cast 400001", nothing happens
I would be so grateful if anyone could tell me what I have done wrong or ways I can troubleshoot this. I am a beginner when it comes to the AzerothCore API so I'm sure there's something I've missed.
Thank you in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Greetings all, I'm trying to create a custom aura spell in AzerothCore, specifically I want to be able to cast it and have the effect applied, and the buff icon to be displayed in the top right corner with other auras. But when I try ".cast <spell_id>" nothing happens, no relevant error logs are found, and from what I can tell I have followed the standard protocol for creating a custom spell.
Here is what I have done/tried
First, I copied an existing spell in the spell editor, it is based on Blessing of Kings. I gave it the spell id "400001"
I exported the dbc files and put them in RelWithDebInfo/Data/dbc and in the wotlk client's data folder for the custom patch
I have my C++ spell script located in /src/server/scripts/Custom/DraconicBlood/draconic_blood.cpp, and it looks like this:
I have added the identifier string "DraconicBloodSpell" together with the corresponding spell id "400001" in the spell_script_names table:
after doing all this, I have of course reconfigured cmake, regenerated, cleaned and rebuilt the project (build was successful with no errors), and deleted the cache folder in the wotlk client. Yet despite all this, when I load up the server and boot the game, and try ".cast 400001", nothing happens
I would be so grateful if anyone could tell me what I have done wrong or ways I can troubleshoot this. I am a beginner when it comes to the AzerothCore API so I'm sure there's something I've missed.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions