mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7980] Implement item use target requirements store and check (new table item_required_target).
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.
This commit is contained in:
parent
6d8867d0fc
commit
6a1b4e5729
18 changed files with 279 additions and 36 deletions
|
|
@ -169,6 +169,7 @@ bool ChatHandler::HandleReloadAllItemCommand(const char*)
|
|||
{
|
||||
HandleReloadPageTextsCommand("a");
|
||||
HandleReloadItemEnchantementsCommand("a");
|
||||
HandleReloadItemRequiredTragetCommand("a");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -584,6 +585,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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue