From 965416bb764864ca6730b82a0aea6e9fb1f66e9a Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Tue, 10 Feb 2015 14:18:45 +0100 Subject: [PATCH] Small fixes to @lighta's convert SQL script --- sql-files/item_db.sql | 2 +- tools/convert_sql.pl | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/sql-files/item_db.sql b/sql-files/item_db.sql index 482c17767a..815ddbd0ef 100644 --- a/sql-files/item_db.sql +++ b/sql-files/item_db.sql @@ -32,7 +32,7 @@ CREATE TABLE `item_db` ( # Items Database # # Structure of Database: -#REPLACE INTO `item_db` VALUES ( ID,'AegisName','Name',Type,Buy,Sell,Weight,ATK,DEF,Range,Slots,Job,Class,Gender,Loc,wLV,eLV,Refineable,View,'Script','OnEquip_Script','OnUnequip_Script'); +#REPLACE INTO `item_db` VALUES ( ID,'AegisName','Name',Type,Buy,Sell,Weight,ATK,DEF,Range,Slots,Job,Class,Gender,Loc,wLV,eLV[:maxLevel],Refineable,View,'Script','OnEquip_Script','OnUnequip_Script'); # # Healing Items #============================================================= diff --git a/tools/convert_sql.pl b/tools/convert_sql.pl index ec2e9c1c11..a0198cc535 100755 --- a/tools/convert_sql.pl +++ b/tools/convert_sql.pl @@ -269,7 +269,11 @@ CREATE TABLE `$db` ( } elsif($sType =~ /mob_skill/i) { #Same format for Pre-Renewal and Renewal. $db = $sTable; - $db = "mob_skill_db" unless($db); + if($sTarget =~ /Pre/i){ + $db = "mob_skill_db" unless($db); + }else{ + $db = "mob_skill_db_re" unless($db); + } $nb_columns = 19; @str_col = (1,2,8,9,10,11,17,18); $line_format = "([^\,]*),"x($nb_columns-1)."([^\,]*)"; @@ -304,7 +308,11 @@ CREATE TABLE IF NOT EXISTS `$db` ( } elsif($sType =~ /mob/i) { #Same format for Pre-Renewal and Renewal. $db = $sTable; - $db = "mob_db" unless($db); + if($sTarget =~ /Pre/i){ + $db = "mob_db" unless($db); + }else{ + $db = "mob_db_re" unless($db); + } $nb_columns = 57; @str_col = (1,2,3); $line_format = "([^\,]*),"x($nb_columns-1);