[10682] New table 'item_convert' for convertion items.

* Implment vendor at show replace BoA item with reputation requirement
  by identical item without rep. reqs for player that fit this requirements
  of original item.

* Table also can be used for store item convertion data form one team items
  to similar other team items. This case not impement but added function easy
  used for it.

* Note: strict single convert for item not created problem for both way use:
  item converted for same team or all, can't be original item for conversion to
  another team.
This commit is contained in:
VladimirMangos 2010-11-04 23:53:23 +03:00
parent 225b4db1ca
commit 2f144d9d29
13 changed files with 162 additions and 6 deletions

View file

@ -185,6 +185,7 @@ bool ChatHandler::HandleReloadAllGossipsCommand(char* args)
bool ChatHandler::HandleReloadAllItemCommand(char* /*args*/)
{
HandleReloadPageTextsCommand((char*)"a");
HandleReloadItemConvertCommand((char*)"a");
HandleReloadItemEnchantementsCommand((char*)"a");
HandleReloadItemRequiredTragetCommand((char*)"a");
return true;
@ -661,6 +662,14 @@ bool ChatHandler::HandleReloadItemEnchantementsCommand(char* /*args*/)
return true;
}
bool ChatHandler::HandleReloadItemConvertCommand(char* /*args*/)
{
sLog.outString( "Re-Loading Item Converts Table..." );
sObjectMgr.LoadItemConverts();
SendGlobalSysMessage("DB table `item_convert` reloaded.");
return true;
}
bool ChatHandler::HandleReloadItemRequiredTragetCommand(char* /*args*/)
{
sLog.outString( "Re-Loading Item Required Targets Table..." );