summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-27 09:15:05 +0000
committerKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-27 09:15:05 +0000
commit55434bd1ddfeb0b66247dbe4c420048863d44446 (patch)
treefb053a26628370a14b6f596265fcb89c0475541e /src/map/atcommand.c
parent677598256feaad3bcef53805ad8c70e744a9b7d3 (diff)
downloadhercules-55434bd1ddfeb0b66247dbe4c420048863d44446.tar.gz
hercules-55434bd1ddfeb0b66247dbe4c420048863d44446.tar.bz2
hercules-55434bd1ddfeb0b66247dbe4c420048863d44446.tar.xz
hercules-55434bd1ddfeb0b66247dbe4c420048863d44446.zip
Changed the last commit so it must be called with @reloaditemdb2. @reloaditemdb only removes the item_data from the itemdb subsystem. If you don't like my code you can uncomment the macro I_HATE_KEVIN in item_db.c so it isn't even compiled.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12662 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 691035c61..628666df3 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -4049,7 +4049,7 @@ int atcommand_partyrecall(const int fd, struct map_session_data* sd, const char*
int atcommand_reloaditemdb(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
nullpo_retr(-1, sd);
- itemdb_reload();
+ itemdb_reload(0);
clif_displaymessage(fd, msg_txt(97)); // Item database reloaded.
return 0;
@@ -4058,6 +4058,19 @@ int atcommand_reloaditemdb(const int fd, struct map_session_data* sd, const char
/*==========================================
*
*------------------------------------------*/
+int atcommand_reloaditemdb2(const int fd, struct map_session_data* sd, const char* command, const char* message)
+{
+ nullpo_retr(-1, sd);
+ itemdb_reload(1);
+ clif_displaymessage(fd, msg_txt(97)); // Item database reloaded.
+
+ return 0;
+}
+
+
+/*==========================================
+ *
+ *------------------------------------------*/
int atcommand_reloadmobdb(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
nullpo_retr(-1, sd);
@@ -8373,6 +8386,7 @@ AtCommandInfo atcommand_info[] = {
{ "localbroadcast", 40, atcommand_localbroadcast }, // + /lb and /nlb
{ "recallall", 80, atcommand_recallall },
{ "reloaditemdb", 99, atcommand_reloaditemdb },
+ { "reloaditemdb2", 99, atcommand_reloaditemdb2 },
{ "reloadmobdb", 99, atcommand_reloadmobdb },
{ "reloadskilldb", 99, atcommand_reloadskilldb },
{ "reloadscript", 99, atcommand_reloadscript },