Bläddra i källkod

Small fixes to @lighta's convert SQL script

Lemongrass3110 10 år sedan
förälder
incheckning
965416bb76
2 ändrade filer med 11 tillägg och 3 borttagningar
  1. 1 1
      sql-files/item_db.sql
  2. 10 2
      tools/convert_sql.pl

+ 1 - 1
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
 #=============================================================

+ 10 - 2
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);