diff options
author | shennetsind <ind@henn.et> | 2013-11-11 17:56:48 -0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-11-14 20:15:28 +0100 |
commit | 091e235b78f83bd8c86c84e8b2db5ac9d5da98cd (patch) | |
tree | 79979f1f69e971be3c857b2a198977dc62f33348 /src/map/map.c | |
parent | 59b9acb3d50fe7bbcce0f141d450cf328c0b24b7 (diff) | |
download | hercules-091e235b78f83bd8c86c84e8b2db5ac9d5da98cd.tar.gz hercules-091e235b78f83bd8c86c84e8b2db5ac9d5da98cd.tar.bz2 hercules-091e235b78f83bd8c86c84e8b2db5ac9d5da98cd.tar.xz hercules-091e235b78f83bd8c86c84e8b2db5ac9d5da98cd.zip |
Updated db2sql plugin for the needs of the new itemdb
May be used as ./map-server --db2sql or by typing "server tools db2sql" within map-server console parse.
Special Thanks to Haruna.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c index b846d6125..b0ae2f340 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -5438,6 +5438,7 @@ int do_init(int argc, char *argv[]) HPM->event(HPET_PRE_INIT); + minimal = map->minimal;/* temp (perhaps make minimal a mask with options of what to load? e.g. plugin 1 does minimal |= mob_db; */ for( i = 1; i < argc ; i++ ) { const char* arg = argv[i]; @@ -5619,12 +5620,17 @@ int do_init(int argc, char *argv[]) duel->init(minimal); vending->init(minimal); - if (minimal) { + if (scriptcheck) { if (npc->parsesrcfile(scriptcheck, false) == 0) exit(EXIT_SUCCESS); exit(EXIT_FAILURE); } + if( minimal ) { + HPM->event(HPET_READY); + exit(EXIT_SUCCESS); + } + npc->event_do_oninit(); // Init npcs (OnInit) if (battle_config.pk_mode) @@ -5659,6 +5665,7 @@ void map_defaults(void) { map = &map_s; /* */ + map->minimal = false; map->count = 0; sprintf(map->db_path ,"db"); |