summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authormc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-13 10:51:29 +0000
committermc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-13 10:51:29 +0000
commit61ec51abb422c4813347d5f2297e877f3a5ac22b (patch)
tree86df815d650218c554c9c22651af6948312b1f0d /src/map/itemdb.c
parent7cb9aaf42599afc257f9370ae9aefc3b4aba81c3 (diff)
downloadhercules-61ec51abb422c4813347d5f2297e877f3a5ac22b.tar.gz
hercules-61ec51abb422c4813347d5f2297e877f3a5ac22b.tar.bz2
hercules-61ec51abb422c4813347d5f2297e877f3a5ac22b.tar.xz
hercules-61ec51abb422c4813347d5f2297e877f3a5ac22b.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@552 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index a225cff83..cd915b92e 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -12,6 +12,7 @@
#include "itemdb.h"
#include "script.h"
#include "pc.h"
+#include "showmsg.h"
#ifdef MEMWATCH
#include "memwatch.h"
@@ -383,7 +384,8 @@ static int itemdb_readdb(void)
id->equip_script = parse_script(p,lines);
}
fclose(fp);
- printf("read %s done (count=%d)\n",filename[i],ln);
+ sprintf(tmp_output,"Done reading '\033[1;29m%d\033[0;0m' entries in '\033[1;29m%s\033[0;0m'.\n",ln,filename[i]);
+ ShowStatus(tmp_output);
}
return 0;
}
@@ -458,7 +460,8 @@ static int itemdb_read_randomitem()
ln++;
}
fclose(fp);
- printf("read %s done (count=%d)\n",fn,*pc);
+ sprintf(tmp_output,"Done reading '\033[1;29m%d\033[0;0m' entries in '\033[1;29m%s\033[0;0m'.\n",*pc,fn);
+ ShowStatus(tmp_output);
}
return 0;
@@ -507,7 +510,8 @@ static int itemdb_read_itemavail(void)
ln++;
}
fclose(fp);
- printf("read db/item_avail.txt done (count=%d)\n",ln);
+ sprintf(tmp_output,"Done reading '\033[1;29m%d\033[0;0m' entries in '\033[1;29m%s\033[0;0m'.\n",ln,"db/item_avail.txt");
+ ShowStatus(tmp_output);
return 0;
}
@@ -774,8 +778,8 @@ static int itemdb_read_sqldb(void)
{
printf("Database server error (retrieving rows from %s): %s\n", item_db_db, mysql_error(&mmysql_handle));
}
-
- printf("read %s done (count = %lu)\n", item_db_db, (unsigned long) mysql_num_rows(sql_res));
+ sprintf(tmp_output,"Done reading '\033[1;29m%lu\033[0;0m' entries in '\033[1;29m%s\033[0;0m'.\n",(unsigned long) mysql_num_rows(sql_res),item_db_db);
+ ShowStatus(tmp_output);
}
else
{