Added reload command for spell_linked_spell DB table
--HG-- branch : trunk
This commit is contained in:
1 parent
5fb720d117
commit
813a832b11
4 files changed
+14
No files matched your search
@@ -0,0 +1,3 @@
|
||||
delete from command where name in ('reload spell_linked_spell');
|
||||
insert into command (name, security, help) values
|
||||
('reload spell_linked_spell','3','Usage: .reload spell_linked_spell\r\nReloads the spell_linked_spell DB table.'),
|
||||
@@ -287,6 +287,7 @@ ChatCommand * ChatHandler::getCommandTable()
|
||||
{ "spell_required", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellRequiredCommand, "", NULL },
|
||||
{ "spell_elixir", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellElixirCommand, "", NULL },
|
||||
{ "spell_learn_spell", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellLearnSpellCommand, "", NULL },
|
||||
{ "spell_linked_spell", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellLinkedSpellCommand, "", NULL },
|
||||
{ "spell_pet_auras", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellPetAurasCommand, "", NULL },
|
||||
{ "spell_proc_event", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellProcEventCommand, "", NULL },
|
||||
{ "spell_script_target", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellScriptTargetCommand, "", NULL },
|
||||
|
||||
@@ -260,6 +260,7 @@ class ChatHandler
|
||||
bool HandleReloadSpellRequiredCommand(const char* args);
|
||||
bool HandleReloadSpellElixirCommand(const char* args);
|
||||
bool HandleReloadSpellLearnSpellCommand(const char* args);
|
||||
bool HandleReloadSpellLinkedSpellCommand(const char* args);
|
||||
bool HandleReloadSpellProcEventCommand(const char* args);
|
||||
bool HandleReloadSpellScriptTargetCommand(const char* args);
|
||||
bool HandleReloadSpellScriptsCommand(const char* args);
|
||||
|
||||
@@ -620,6 +620,7 @@ bool ChatHandler::HandleReloadAllSpellCommand(const char*)
|
||||
HandleReloadSpellRequiredCommand("a");
|
||||
HandleReloadSpellElixirCommand("a");
|
||||
HandleReloadSpellLearnSpellCommand("a");
|
||||
HandleReloadSpellLinkedSpellCommand("a");
|
||||
HandleReloadSpellProcEventCommand("a");
|
||||
HandleReloadSpellScriptTargetCommand("a");
|
||||
HandleReloadSpellTargetPositionCommand("a");
|
||||
@@ -927,6 +928,14 @@ bool ChatHandler::HandleReloadSpellLearnSpellCommand(const char*)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleReloadSpellLinkedSpellCommand(const char*)
|
||||
{
|
||||
sLog.outString( "Re-Loading Spell Linked Spells..." );
|
||||
spellmgr.LoadSpellLinked();
|
||||
SendGlobalGMSysMessage("DB table `spell_linked_spell` reloaded.");
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleReloadSpellProcEventCommand(const char*)
|
||||
{
|
||||
sLog.outString( "Re-Loading Spell Proc Event conditions..." );
|
||||
|
||||
Reference in new issue
Block a user