diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-22 14:19:39 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-22 14:19:39 +0000 |
commit | a65e4681cd29db1d0936523cc8ff5646dc7dca5b (patch) | |
tree | 11f6e3b19a7a829252caa983e62a2ad4c19baf02 /src/map/itemdb.c | |
parent | 34f200c644ba8598448e20f4aa69a504e55d3c8f (diff) | |
download | hercules-a65e4681cd29db1d0936523cc8ff5646dc7dca5b.tar.gz hercules-a65e4681cd29db1d0936523cc8ff5646dc7dca5b.tar.bz2 hercules-a65e4681cd29db1d0936523cc8ff5646dc7dca5b.tar.xz hercules-a65e4681cd29db1d0936523cc8ff5646dc7dca5b.zip |
- Added support for the new "make new char" packet that has the rename button data. Thanks to Sara-chan for the format change update.
- Fixed itemdb.c sql compilation
- Now when you specify a max level beyond what the exp table has, the last entry of the exp table will be duplicated to fill in the remaining levels.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9558 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 68a61724f..63aaa0bcf 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -954,10 +954,10 @@ static int itemdb_read_sqldb(void) script_free_code(id->script); if (sql_row[19] != NULL) { if (sql_row[19][0] == '{') - id->script = parse_script((unsigned char *) sql_row[19],item_db_name[i], 0); + id->script = parse_script((unsigned char *) sql_row[19],item_db_name[i], ln, 0); else { sprintf(script, "{%s}", sql_row[19]); - id->script = parse_script((unsigned char *) script, item_db_name[i], 0); + id->script = parse_script((unsigned char *) script, item_db_name[i], ln, 0); } } else id->script = NULL; @@ -965,10 +965,10 @@ static int itemdb_read_sqldb(void) script_free_code(id->equip_script); if (sql_row[20] != NULL) { if (sql_row[20][0] == '{') - id->equip_script = parse_script((unsigned char *) sql_row[20], item_db_name[i], 0); + id->equip_script = parse_script((unsigned char *) sql_row[20], item_db_name[i], ln, 0); else { sprintf(script, "{%s}", sql_row[20]); - id->equip_script = parse_script((unsigned char *) script, item_db_name[i], 0); + id->equip_script = parse_script((unsigned char *) script, item_db_name[i], ln, 0); } } else id->equip_script = NULL; @@ -976,10 +976,10 @@ static int itemdb_read_sqldb(void) script_free_code(id->unequip_script); if (sql_row[21] != NULL) { if (sql_row[21][0] == '{') - id->unequip_script = parse_script((unsigned char *) sql_row[21],item_db_name[i], 0); + id->unequip_script = parse_script((unsigned char *) sql_row[21],item_db_name[i], ln, 0); else { sprintf(script, "{%s}", sql_row[21]); - id->unequip_script = parse_script((unsigned char *) script, item_db_name[i], 0); + id->unequip_script = parse_script((unsigned char *) script, item_db_name[i], ln, 0); } } else id->unequip_script = NULL; |