Small fixes to @lighta's convert SQL script

This commit is contained in:
Lemongrass3110 2015-02-10 14:18:45 +01:00
parent 35f8971cee
commit 965416bb76
2 changed files with 11 additions and 3 deletions

View File

@ -32,7 +32,7 @@ CREATE TABLE `item_db` (
# Items Database # Items Database
# #
# Structure of 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 # Healing Items
#============================================================= #=============================================================

View File

@ -269,7 +269,11 @@ CREATE TABLE `$db` (
} }
elsif($sType =~ /mob_skill/i) { #Same format for Pre-Renewal and Renewal. elsif($sType =~ /mob_skill/i) { #Same format for Pre-Renewal and Renewal.
$db = $sTable; $db = $sTable;
if($sTarget =~ /Pre/i){
$db = "mob_skill_db" unless($db); $db = "mob_skill_db" unless($db);
}else{
$db = "mob_skill_db_re" unless($db);
}
$nb_columns = 19; $nb_columns = 19;
@str_col = (1,2,8,9,10,11,17,18); @str_col = (1,2,8,9,10,11,17,18);
$line_format = "([^\,]*),"x($nb_columns-1)."([^\,]*)"; $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. elsif($sType =~ /mob/i) { #Same format for Pre-Renewal and Renewal.
$db = $sTable; $db = $sTable;
if($sTarget =~ /Pre/i){
$db = "mob_db" unless($db); $db = "mob_db" unless($db);
}else{
$db = "mob_db_re" unless($db);
}
$nb_columns = 57; $nb_columns = 57;
@str_col = (1,2,3); @str_col = (1,2,3);
$line_format = "([^\,]*),"x($nb_columns-1); $line_format = "([^\,]*),"x($nb_columns-1);