Post by X-Drop on Jan 4, 2006 5:10:52 GMT -5
Happy New Years. ;D
FFXI Monster Database and PHP Search Utility
It took nearly a week of learning MySQL and PHP to write the code that extracted all the online FFXI monster data into a database. Yet when executed, it only took 18 seconds for the PHP code to filter through 160 online pages at Somepage.com and save all the data into the database!
The purpose of this database is for access to monster data to be used in Lunar scripts. Personally, I am going to use it to finish my Aggro Check script. Hopefully someone else can use the data in a unique way as well. If you want to use the monster data, I have created a PHP search utility to use with the database.
This utility will output the FFXI data into an array formatted for Lua. I still get a kick out of displaying oncreen all stats for 3,500+ mobs at once... lol. Or refining a search using the power of regex even. Here is a sample output of all mobs found in Gustaburg South,
At the moment, the database only contains 17 fields. I might in the future add fields for "Weak to", "Crystal", "Drops", "Location", and a few others.
Special thx to Me3you2 for pointing me in the right direction.
FFXI Monster Database and PHP Search Utility
It took nearly a week of learning MySQL and PHP to write the code that extracted all the online FFXI monster data into a database. Yet when executed, it only took 18 seconds for the PHP code to filter through 160 online pages at Somepage.com and save all the data into the database!
The purpose of this database is for access to monster data to be used in Lunar scripts. Personally, I am going to use it to finish my Aggro Check script. Hopefully someone else can use the data in a unique way as well. If you want to use the monster data, I have created a PHP search utility to use with the database.
This utility will output the FFXI data into an array formatted for Lua. I still get a kick out of displaying oncreen all stats for 3,500+ mobs at once... lol. Or refining a search using the power of regex even. Here is a sample output of all mobs found in Gustaburg South,
Pug_Pugil = { family = "Pugil", type = "Fishing", level_min = 0, level_max = 0, aggro = 1, link = 0, sight = 0, sound = 1, }
Lead_Quadav = { family = "Quadav", type = "NM", level_min = 0, level_max = 0, aggro = 1, link = 0, sight = 0, sound = 1, }
Helidor_Quadav = { family = "Quadav", type = "NM", level_min = 0, level_max = 0, aggro = 1, link = 1, sight = 0, sound = 1, }
Land_Crab = { family = "Crab", type = "Fishing", level_min = 0, level_max = 0, aggro = 1, link = 0, sight = 0, sound = 1, }
Fighting_Pugil = { family = "Pugil", type = "Fishing", level_min = 0, level_max = 0, aggro = 1, link = 0, sight = 0, sound = 1, }
Tunnel_Worm = { family = "Worm", type = "Normal", level_min = 1, level_max = 1, aggro = 0, link = 0, sight = 0, sound = 1, }
Huge_Hornet = { family = "Bee", type = "Normal", level_min = 1, level_max = 1, aggro = 0, link = 0, sight = 1, sound = 0, }
Stone_Crab = { family = "Crab", type = "Fishing", level_min = 2, level_max = 3, aggro = 1, link = 0, sight = 0, sound = 1, }
Ding_Bats = { family = "Bats", type = "Normal", level_min = 1, level_max = 4, aggro = 0, link = 0, sight = 0, sound = 1, }
Sand_Crab = { family = "Crab", type = "Fishing", level_min = 3, level_max = 4, aggro = 1, link = 0, sight = 0, sound = 1, }
Fledermaus = { family = "Giant Bat", type = "Normal", level_min = 3, level_max = 5, aggro = 0, link = 1, sight = 0, sound = 1, }
Maneating_Hornet = { family = "Bee", type = "Normal", level_min = 2, level_max = 5, aggro = 0, link = 0, sight = 1, sound = 0, }
River_Crab = { family = "Crab", type = "Normal", level_min = 1, level_max = 5, aggro = 0, link = 0, sight = 0, sound = 1, }
Stone_Eater = { family = "Worm", type = "Normal", level_min = 2, level_max = 5, aggro = 0, link = 0, sight = 0, sound = 1, }
Goblin_Fisher = { family = "Goblin", type = "Normal", level_min = 4, level_max = 6, aggro = 1, link = 1, sight = 1, sound = 0, }
Walking_Sapling = { family = "Sapling", type = "Normal", level_min = 2, level_max = 6, aggro = 0, link = 0, sight = 0, sound = 1, }
Vulture = { family = "Bird", type = "Normal", level_min = 2, level_max = 6, aggro = 0, link = 1, sight = 0, sound = 1, }
Black_Wolf = { family = "Hound", type = "Normal", level_min = 5, level_max = 8, aggro = 1, link = 0, sight = 0, sound = 1, }
Enchanted_Bones = { family = "Skeleton", type = "Normal", level_min = 5, level_max = 8, aggro = 1, link = 0, sight = 0, sound = 1, }
Enchanted_Bones = { family = "Skeleton", type = "Normal", level_min = 5, level_max = 8, aggro = 1, link = 0, sight = 0, sound = 1, }
Goblin_Digger = { family = "Goblin", type = "Normal", level_min = 5, level_max = 8, aggro = 1, link = 1, sight = 1, sound = 0, }
Rock_Lizard = { family = "Lizard", type = "Normal", level_min = 3, level_max = 8, aggro = 0, link = 1, sight = 0, sound = 1, }
Amber_Quadav = { family = "Quadav", type = "Normal", level_min = 3, level_max = 8, aggro = 1, link = 1, sight = 0, sound = 1, }
Amethyst_Quadav = { family = "Quadav", type = "Normal", level_min = 3, level_max = 8, aggro = 1, link = 1, sight = 0, sound = 1, }
Young_Quadav = { family = "Quadav", type = "Normal", level_min = 3, level_max = 8, aggro = 1, link = 1, sight = 0, sound = 1, }
Ornery_Sheep = { family = "Sheep", type = "Normal", level_min = 5, level_max = 8, aggro = 0, link = 1, sight = 1, sound = 0, }
Goblin_Weaver = { family = "Goblin", type = "Normal", level_min = 4, level_max = 8, aggro = 1, link = 1, sight = 1, sound = 0, }
Goblin_Thug = { family = "Goblin", type = "Normal", level_min = 4, level_max = 8, aggro = 1, link = 1, sight = 1, sound = 0, }
Shrapnel = { family = "Bomb", type = "Normal", level_min = 8, level_max = 10, aggro = 1, link = 0, sight = 1, sound = 0, }
Stinging_Sophie = { family = "Bee", type = "NM", level_min = 9, level_max = 10, aggro = 0, link = 1, sight = 1, sound = 0, }
Maighdean_Uaine = { family = "Sapling", type = "NM", level_min = 11, level_max = 11, aggro = 1, link = 1, sight = 0, sound = 0, }
Sand_Pugil = { family = "Pugil", type = "Normal", level_min = 18, level_max = 20, aggro = 1, link = 0, sight = 0, sound = 1, }
Goblin_Gambler = { family = "Goblin", type = "Normal", level_min = 21, level_max = 23, aggro = 1, link = 1, sight = 1, sound = 0, }
Goblin_Mugger = { family = "Goblin", type = "Normal", level_min = 21, level_max = 23, aggro = 1, link = 1, sight = 1, sound = 0, }
Goblin_Leecher = { family = "Goblin", type = "Normal", level_min = 21, level_max = 23, aggro = 1, link = 1, sight = 1, sound = 0, }
Old_Quadav = { family = "Quadav", type = "NM", level_min = 20, level_max = 26, aggro = 1, link = 1, sight = 0, sound = 1, }
Gambilox_Wanderling = { family = "Goblin", type = "NM", level_min = 53, level_max = 53, aggro = 1, link = 1, sight = 1, sound = 0, }
Lead_Quadav = { family = "Quadav", type = "NM", level_min = 0, level_max = 0, aggro = 1, link = 0, sight = 0, sound = 1, }
Helidor_Quadav = { family = "Quadav", type = "NM", level_min = 0, level_max = 0, aggro = 1, link = 1, sight = 0, sound = 1, }
Land_Crab = { family = "Crab", type = "Fishing", level_min = 0, level_max = 0, aggro = 1, link = 0, sight = 0, sound = 1, }
Fighting_Pugil = { family = "Pugil", type = "Fishing", level_min = 0, level_max = 0, aggro = 1, link = 0, sight = 0, sound = 1, }
Tunnel_Worm = { family = "Worm", type = "Normal", level_min = 1, level_max = 1, aggro = 0, link = 0, sight = 0, sound = 1, }
Huge_Hornet = { family = "Bee", type = "Normal", level_min = 1, level_max = 1, aggro = 0, link = 0, sight = 1, sound = 0, }
Stone_Crab = { family = "Crab", type = "Fishing", level_min = 2, level_max = 3, aggro = 1, link = 0, sight = 0, sound = 1, }
Ding_Bats = { family = "Bats", type = "Normal", level_min = 1, level_max = 4, aggro = 0, link = 0, sight = 0, sound = 1, }
Sand_Crab = { family = "Crab", type = "Fishing", level_min = 3, level_max = 4, aggro = 1, link = 0, sight = 0, sound = 1, }
Fledermaus = { family = "Giant Bat", type = "Normal", level_min = 3, level_max = 5, aggro = 0, link = 1, sight = 0, sound = 1, }
Maneating_Hornet = { family = "Bee", type = "Normal", level_min = 2, level_max = 5, aggro = 0, link = 0, sight = 1, sound = 0, }
River_Crab = { family = "Crab", type = "Normal", level_min = 1, level_max = 5, aggro = 0, link = 0, sight = 0, sound = 1, }
Stone_Eater = { family = "Worm", type = "Normal", level_min = 2, level_max = 5, aggro = 0, link = 0, sight = 0, sound = 1, }
Goblin_Fisher = { family = "Goblin", type = "Normal", level_min = 4, level_max = 6, aggro = 1, link = 1, sight = 1, sound = 0, }
Walking_Sapling = { family = "Sapling", type = "Normal", level_min = 2, level_max = 6, aggro = 0, link = 0, sight = 0, sound = 1, }
Vulture = { family = "Bird", type = "Normal", level_min = 2, level_max = 6, aggro = 0, link = 1, sight = 0, sound = 1, }
Black_Wolf = { family = "Hound", type = "Normal", level_min = 5, level_max = 8, aggro = 1, link = 0, sight = 0, sound = 1, }
Enchanted_Bones = { family = "Skeleton", type = "Normal", level_min = 5, level_max = 8, aggro = 1, link = 0, sight = 0, sound = 1, }
Enchanted_Bones = { family = "Skeleton", type = "Normal", level_min = 5, level_max = 8, aggro = 1, link = 0, sight = 0, sound = 1, }
Goblin_Digger = { family = "Goblin", type = "Normal", level_min = 5, level_max = 8, aggro = 1, link = 1, sight = 1, sound = 0, }
Rock_Lizard = { family = "Lizard", type = "Normal", level_min = 3, level_max = 8, aggro = 0, link = 1, sight = 0, sound = 1, }
Amber_Quadav = { family = "Quadav", type = "Normal", level_min = 3, level_max = 8, aggro = 1, link = 1, sight = 0, sound = 1, }
Amethyst_Quadav = { family = "Quadav", type = "Normal", level_min = 3, level_max = 8, aggro = 1, link = 1, sight = 0, sound = 1, }
Young_Quadav = { family = "Quadav", type = "Normal", level_min = 3, level_max = 8, aggro = 1, link = 1, sight = 0, sound = 1, }
Ornery_Sheep = { family = "Sheep", type = "Normal", level_min = 5, level_max = 8, aggro = 0, link = 1, sight = 1, sound = 0, }
Goblin_Weaver = { family = "Goblin", type = "Normal", level_min = 4, level_max = 8, aggro = 1, link = 1, sight = 1, sound = 0, }
Goblin_Thug = { family = "Goblin", type = "Normal", level_min = 4, level_max = 8, aggro = 1, link = 1, sight = 1, sound = 0, }
Shrapnel = { family = "Bomb", type = "Normal", level_min = 8, level_max = 10, aggro = 1, link = 0, sight = 1, sound = 0, }
Stinging_Sophie = { family = "Bee", type = "NM", level_min = 9, level_max = 10, aggro = 0, link = 1, sight = 1, sound = 0, }
Maighdean_Uaine = { family = "Sapling", type = "NM", level_min = 11, level_max = 11, aggro = 1, link = 1, sight = 0, sound = 0, }
Sand_Pugil = { family = "Pugil", type = "Normal", level_min = 18, level_max = 20, aggro = 1, link = 0, sight = 0, sound = 1, }
Goblin_Gambler = { family = "Goblin", type = "Normal", level_min = 21, level_max = 23, aggro = 1, link = 1, sight = 1, sound = 0, }
Goblin_Mugger = { family = "Goblin", type = "Normal", level_min = 21, level_max = 23, aggro = 1, link = 1, sight = 1, sound = 0, }
Goblin_Leecher = { family = "Goblin", type = "Normal", level_min = 21, level_max = 23, aggro = 1, link = 1, sight = 1, sound = 0, }
Old_Quadav = { family = "Quadav", type = "NM", level_min = 20, level_max = 26, aggro = 1, link = 1, sight = 0, sound = 1, }
Gambilox_Wanderling = { family = "Goblin", type = "NM", level_min = 53, level_max = 53, aggro = 1, link = 1, sight = 1, sound = 0, }
At the moment, the database only contains 17 fields. I might in the future add fields for "Weak to", "Crystal", "Drops", "Location", and a few others.
Special thx to Me3you2 for pointing me in the right direction.