Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 03.09.2005, 07:39   #1
Metal
Архивный участник
 
Join Date: Aug 2005
Posts: 44
Default [SHARE] NPCDATA to mySQL Data Import Script

Quote:
In our pursuit to make the NPC data more manageable, I have created a series of tools to assist us in having a more feasible and faster way of doing mass updates to NPC scripts. The following script, will parse the npcdata.txt, convert it from UTF-16 to ISO-8859-1 and store it in a mySQL database.

The script checks all data inserted into the mySQL database to ensure that the same data in the NPC script is actually stored in the database after the insert. This is done by doing an MD5 checksum of the data after it is inserted.

Remember though, the script will work best if you have solid NPC scripts. With any database import, then general rule is "Garbage in - Garbage out". The script does however provide assistance in making sure your NPC scripts are consistent.

The script requires that you have the PHP extension "iconv" enabled on your PHP installation for the character set conversions. Also, the script was written to parse official C3 npcdata.txt sources.

PHP Script and SQL Structure Dump is included. mySQL table structure has strict data typing in most places and things such as clans and etc are prefefined.

No technical support is offered from me for this script. User-to-User support is encouraged if needed.

Sources brought to you by Firedaemon
Download: L2 PHP Scripts.rar

I yust wanted to help people here, if everbody share information why i wount share some more info if i found. Please it aint my program, credits go 100% to Firedaemon.
Metal is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 23:03.