PDA

View Full Version : Question regarding spells_en.txt


morpheus014
04-14-2003, 01:03 PM
Hello everyone,

I am working on revamping Stormgod's old EQ Treasures system, and I was wondering how/if the spells_en.txt file could be read using php to display all of the spell info, as I am hoping to avoid entering all 3000 some spells into a database =/. Anyway, any insight would be appreciated if anyone knows how or if this can be done.

kathgar
04-20-2003, 11:11 PM
The easiest way would to have a script or program parse the file and put it in the db, you could even just hack it into the eqemu source without much trouble...The file is a pain in the ass to parse though.. look at the function i wrote to do it.. its like 600 lines.. yeah I could have reduced it to like 90 lines if I included stuff in functions but it wouldn't really run any better

morpheus014
04-21-2003, 12:25 PM
Ya all my attempts to parse it have, well pretty much done nothing mainly because i think i dont have enough knowledge of php(yet)/xml(tried some xml) to get it working. Anyway, I think I am going to focus on getting the 'profile' system working again, there were some db struct changes since the treasures system was released so those need some work, as well as the faction etc.

Trumpcard
04-21-2003, 05:44 PM
wow..someone's picked up working on that, cool.. .I did the items part of the character profiles...