This is awesome, I love the idea; however, I’m getting errors and I’m not 100% sure what to add. I did git apply --reject DressNPCs.diff.
After I type the command:
[SPOILER]
Checking patch src/server/game/Globals/ObjectMgr.cpp…
Hunk #1 succeeded at 7785 (offset 76 lines).
Checking patch src/server/game/Globals/ObjectMgr.h…
Hunk #3 succeeded at 1182 (offset 6 lines).
Hunk #4 succeeded at 1328 (offset 6 lines).
Checking patch src/server/game/Handlers/SpellHandler.cpp…
Hunk #1 succeeded at 567 (offset -2 lines).
Checking patch src/server/game/World/World.cpp…
error: while searching for:
TC_LOG_INFO(LOG_FILTER_SERVER_LOADING, “Loading Creature templates…”);
sObjectMgr->LoadCreatureTemplates();
TC_LOG_INFO(LOG_FILTER_SERVER_LOADING, “Loading Equipment templates…”);
// must be after LoadCreatureTemplates
sObjectMgr->LoadEquipmentTemplates();
error: patch failed: src/server/game/World/World.cpp:1414
Checking patch src/server/scripts/Commands/cs_reload.cpp…
error: while searching for:
{ “creature_queststarter”, SEC_ADMINISTRATOR, true, &HandleR
eloadCreatureQuestStarterCommand, “”, NULL },
{ “creature_summon_groups”, SEC_ADMINISTRATOR, true, &HandleR
eloadCreatureSummonGroupsCommand, “”, NULL },
{ “creature_template”, SEC_ADMINISTRATOR, true, &HandleR
eloadCreatureTemplateCommand, “”, NULL },
//{ “db_script_string”, SEC_ADMINISTRATOR, true, &Handl
eReloadDbScriptStringCommand, “”, NULL },
{ “disables”, SEC_ADMINISTRATOR, true, &HandleR
eloadDisablesCommand, “”, NULL },
{ “disenchant_loot_template”, SEC_ADMINISTRATOR, true, &HandleR
eloadLootTemplatesDisenchantCommand, “”, NULL },
error: patch failed: src/server/scripts/Commands/cs_reload.cpp:90
Hunk #2 succeeded at 194 (offset -8 lines).
error: while searching for:
return true;
}
static bool HandleReloadCreatureQuestStarterCommand(ChatHandler* handler, co
nst char* /args/)
{
TC_LOG_INFO(LOG_FILTER_GENERAL, “Loading Quests Relations… (creature_ queststarter
)”);
error: patch failed: src/server/scripts/Commands/cs_reload.cpp:534
Applied patch src/server/game/Globals/ObjectMgr.cpp cleanly.
Applied patch src/server/game/Globals/ObjectMgr.h cleanly.
Applied patch src/server/game/Handlers/SpellHandler.cpp cleanly.
Applying patch src/server/game/World/World.cpp with 1 reject…
Rejected hunk #1.
Applying patch src/server/scripts/Commands/cs_reload.cpp with 2 rejects…
Rejected hunk #1.
Hunk #2 applied cleanly.
Rejected hunk #3.[/SPOILER]
World.cpp.rej file:
[SPOILER]
diff a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp (rejected hunks)
@@ -1414,6 +1414,9 @@ void World::SetInitialWorldSettings()
TC_LOG_INFO(LOG_FILTER_SERVER_LOADING, “Loading Creature templates…”);
sObjectMgr->LoadCreatureTemplates();
- TC_LOG_INFO(LOG_FILTER_SERVER_LOADING, “Loading Creature template outfits…”); // must be after LoadCreatureTemplates
- sObjectMgr->LoadCreatureOutfits();
-
TC_LOG_INFO(LOG_FILTER_SERVER_LOADING, “Loading Equipment templates…”); // must be after LoadCreatureTemplates
sObjectMgr->LoadEquipmentTemplates();[/SPOILER]
cs_reload.cpp.rej file:
diff a/src/server/scripts/Commands/cs_reload.cpp b/src/server/scripts/Commands/cs_reload.cpp (rejected hunks)
@@ -90,6 +90,7 @@ public:
{ “creature_queststarter”, SEC_ADMINISTRATOR, true, &HandleReloadCreatureQuestStarterCommand, “”, NULL },
{ “creature_summon_groups”, SEC_ADMINISTRATOR, true, &HandleReloadCreatureSummonGroupsCommand, “”, NULL },
{ “creature_template”, SEC_ADMINISTRATOR, true, &HandleReloadCreatureTemplateCommand, “”, NULL },
-
{ “creature_template_outfits”, SEC_ADMINISTRATOR, true, &HandleReloadCreatureTemplateOutfitsCommand, “”, NULL },
//{ “db_script_string”, SEC_ADMINISTRATOR, true, &HandleReloadDbScriptStringCommand, “”, NULL },
{ “disables”, SEC_ADMINISTRATOR, true, &HandleReloadDisablesCommand, “”, NULL },
{ “disenchant_loot_template”, SEC_ADMINISTRATOR, true, &HandleReloadLootTemplatesDisenchantCommand, “”, NULL },
@@ -534,6 +536,14 @@ public:
return true;
}
-
static bool HandleReloadCreatureTemplateOutfitsCommand(ChatHandler* handler, const char* /args/)
-
{
-
TC_LOG_INFO(LOG_FILTER_GENERAL, “Loading Creature Outfits… (creature_template_outfits
)”);
-
sObjectMgr->LoadCreatureOutfits();
-
handler->SendGlobalGMSysMessage(“DB table creature_template_outfits
reloaded.”);
-
return true;
-
}
-
static bool HandleReloadCreatureQuestStarterCommand(ChatHandler* handler, const char* /args/)
{
TC_LOG_INFO(LOG_FILTER_GENERAL, “Loading Quests Relations… (creature_queststarter
)”);
Any help would be great, thank you. /emoticons/default_smile.png