Added a command to reload cash shop db (#3257)
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
This commit is contained in:
parent
8546f9f089
commit
fd9b475446
@ -918,6 +918,11 @@ Body:
|
|||||||
- Command: reloadbattleconf
|
- Command: reloadbattleconf
|
||||||
Help: |
|
Help: |
|
||||||
Reload battle settings.
|
Reload battle settings.
|
||||||
|
- Command: reloadcashdb
|
||||||
|
Aliases:
|
||||||
|
- reloadcashshop
|
||||||
|
Help: |
|
||||||
|
Reload cash shop database.
|
||||||
- Command: reloadinstancedb
|
- Command: reloadinstancedb
|
||||||
Help: |
|
Help: |
|
||||||
Reload instance database.
|
Reload instance database.
|
||||||
@ -956,6 +961,7 @@ Body:
|
|||||||
atcommand battleconf statusdb
|
atcommand battleconf statusdb
|
||||||
pcdb motd script
|
pcdb motd script
|
||||||
questdb msgconf packetdb
|
questdb msgconf packetdb
|
||||||
|
cashdb
|
||||||
- Command: langtype
|
- Command: langtype
|
||||||
Help: |
|
Help: |
|
||||||
Params: <language>
|
Params: <language>
|
||||||
|
@ -933,7 +933,10 @@
|
|||||||
// NoBank Mapflag
|
// NoBank Mapflag
|
||||||
831: You cannot use the Bank on this map.
|
831: You cannot use the Bank on this map.
|
||||||
|
|
||||||
//832-899 free
|
// @reloadcashdb
|
||||||
|
832: Cash shop database has been reloaded.
|
||||||
|
|
||||||
|
//833-899 free
|
||||||
|
|
||||||
//------------------------------------
|
//------------------------------------
|
||||||
// More atcommands message
|
// More atcommands message
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
#include "instance.hpp"
|
#include "instance.hpp"
|
||||||
#include "intif.hpp"
|
#include "intif.hpp"
|
||||||
#include "itemdb.hpp" // MAX_ITEMGROUP
|
#include "itemdb.hpp" // MAX_ITEMGROUP
|
||||||
|
#include "cashshop.hpp"
|
||||||
#include "log.hpp"
|
#include "log.hpp"
|
||||||
#include "mail.hpp"
|
#include "mail.hpp"
|
||||||
#include "map.hpp"
|
#include "map.hpp"
|
||||||
@ -4212,6 +4213,9 @@ ACMD_FUNC(reload) {
|
|||||||
if (strstr(command, "itemdb") || strncmp(message, "itemdb", 4) == 0) {
|
if (strstr(command, "itemdb") || strncmp(message, "itemdb", 4) == 0) {
|
||||||
itemdb_reload();
|
itemdb_reload();
|
||||||
clif_displaymessage(fd, msg_txt(sd,97)); // Item database has been reloaded.
|
clif_displaymessage(fd, msg_txt(sd,97)); // Item database has been reloaded.
|
||||||
|
} else if (strstr(command, "cashdb") || strncmp(message, "cashdb", 4) == 0) {
|
||||||
|
cashshop_reloaddb();
|
||||||
|
clif_displaymessage( fd, msg_txt( sd, 832 ) ); // Cash shop database has been reloaded.
|
||||||
} else if (strstr(command, "mobdb") || strncmp(message, "mobdb", 3) == 0) {
|
} else if (strstr(command, "mobdb") || strncmp(message, "mobdb", 3) == 0) {
|
||||||
mob_reload();
|
mob_reload();
|
||||||
pet_db.reload();
|
pet_db.reload();
|
||||||
@ -11076,6 +11080,7 @@ void atcommand_basecommands(void) {
|
|||||||
ACMD_DEF(recallall),
|
ACMD_DEF(recallall),
|
||||||
ACMD_DEFR(reload,ATCMD_NOSCRIPT),
|
ACMD_DEFR(reload,ATCMD_NOSCRIPT),
|
||||||
ACMD_DEF2("reloaditemdb", reload),
|
ACMD_DEF2("reloaditemdb", reload),
|
||||||
|
ACMD_DEF2("reloadcashdb", reload),
|
||||||
ACMD_DEF2("reloadmobdb", reload),
|
ACMD_DEF2("reloadmobdb", reload),
|
||||||
ACMD_DEF2("reloadskilldb", reload),
|
ACMD_DEF2("reloadskilldb", reload),
|
||||||
ACMD_DEF2R("reloadscript", reload, ATCMD_NOSCRIPT),
|
ACMD_DEF2R("reloadscript", reload, ATCMD_NOSCRIPT),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user