mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
[7980] Implement item use target requirements store and check (new table item_required_target). Author: NoFantasy
Signed-off-by: VladimirMangos <vladimir@getmangos.com> * Also implement this table reload * Static Spell::SendCastResult function for call not from spell code. Can be also used in scripts where need send explicitly spell cast error to client. --HG-- branch : trunk
This commit is contained in:
@@ -668,6 +668,7 @@ bool ChatHandler::HandleReloadAllItemCommand(const char*)
|
||||
{
|
||||
HandleReloadPageTextsCommand("a");
|
||||
HandleReloadItemEnchantementsCommand("a");
|
||||
HandleReloadItemRequiredTragetCommand("a");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1107,6 +1108,14 @@ bool ChatHandler::HandleReloadItemEnchantementsCommand(const char*)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleReloadItemRequiredTragetCommand(const char*)
|
||||
{
|
||||
sLog.outString( "Re-Loading Item Required Targets Table..." );
|
||||
objmgr.LoadItemRequiredTarget();
|
||||
SendGlobalSysMessage("DB table `item_required_target` reloaded.");
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleReloadGameObjectScriptsCommand(const char* arg)
|
||||
{
|
||||
if(sWorld.IsScriptScheduled())
|
||||
|
||||
Reference in New Issue
Block a user