diff --git a/static/data/data.xml b/static/data/data.xml new file mode 100644 index 0000000..4ccf688 --- /dev/null +++ b/static/data/data.xml @@ -0,0 +1,9230 @@ + + + + + + + + + + Oasis Key World + Near Door Shrine + + + + CallHelp + LushLicks + Imitate + + + + + + + Sky Key World + Heaven Helm Cave Floor 1 + + + + Blaze + Upper + Ramming + + + + + + Bolt + Ironize + Hellblast + + + + + + Lightning + RainSlash + BladeD + + + + + + MPass + SleepAir + LushLicks + + + + + + Sacrifice + Ironize + Chance + + + + + + + Ice Key World + Outside Weston Town + + + + Heal + Upper + BeastCut + + + + + + + Ice Key World + Near Door Shrine + + + + WindBeast + SquallHit + TailWind + + + + + + + Pirate Key World + Hoodsquid Cave + + + + Upper + ChargeUp + Radiant + + + + + + + Elf Key World + Outside Door Shrine + + + + SideStep + LegSweep + Whistle + + + + + + + Sky Key World + Overworld (Tara Version) + + + + PanicAll + Ahhh + LoveRain + + + + + + + Lonely Key World + Overworld (Tara Version) + + + + Sap + Paralyze + SleepAir + + + + + + + Pirate Key World + Area Outside Door Shrine + + + + Firebal + MegaMagic + Radiant + + + + + + + Sky Key World + 1 Screen Left Of Pei Village + + + + Blaze + IceBolt + Beat + + + + + + + Sky Key World + Overworld (Tara Version) + + + + MPass + Barrier + Vivify + + + + + + Sleep + SealPray + LifeSong + + + + + + + Pirate Key World + Moonrock Tower Floor 1 + + + + IceBolt + NumbOff + CallHelp + + + + + + + Sky Key World + Outside Fhunt Village + + + + CallHelp + ChargeUp + WarCry + + + + + + + Pirate Key World + Area Outside Hoodsquid Cave (Cobi Version) + + + + Heal + HealUs + Upper + + + + + + + Sky Key World + Down 1 And Left 4 Screens From Monster King's Castle (Tara Version) + + + + Firebal + Bang + Sacrifice + + + + + + Chance + BigBang + Surge + + + + + + + Sky Key World + Overworld (Tara Version) + + + + BeDragon + FireAir + SuckAir + + + + + + + Sky Key World + Heaven Sword Castle Floor 1 + + + + Surround + PoisonHit + EerieLite + + + + + + + Sky Key World + Outside Hitano Castle (Cobi Version) + + + + HighJump + Ramming + StrongD + + + + + + CleanCut + NapAttack + MouthShut + + + + + + Farewell + Focus + Informer + + + + + + + + + + Bang + BoltSlash + EvilSlash + + + + + + + Sky Key World + Heaven Helm Cave Floor 1 + + + + PanicAll + Paralyze + PalsyAir + + + + + + TwinHits + Berserker + StrongD + + + + + + + Traveler Key World + Outside Merchants' Tower + + + + RockThrow + Berserker + Kamikaze + + + + + + + Pirate Key World + Basement Floor 3 + + + + FireAir + SleepAir + Dodge + + + + + + FireAir + MetalCut + EvilSlash + + + + + + + Pirate Key World + 1 Screen Up From The Port Ritz Town (Cobi Version) + + + + PoisonHit + PoisonGas + LushLicks + + + + + + + Pirate Key World + Land Area 1 Screen Right Of Door Shrine + + + + Firebal + WindBeast + TailWind + + + + + + VacuSlash + DevilCut + PoisonHit + + + + + + + Ice Key World + Outside Castle Of Estria + + + + Sap + Ramming + WarCry + + + + + + Firebal + Sap + FireAir + + + + + + + Limbo Key World + Outside Door Shrine (Cobi Version) + + + + FrigidAir + IceSlash + SuckAll + + + + + + + Sky Key World + Inside Heaven Armor Tower Floor 3 (Cobi Version) + + + + FireAir + MultiCut + SuckAir + + + + + + Sacrifice + Farewell + Berserker + + + + + + + Sky Key World + Outside Heaven Helm Cave + + + + FireAir + FireSlash + SuckAll + + + + + + + Sky Key World + Outside Hitano Castle (Not Village) + + + + Infernos + Surround + PoisonGas + + + + + + + Oasis Key World + 2 Screens Right Of Asiya Town + + + + StopSpell + BeDragon + PoisonHit + + + + + + SlimeBlow + DevilCut + RainSlash + + + + + + Surround + SleepAir + LushLicks + + + + + + + Pirate Key World + Area Outside Port Ritz Town (Cobi Version) + + + + CallHelp + Ramming + SandStorm + + + + + + + Oasis Key World + 1 Screen Right Of Mirage Lake + + + + PoisonHit + Curse + K.O.Dance + + + + + + + Elf Key World + Overworld (Tara Version) + + + + SquallHit + HighJump + PoisonGas + + + + + + + Sky Key World + Overworld (Tara Version) + + + + RockThrow + LushLicks + Errand + + + + + + BigBang + FrigidAir + Meditate + + + + + + FireAir + FireSlash + BiAttack + + + + + + + Ice Key World + Outside Castle Of Estria (Cobi Version) + + + + AquaCut + GigaSlash + EvilSlash + + + + + + FireAir + RockThrow + Massacre + + + + + + + Sky Key World + Outside Heaven Armor Tower (Cobi Version) + + + + EvilSlash + Massacre + LureDance + + + + + + + Pirate Key World + Harmirror Cave Basement Floor 2 + + + + Ironize + MagicBack + Lightning + + + + + + + Sky Key World + Outside Heaven Armor Tower (Cobi Version) + + + + Infernos + CallHelp + BiAttack + + + + + + + Sky Key World + Outside Heaven Helm Cave (Cobi Version) + + + + CleanCut + RainSlash + BladeD + + + + + + + + + + Massacre + Ramming + WarCry + + + + + + + Sky Key World + Inside Fhunt Tower Floor 1 + + + + MagicWall + StrongD + Cover + + + + + + + Sky Key World + Inside Heaven Armor Tower (Tara Version) + + + + Surround + SleepAir + ThickFog + + + + + + + Sky Key World + Overworld (Cobi Version) + + + + TwinSlash + SideStep + Errand + + + + + + + Ice Key World + Overworld (Tara Version) + + + + NapAttack + SleepAir + LushLicks + + + + + + + Sky Key World + Overworld (Tara Version) + + + + ChargeUp + PaniDance + EagleEye + + + + + + + Sky Key World + Outside Pei Village (Cobi Version) + + + + MetalCut + RainSlash + TwinSlash + + + + + + + Sky Key World + Outside Madcondor's Nest + + + + LureDance + MouthShut + EagleEye + + + + + + + Pirate Key World + Land Area 1 Screen Right Of Door Shrine (Cobi Version) + + + + Slow + StopSpell + OddDance + + + + + + + Ice Key World + Near Door Shrine (Cobi Version) + + + + Sleep + RainSlash + GigaSlash + + + + + + IceBolt + ChargeUp + Geyser + + + + + + Berserker + SandStorm + WarCry + + + + + + + Ice Key World + Outside Weston Town + + + + SquallHit + BiAttack + LegSweep + + + + + + + Traveler Key World + Outside Door Shrine + + + + Blaze + Surround + Transform + + + + + + + Sky Key World + Outside Pei Village + + + + Slow + Surround + SlimeBlow + + + + + + + Ice Key World + Outside The Spirit Lake + + + + Sleep + ChargeUp + Berserker + + + + + + Sleep + StopSpell + PsycheUp + + + + + + Infernos + IceBolt + VacuSlash + + + + + + Slow + Ramming + SideStep + + + + + + + Ice Key World + Outside Nofor + + + + ChargeUp + EvilSlash + Kamikaze + + + + + + + Pirate Key World + Area Outside Door Shrine + + + + MetalCut + SquallHit + LushLicks + + + + + + + Pirate Key World + Area Outside Port Of Polona Town + + + + BirdBlow + ZombieCut + Informer + + + + + + + Ice Key World + Outside The Spirit Lake + + + + IceBolt + IceSlash + WarCry + + + + + + Firebal + FrigidAir + BiAttack + + + + + + + Ice Key World + Inside Spooky Forest (Tara Version) + + + + Heal + Vivify + Errand + + + + + + Bang + Massacre + EerieLite + + + + + + VacuSlash + SquallHit + LegSweep + + + + + + + Ice Key World + Outside The Spirit Lake + + + + Upper + PsycheUp + PalsyAir + + + + + + K.O.Dance + Hustle + Imitate + + + + + + + Pirate Key World + 1 Screen Up From The Port Ritz Town + + + + Blaze + CallHelp + MouthShut + + + + + + + Ice Key World + 1 Screen Down From Sleepherb Mountain + + + + Firebal + Slow + SleepAir + + + + + + IceBolt + FrigidAir + LoveRain + + + + + + + + + + Hellblast + Meditate + LifeSong + + + + + + + Ice Key World + 1 Screen Down From Sleepherb Mountain + + + + Shears + ChargeUp + Ramming + + + + + + + Pirate Key World + Moonrock Tower Floor 3 + + + + Heal + Sleep + FrigidAir + + + + + + + Pirate Key World + Harmirror Cave Basement Floor 1 + + + + CurseOff + SquallHit + AquaWall + + + + + + + Sky Key World + Outside Heaven Helm Cave + + + + Heal + WindBeast + LureDance + + + + + + Infernos + WindBeast + AquaCut + + + + + + + Ice Key World + Outside Weston Town + + + + Infernos + PanicAll + EagleEye + + + + + + + Sky Key World + Outside Heaven Sword Castle + + + + Speed + BeastCut + LifeSong + + + + + + + Pirate Key World + Area Outside Yold Village + + + + Antidote + Sleep + RobMagic + + + + + + Firebal + HealUs + MultiCut + + + + + + Ironize + ThickFog + TatsuCall + + + + + + Sleep + PanicAll + Curse + + + + + + + Sky Key World + Outside Heaven Sword Castle + + + + MagicWall + Curse + TailWind + + + + + + + Sky Key World + Outside Fhunt Village + + + + WindBeast + Hustle + Errand + + + + + + PaniDance + LifeDance + Hustle + + + + + + Infernos + Sap + VacuSlash + + + + + + + Sky Key World + Outside Heaven Armor Tower (Tara Version) + + + + VacuSlash + SandStorm + Dodge + + + + + + Beat + FrigidAir + IceSlash + + + + + + MegaMagic + Surge + StrongD + + + + + + + Limbo Key World + Outside Door Shrine + + + + Barrier + EerieLite + Informer + + + + + + + Pirate Key World + Overworld (Tara Version) + + + + Sap + Surround + BugBlow + + + + + + + Ice Key World + Outside Castle Of Estria (Cobi Version) + + + + Infernos + BoltSlash + SideStep + + + + + + + Sky Key World + Outside Pei Village + + + + HighJump + TailWind + EagleEye + + + + + + Hellblast + Lightning + BoltSlash + + + + + + + Ice Key World + Inside Sleepherb Mountain + + + + TwinHits + BugBlow + RainSlash + + + + + + HealUs + FireAir + SuckAll + + + + + + + Sky Key World + Outside Heaven Helm Cave + + + + FireAir + SquallHit + TailWind + + + + + + + + + + + Ice Key World + Inside Sleepherb Mountain + + + + Farewell + ZombieCut + StepGuard + + + + + + + Ice Key World + Inside Spooky Forest (Cobi Version) + + + + Sleep + ZombieCut + StepGuard + + + + + + + Ice Key World + Inside Ice Tower (Tara Version) + + + + Curse + Focus + DanceShut + + + + + + BiAttack + UltraDown + BladeD + + + + + + + Pirate Key World + Land Area 1 Screen Down Of Moonrock Tower (Cobi Version) + + + + K.O.Dance + LureDance + SideStep + + + + + + + Oasis Key World + Near Door Shrine + + + + Paralyze + HighJump + OddDance + + + + + + + Sky Key World + Heaven Helm Cave Floor 1 + + + + CleanCut + Paralyze + Radiant + + + + + + RobMagic + ChargeUp + SleepAir + + + + + + MPass + DeMagic + Pheromone + + + + + + TwinHits + RobMagic + MapMagic + + + + + + + Elf Key World + Outside Door Shrine + + + + NumbOff + Sap + Slow + + + + + + Vivify + SleepAir + SuckAll + + + + + + + Pirate Key World + Overworld (Tara Version) + + + + NapAttack + SleepAir + MouthShut + + + + + + + Ice Key World + Near Door Shrine + + + + NapAttack + HighJump + SleepAir + + + + + + + Ice Key World + Goldmine Cave + + + + MPass + CurseOff + Hustle + + + + + + + Ice Key World + Inside Spooky Forest + + + + DrakSlash + PsycheUp + SleepAir + + + + + + + + + + + Sky Key World + Outside Hitano Castle (Not Village) + + + + Blaze + DeChaos + PalsyAir + + + + + + + Ice Key World + Outside Castle Of Estria (Tara Version) + + + + TwinHits + Barrier + MagicWall + + + + + + Beat + SleepAir + PoisonGas + + + + + + + Elf Key World + Inside Agdevils Hideout (Cobi Version) + + + + StopSpell + CallHelp + RainSlash + + + + + + + Pirate Key World + Area Outside The Door Shrine (Cobi Version) + + + + MPass + OddDance + LureDance + + + + + + + Sky Key World + Outside Fhunt Village + + + + Firebal + Antidote + CurseOff + + + + + + + Sky Key World + Outside Pei Village + + + + Sleep + OddDance + LushLicks + + + + + + + Traveler Key World + Outside Door Shrine + + + + StopSpell + Curse + OddDance + + + + + + + Sky Key World + Outside Heaven Sword Castle + + + + RobMagic + LureDance + EerieLite + + + + + + + Sky Key World + Heaven Helm Cave Floor 1 (Cobi Version) + + + + Bolt + Heal + GigaSlash + + + + + + + + + + + Oasis Key World + 2 Screens Right Of Asiya Town (Tara Version) + + + + Upper + PoisonHit + ThickFog + + + + + + + Elf Key World + Inside Agdevils Hideout + + + + Sleep + FireAir + LegSweep + + + + + + + Pirate Key World + Moonrock Tower 1st Floor + + + + Firebal + Heal + MapMagic + + + + + + + Sky Key World + 1 Screen Left Of Pei Village (Cobi Version) + + + + VacuSlash + Shears + GigaSlash + + + + + + + Elf Key World + 4 Screens Down From The Door Shrine (Cobi Version) + + + + Sap + TwinHits + PalsyAir + + + + + + Beat + MagicBack + CallHelp + + + + + + + Pirate Key World + 1 Screen Up From The Port Ritz Town (Cobi Version) + + + + Speed + WindBeast + MouthShut + + + + + + + Ice Key World + Inside Sleepherb Mountain + + + + WindBeast + Paralyze + Radiant + + + + + + RockThrow + BoltSlash + DevilCut + + + + + + + Traveler Key World + Outside Door Shrine + + + + Surround + CallHelp + Curse + + + + + + + Pirate Key World + Area Outside Yold Village + + + + CallHelp + NapAttack + Kamikaze + + + + + + Upper + CallHelp + MetalCut + + + + + + + Ice Key World + Goldmine Cave + + + + Slow + Shears + StepGuard + + + + + + ZombieCut + RainSlash + EvilSlash + + + + + + + Sky Key World + Overworld (Tara Version) + + + + Infernos + DevilCut + SquallHit + + + + + + + Oasis Key World + Underground Tunnel Stairs At Kalka Town + + + + BeastCut + OddDance + StepGuard + + + + + + RobMagic + Barrier + MagicWall + + + + + + + Oasis Key World + 2 Screens Right Of Asiya Town (Cobi Version) + + + + IceSlash + PoisonGas + Radiant + + + + + + + Elf Key World + 3 Screens Right From Elvin Village + + + + RobMagic + CallHelp + ChargeUp + + + + + + + Sky Key World + Inside Heaven Armor Tower Floor 3 + + + + PoisonHit + Paralyze + TailWind + + + + + + Farewell + StrongD + SuckAll + + + + + + LushLicks + Dodge + Whistle + + + + + + + Traveler Key World + Outside Travelers Hut + + + + LushLicks + Ahhh + Pheromone + + + + + + + Sky Key World + Inside Heaven Armor Tower Floor 1 + + + + Upper + TwinHits + TwinSlash + + + + + + + Sky Key World + Inside Fhunt Tower Floor 4 (Cobi Version) + + + + Firebal + Farewell + Ramming + + + + + + Lightning + BiAttack + PoisonGas + + + + + + + + + + + Sky Key World + Inside Fhunt Tower Floor 4 + + + + Firebal + Ironize + FrigidAir + + + + + + + Ice Key World + Inside Spooky Forest (Cobi Version) + + + + Blaze + FireAir + FrigidAir + + + + + + Bang + Infernos + IceBolt + + + + + + + Pirate Key World + 1 Screen Up From The Port Ritz Town (Cobi Version) + + + + Blaze + Firebal + IceBolt + + + + + + + Elf Key World + 3 Screens Right From Elvin Village + + + + FireSlash + DrakSlash + Cover + + + + + + + Traveler Key World + Outside Travelers Hut + + + + MetalCut + PsycheUp + Massacre + + + + + + + Sky Key World + Inside Fhunt Tower Floor 4 + + + + BeastCut + GigaSlash + Massacre + + + + + + WindBeast + DrakSlash + BirdBlow + + + + + + + Pirate Key World + Harmirror Cave Basement Floor 1 + + + + CleanCut + PalsyAir + Radiant + + + + + + + Sky Key World + Heaven Helm Cave Floor 1 (Tara Version) + + + + Firebal + Heal + StopSpell + + + + + + + Sky Key World + Heaven Sword Castle Basement Floor 2 + + + + Blaze + CleanCut + ThickFog + + + + + + Blaze + ChargeUp + WarCry + + + + + + Bang + Berserker + UltraDown + + + + + + + Sky Key World + Heaven Helm Cave Floor 1 + + + + MagicBack + WarCry + Outside + + + + + + Bang + VacuSlash + BoltSlash + + + + + + + Limbo Key World + Outside Door Shrine + + + + TwinHits + VacuSlash + SquallHit + + + + + + + Sky Key World + Outside Madcondor's Nest + + + + SlimeBlow + ChargeUp + EvilSlash + + + + + + Heal + Sleep + TailWind + + + + + + + Pirate Key World + Overworld (Tara Version) + + + + Antidote + TwinHits + SealPray + + + + + + FireSlash + BoltSlash + AquaCut + + + + + + + Lonely Key World + Overworld + + + + FireSlash + RainSlash + LegSweep + + + + + + + Ice Key World + Ice Tower Floor 1 + + + + Firebal + Sacrifice + SleepAir + + + + + + + Sky Key World + Outside Hitano Castle (Cobi Version) + + + + Infernos + HealUs + VacuSlash + + + + + + Watershot + IceSlash + BladeD + + + + + + + Limbo Key World + Outside Door Shrine + + + + Massacre + Ramming + Cover + + + + + + + Ice Key World + Area Outside Spooky Forest + + + + Vivify + Sap + BirdBlow + + + + + + StopSpell + FireSlash + RainSlash + + + + + + Bang + FrigidAir + Focus + + + + + + Sap + Surround + Shears + + + + + + Blaze + BiAttack + TailWind + + + + + + + + + + + Sky Key World + Heaven Sword Castle Basement Floor 2 + + + + Transform + OddDance + Imitate + + + + + + + Oasis Key World + Underground Tunnel Stairs At Kalka Town + + + + Radiant + MouthShut + Outside + + + + + + + Sky Key World + Heaven Sword Castle Floor 1 (Cobi Version) + + + + Heal + DeChaos + CurseOff + + + + + + Infernos + CurseOff + BirdBlow + + + + + + Infernos + Bolt + Chance + + + + + + Beat + ThickFog + LifeDance + + + + + + + Sky Key World + Outside Heaven Sword Castle + + + + SleepAir + Radiant + ThickFog + + + + + + + Sky Key World + Heaven Sword Castle Floor 1 (Tara Version) + + + + Sap + Slow + MagicBack + + + + + + + Traveler Key World + Merchants' Tower Floor 3 + + + + FrigidAir + IceSlash + TwinSlash + + + + + + + Traveler Key World + Merchants' Tower Floor 2 + + + + Beat + PoisonHit + Dodge + + + + + + + Ice Key World + Inside Spooky Forest (Cobi Version) + + + + FrigidAir + K.O.Dance + ThickFog + + + + + + + Pirate Key World + Pirate Ship (Tara Version) + + + + Surround + PoisonGas + SideStep + + + + + + DevilCut + Curse + EerieLite + + + + + + Sap + BirdBlow + BiAttack + + + + + + Bang + BoltSlash + BiAttack + + + + + + Beat + ThickFog + BladeD + + + + + + + Pirate Key World + Harmirror Cave Basement Floor 3 (Cobi Version) + + + + Lightning + BoltSlash + Kamikaze + + + + + + + Pirate Key World + Pirate Ship (Cobi Version) + + + + PoisonGas + EerieLite + LushLicks + + + + + + + Ice Key World + Area Outside Spooky Forest + + + + Blaze + Firebal + Outside + + + + + + Blaze + IceBolt + Focus + + + + + + + Ice Key World + Goldmine Cave (Cobi Version) + + + + CallHelp + Paralyze + EvilSlash + + + + + + + Ice Key World + Inside Spooky Forest (Tara Version) + + + + Beat + MPass + Vivify + + + + + + CallHelp + AquaCut + SquallHit + + + + + + TakeMagic + K.O.Dance + LifeDance + + + + + + Ironize + MagicWall + StepGuard + + + + + + + Ice Key World + Overworld (Tara Version) + + + + WindBeast + Lightning + Informer + + + + + + HealUs + AquaCut + TatsuCall + + + + + + + + + + + Pirate Key World + Land Area 1 Screen Down Of Moonrock Tower + + + + OddDance + SandStorm + LoveRain + + + + + + IceBolt + FrigidAir + StrongD + + + + + + Sacrifice + Farewell + RockThrow + + + + + + + Pirate Key World + Overworld (Tara Version) + + + + Infernos + Sacrifice + LifeSong + + + + + + + Ice Key World + Goldmine Cave (Tara Version) + + + + Sap + Surround + PanicAll + + + + + + + Sky Key World + Overworld (Cobi Version) + + + + SquallHit + BiAttack + RainSlash + + + + + + Beat + Hellblast + EerieLite + + + + + + + Pirate Key World + Harmirror Cave Basement Floor 2 + + + + Blaze + Beat + EagleEye + + + + + + BigBang + Surge + TatsuCall + + + + + + + Pirate Key World + Harmirror Cave Basement Floor 3 + + + + Sacrifice + SlimeBlow + HighJump + + + + + + + Ice Key World + Inside Ice Tower (Cobi Version) + + + + FireAir + Massacre + SandStorm + + + + + + + Sky Key World + Inside Fhunt Tower Floor 1 + + + + RobMagic + DevilCut + Paralyze + + + + + + BoltSlash + MetalCut + GigaSlash + + + + + + + Ice Key World + Outside Weston Town + + + + FireAir + FrigidAir + SuckAir + + + + + + + Sky Key World + Inside Heaven Armor Tower Floor 1 + + + + TakeMagic + WindBeast + PaniDance + + + + + + + Ice Key World + Ice Tower Floor 1 + + + + ChargeUp + PsycheUp + Meditate + + + + + + + Pirate Key World + Pirate Ship + + + + Firebal + StopSpell + PanicAll + + + + + + Infernos + Barrier + Surge + + + + + + + Sky Key World + Inside Fhunt Tower Floor 1 + + + + MagicBack + Transform + Outside + + + + + + + Oasis Key World + Underground Tunnel Stairs At Kalka Town + + + + Blaze + PsycheUp + Whistle + + + + + + Bang + Bolt + MultiCut + + + + + + + Ice Key World + Ice Tower Floor 1 + + + + OddDance + LureDance + Pheromone + + + + + + Beat + Massacre + Outside + + + + + + + Traveler Key World + Merchants' Tower Floor 1 + + + + Upper + Speed + TwinHits + + + + + + OddDance + Hustle + SideStep + + + + + + Blaze + FireAir + Cover + + + + + + + Lonely Key World + Basement + + + + SlimeBlow + ChargeUp + Ramming + + + + + + + Sky Key World + Inside Fhunt Tower Floor 4 (Tara Version) + + + + StrongD + Cover + SuckAll + + + + + + + Pirate Key World + Harmirror Cave Basement Floor 1 (Cobi Version) + + + + DeChaos + FrigidAir + MapMagic + + + + + + + Sky Key World + Outside Heaven Armor Tower (Cobi Version) + + + + DeChaos + NumbOff + SuckAll + + + + + + + Ice Key World + Outside Castle Of Estria + + + + Heal + MetalCut + EvilSlash + + + + + + + Ice Key World + Goldmine Cave + + + + CallHelp + LegSweep + Dodge + + + + + + + + + + TwinHits + HighJump + SandStorm + + + + + + + Pirate Key World + Hoodsquid Cave (Tara Version) + + + + Barrier + SquallHit + Geyser + + + + + + + Pirate Key World + Hoodsquid Cave (Cobi Version) + + + + Sleep + PsycheUp + PoisonGas + + + + + + + Ice Key World + Surf Outside Castle Of Estria (Cobi Version) + + + + BoltSlash + RainSlash + Dodge + + + + + + + Pirate Key World + Surf Water Outside The Door Shrine + + + + Heal + MPass + LureDance + + + + + + + Traveler Key World + Surf Outside Travelers Hut + + + + Upper + MagicWall + Radiant + + + + + + + Pirate Key World + Hoodsquid Cave (Cobi Version) + + + + Firebal + NapAttack + LushLicks + + + + + + + Pirate Key World + 3 Screens North Of The Door Shrine (Static Boss) + + + + Vivify + RainSlash + PsycheUp + + + + + + CallHelp + BiAttack + LureDance + + + + + + Bolt + Focus + Dodge + + + + + + Antidote + Watershot + Geyser + + + + + + + Pirate Key World + Surf Water Outside The Door Shrine + + + + Speed + TwinHits + Ramming + + + + + + + Ice Key World + Outside Ice Tower (Cobi Version) + + + + Upper + PoisonHit + OddDance + + + + + + + Pirate Key World + Surf Water Outside The Door Shrine + + + + Vivify + Sap + SleepAir + + + + + + + Ice Key World + Surf Outside Castle Of Estria (Cobi Version) + + + + BugBlow + EvilSlash + Massacre + + + + + + + Ice Key World + Surf On Overworld (Tara Version) + + + + Upper + Kamikaze + SandStorm + + + + + + + Pirate Key World + Hoodsquid Cave (Cobi Version) + + + + PanicAll + Watershot + Ramming + + + + + + + Ice Key World + Surf Outside Castle Of Estria + + + + FrigidAir + Geyser + BladeD + + + + + + + Traveler Key World + Surf Outside Travelers Hut + + + + DrakSlash + MetalCut + BiAttack + + + + + + FireAir + Ramming + PoisonGas + + + + + + IceBolt + Sleep + WarCry + + + + + + + Ice Key World + Surf Outside Castle Of Estria + + + + CallHelp + SuckAir + Dodge + + + + + + RobMagic + WindBeast + Berserker + + + + + + + Pirate Key World + Moonrock Tower Floor 1 + + + + Firebal + MouthShut + AquaWall + + + + + + + Pirate Key World + Overworld (Tara Version) + + + + OddDance + PaniDance + Geyser + + + + + + BoltSlash + BeastCut + RainSlash + + + + + + Sap + RainSlash + Cover + + + + + + DrakSlash + SquallHit + GigaSlash + + + + + + + Oasis World + Surf In The Underground Tunnel + + + + Firebal + Paralyze + PoisonGas + + + + + + Bolt + Surround + SleepAir + + + + + + + Pirate Key World + Surf Water Outside The Door Shrine + + + + Watershot + PoisonGas + AquaWall + + + + + + MPass + BiAttack + Hustle + + + + + + + + + + Bolt + Hellblast + Focus + + + + + + FireAir + GigaSlash + Focus + + + + + + FireAir + FrigidAir + PoisonGas + + + + + + MegaMagic + DeMagic + LifeSong + + + + + + Firebal + Bang + TatsuCall + + + + + + Hellblast + FireAir + BiAttack + + + + + + BigBang + Hellblast + TatsuCall + + + + + + Firebal + Bang + ChargeUp + + + + + + Hellblast + FireAir + FrigidAir + + + + + + BigBang + FrigidAir + DeMagic + + + + + + FireAir + Ramming + UltraDown + + + + + + Barrier + WindBeast + MultiCut + + + + + + BiAttack + RainSlash + GigaSlash + + + + + + BigBang + DeMagic + Focus + + + + + + Firebal + BeDragon + Meditate + + + + + + Bang + Hellblast + RockThrow + + + + + + Blaze + Bang + Bolt + + + + + + Bolt + FireAir + FrigidAir + + + + + + FireAir + Massacre + Surge + + + + + + BigBang + FrigidAir + DeMagic + + + + + + FireAir + DeMagic + SuckAir + + + + + + Bang + EvilSlash + Focus + + + + + + HealUs + MPass + Vivify + + + + + + MegaMagic + Hellblast + WhiteFire + + + + + + BeDragon + Chance + TatsuCall + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bounce + Tidalwave + + + + + + + + + + + SamsiCall + + + + + + + + + + + + + + + + + + + + Explodet + WhiteFire + WhiteAir + + + + + LegSweep + + + + + + + + TwinSlash + StrongD + + + + + + + + FireAir + + + + Blaze + + + + Blazemore + + + + SnowStorm + + + + + + + + Lightning + ChargeUp + + + + + Bang + + + + MagicBack + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Beat + + + + Sap + + + + + Surge + UltraDown + + + + + + + + TatsuCall + + + + + + + + + + + + + + Curse + Radiant + + + + + + + + + + + Boom + + + + + Sacrifice + Revive + + + + + + + + + + + Firebal + + + + Firebane + + + + + Blazemore + ChargeUp + + + + + + ChargeUp + SuckAir + Meditate + + + + + + + + + RockThrow + HighJump + + + + + + FireSlash + VacuSlash + BoltSlash + IceSlash + + + + + + + + + + + HealMore + + + + Heal + + + + + + + HealUs + + + + + Thordain + Lightning + + + + + + + + + HealAll + SideStep + + + + + FrigidAir + + + + + + + + SnowStorm + ChargeUp + + + + + IceAir + + + + + Transform + Focus + + + + + Upper + + + + Infernos + + + + Infermore + + + + + + + + + + + + + + Curse + LureDance + + + + + + ChargeUp + Ramming + + + + + + + + + Sacrifice + Hustle + + + + + + Revive + WarCry + + + + + + + + + Meditate + LifeSong + + + + + + + + + + + + + + + + + + + + + + + + StrongD + Guardian + + + + + + Blazemost + Firebolt + Explodet + Infermost + Blizzard + + + + + + + + + + + + + + MPass + + + + MPassmore + + + + + Vacuum + ZombieCut + + + + + + + + + + + + + + + + + + SleepAir + PoisonAir + + + + + + + + + + + + PoisonHit + NapAttack + + + + + + + + PoisonGas + + + + + + + + + + + + + BiAttack + + + + + + + + SquallHit + BiAttack + + + + + + + + Vivify + + + + + + + + + + + + + + + + DiagoCall + + + + + + + + + + BlazeAir + + + + + StopSpell + DanceShut + MouthShut + + + + + + + + LushLicks + + + + + + + + + + + + + Sleep + + + + + + + + + + Slow + + + + IceBolt + + + + + + + Speed + + + + + SpeedUp + ChargeUp + + + + + + + + + + + + + + + + + + + + + + + + Antidote + DeChaos + NumbOff + CurseOff + + + + + + + + + + + + + + + + + + + + Zap + + + + Watershot + + + + + + + + + + + + + + Defense + SlowAll + Surround + + + + + + + + + WindBeast + ChargeUp + + + + + WindBeast + + + + + + + + + + + + + + + + IceStorm + + + + Scorching + + + + + + + CallHelp + + + + Bolt + + + + + + \ No newline at end of file diff --git a/static/data/insert.py b/static/data/insert.py new file mode 100644 index 0000000..623ccfc --- /dev/null +++ b/static/data/insert.py @@ -0,0 +1,219 @@ +import sqlite3 +import xml.etree.ElementTree as ET + +def create_tables(conn): + cursor = conn.cursor() + + # Families table + cursor.execute(''' + CREATE TABLE IF NOT EXISTS families ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name TEXT + ) + ''') + + # Monsters table + cursor.execute(''' + CREATE TABLE IF NOT EXISTS monsters ( + id INTEGER PRIMARY KEY, + family_id INTEGER, + name TEXT, + in_story BOOLEAN, + agl INTEGER, + int INTEGER, + maxlvl INTEGER, + atk INTEGER, + mp INTEGER, + exp INTEGER, + hp INTEGER, + def INTEGER, + FOREIGN KEY (family_id) REFERENCES families (id) + ); + ''') + + # Spawn Locations table + cursor.execute(''' + CREATE TABLE IF NOT EXISTS spawn_locations ( + id INTEGER PRIMARY KEY, + monster_id INTEGER, + map TEXT, + description TEXT, + FOREIGN KEY (monster_id) REFERENCES monsters (id) + ); + ''') + + # Skills table + cursor.execute(''' + CREATE TABLE IF NOT EXISTS skills ( + id INTEGER PRIMARY KEY, + monster_id INTEGER, + skill TEXT, + FOREIGN KEY (monster_id) REFERENCES monsters (id) + ); + ''') + + # Breeds table + cursor.execute(''' + CREATE TABLE IF NOT EXISTS breeds ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + target TEXT + ) + ''') + + # Breed Requirements table + cursor.execute(''' + CREATE TABLE IF NOT EXISTS breed_requirements ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + breed_id INTEGER, + family TEXT, + monster TEXT, + FOREIGN KEY (breed_id) REFERENCES breeds(id) + ) + ''') + + # Skills Data table + cursor.execute(''' + CREATE TABLE IF NOT EXISTS skills_data ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name TEXT + ) + ''') + + # Skill Requirements table + cursor.execute(''' + CREATE TABLE IF NOT EXISTS skill_requirements ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + skill_data_id INTEGER, + lvl INTEGER, + hp INTEGER, + mp INTEGER, + atk INTEGER, + def INTEGER, + agl INTEGER, + int INTEGER, + FOREIGN KEY (skill_data_id) REFERENCES skills_data(id) + ) + ''') + + # Combine From table + cursor.execute(''' + CREATE TABLE IF NOT EXISTS combine_from ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + skill_data_id INTEGER, + skill TEXT, + FOREIGN KEY (skill_data_id) REFERENCES skills_data(id) + ) + ''') + + # Precursor table + cursor.execute(''' + CREATE TABLE IF NOT EXISTS precursor ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + skill_data_id INTEGER, + precursor TEXT, + FOREIGN KEY (skill_data_id) REFERENCES skills_data(id) + ) + ''') + + conn.commit() + +def insert_data(xml_file, database_file): + # Parse XML file + tree = ET.parse(xml_file) + root = tree.getroot() + + # Connect to the SQLite database + conn = sqlite3.connect(database_file) + + # Create tables if they don't exist + create_tables(conn) + + cursor = conn.cursor() + + for family_elem in root.findall('./families/family'): + family_name = family_elem.attrib['name'] + cursor.execute('INSERT INTO families (name) VALUES (?)', (family_name,)) + family_id = cursor.lastrowid + + for monster_elem in family_elem.findall('./monsters/monster'): + monster_name = monster_elem.attrib['name'] + in_story = monster_elem.attrib.get('in_story', False) + + # Insert into monsters table + cursor.execute(''' + INSERT INTO monsters (family_id, name, in_story, agl, int, maxlvl, atk, mp, exp, hp, def) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + ''', ( + family_id, + monster_name, + in_story, + int(monster_elem.find('growth').attrib.get('agl', 0)), + int(monster_elem.find('growth').attrib.get('int', 0)), + int(monster_elem.find('growth').attrib.get('maxlvl', 0)), + int(monster_elem.find('growth').attrib.get('atk', 0)), + int(monster_elem.find('growth').attrib.get('mp', 0)), + int(monster_elem.find('growth').attrib.get('exp', 0)), + int(monster_elem.find('growth').attrib.get('hp', 0)), + int(monster_elem.find('growth').attrib.get('def', 0)) + )) + + monster_id = cursor.lastrowid + + # Insert into skills table + for skill_elem in monster_elem.findall('skills/skill'): + cursor.execute('INSERT INTO skills (monster_id, skill) VALUES (?, ?)', (monster_id, skill_elem.text)) + + # Insert into spawn_locations table + for location_elem in monster_elem.findall('spawn-locations/location'): + cursor.execute('INSERT INTO spawn_locations (monster_id, map, description) VALUES (?, ?, ?)', + (monster_id, location_elem.find('map').text, location_elem.find('description').text)) + + + for breed_elem in root.findall('.//breed'): + target = breed_elem.attrib.get('target') + cursor.execute('INSERT INTO breeds (target) VALUES (?)', (target,)) + breed_id = cursor.lastrowid + + for base_elem in breed_elem.findall('.//breed-requirement[@family]'): + family_name = base_elem.attrib.get('family') + cursor.execute('INSERT INTO breed_requirements (breed_id, family) VALUES (?, ?)', (breed_id, family_name)) + + for mate_elem in breed_elem.findall('.//breed-requirement[@monster]'): + monster_name = mate_elem.attrib.get('monster') + cursor.execute('INSERT INTO breed_requirements (breed_id, monster) VALUES (?, ?)', (breed_id, monster_name)) + + for skill_data_elem in root.findall('.//skill-data'): + skill_name = skill_data_elem.attrib.get('name') + cursor.execute('INSERT INTO skills_data (name) VALUES (?)', (skill_name,)) + skill_data_id = cursor.lastrowid + + requirements_elem = skill_data_elem.find('.//skill-requirements') + lvl = int(requirements_elem.attrib.get('lvl', 0)) + hp = int(requirements_elem.attrib.get('hp', 0)) + mp = int(requirements_elem.attrib.get('mp', 0)) + atk = int(requirements_elem.attrib.get('atk', 0)) + def_ = int(requirements_elem.attrib.get('def', 0)) + agl = int(requirements_elem.attrib.get('agl', 0)) + int_ = int(requirements_elem.attrib.get('int', 0)) + + cursor.execute('INSERT INTO skill_requirements (skill_data_id, lvl, hp, mp, atk, def, agl, int) VALUES (?, ?, ?, ?, ?, ?, ?, ?)', + (skill_data_id, lvl, hp, mp, atk, def_, agl, int_)) + + combine_from_elem = skill_data_elem.find('.//combine-from') + if combine_from_elem is not None: + for combine_skill_elem in combine_from_elem.findall('.//skill'): + combine_skill_name = combine_skill_elem.text + cursor.execute('INSERT INTO combine_from (skill_data_id, skill) VALUES (?, ?)', (skill_data_id, combine_skill_name)) + + precursor_elem = skill_data_elem.find('.//precursor') + if precursor_elem is not None: + precursor_name = precursor_elem.text + cursor.execute('INSERT INTO precursor (skill_data_id, precursor) VALUES (?, ?)', (skill_data_id, precursor_name)) + + # Commit changes and close the connection + conn.commit() + conn.close() + + +# Example usage +insert_data('data.xml', 'monsters.db') diff --git a/static/data/monsters.db b/static/data/monsters.db index ca7d0dd..3a9dfb5 100644 Binary files a/static/data/monsters.db and b/static/data/monsters.db differ diff --git a/static/data/monsters.old.db b/static/data/monsters.old.db new file mode 100644 index 0000000..ca7d0dd Binary files /dev/null and b/static/data/monsters.old.db differ