Quote:
Originally Posted by AndMetal
I'll probably just make a Perl script
|
http://code.google.com/p/projecteqem...port_spells.pl
Code:
Usage: import_spells.pl [-c path] [-s path] [-t table] [-d]
-c path path/to/eqemu_config.xml. defaults to eqemu_config.xml
-s path path/to/spells_us.txt. defaults to spells_us.txt
-t table table to load the spells into. defaults to spells_new
-d erase all spells from the database first
Tested it out several times and it works fine, including the erasing of the table.
I feel there are probably some opportunities to clean up the script a little (I've never worked with DBI before), so if anyone has any recommendations, let me know (or if you have SVN access, feel free to change it).