Added #reloadmerchants for zone-based merchant refreshing.

This commit is contained in:
Kinglykrab
2018-01-27 18:19:48 -05:00
parent 6ed3301110
commit 8e9fa38197
4 changed files with 20 additions and 0 deletions
+6
View File
@@ -317,6 +317,7 @@ int command_init(void)
command_add("reloadallrules", "Executes a reload of all rules.", 80, command_reloadallrules) ||
command_add("reloademote", "Reloads NPC Emotes", 80, command_reloademote) ||
command_add("reloadlevelmods", nullptr, 255, command_reloadlevelmods) ||
command_add("reloadmerchants", nullptr, 255, command_reloadmerchants) ||
command_add("reloadperlexportsettings", nullptr, 255, command_reloadperlexportsettings) ||
command_add("reloadqst", " - Clear quest cache (any argument causes it to also stop all timers)", 150, command_reloadqst) ||
command_add("reloadrulesworld", "Executes a reload of all rules in world specifically.", 80, command_reloadworldrules) ||
@@ -2996,6 +2997,11 @@ void command_reloadworld(Client *c, const Seperator *sep)
safe_delete(pack);
}
void command_reloadmerchants(Client *c, const Seperator *sep) {
zone->ReloadMerchants();
c->Message(15, "Reloading merchants.");
}
void command_reloadlevelmods(Client *c, const Seperator *sep)
{
if (sep->arg[1][0] == 0)