[11646] Implement support item converting at expire

Example: items 44623->44625->44627 convertion chain

* New table `item_enchantment_template` store original->final item pairs
  Original item must have duration setup.
* Small change in GetItemConvert for consistence (now 0 returned if no convert pair instead original entry id)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
cmaranec 2011-06-18 21:11:23 +04:00 committed by VladimirMangos
parent a97370a7f0
commit 2d7768a5ab
10 changed files with 117 additions and 13 deletions

View file

@ -1010,12 +1010,15 @@ void World::SetInitialWorldSettings()
sLog.outString( "Loading Item Random Enchantments Table..." );
LoadRandomEnchantmentsTable();
sLog.outString( "Loading Items..." ); // must be after LoadRandomEnchantmentsTable and LoadPageTexts
sLog.outString("Loading Items..."); // must be after LoadRandomEnchantmentsTable and LoadPageTexts
sObjectMgr.LoadItemPrototypes();
sLog.outString( "Loading Item converts..." ); // must be after LoadItemPrototypes
sLog.outString("Loading Item converts..."); // must be after LoadItemPrototypes
sObjectMgr.LoadItemConverts();
sLog.outString("Loading Item expire converts..."); // must be after LoadItemPrototypes
sObjectMgr.LoadItemExpireConverts();
sLog.outString( "Loading Creature Model Based Info Data..." );
sObjectMgr.LoadCreatureModelInfo();