![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Архивный участник
Join Date: Aug 2005
Posts: 36
|
the system was nearly finished and this is what and how it does what it does. if you have updates just post them for others all in all this is nice system. This is my final act with lineage 2 most likely so enjoy.
ok this system will generate 15,000+ htmls that you will add to your lineage 2 html directory. its broken down into sub folders so the server wont cache them incase you update they will update live as well as the server can not cache that many more files with the current amount of htms in the html dir. the server code only allows for just over 4kb(8kb unicode) sized htm files or else it wont display the htm to the user and will buffer overflow(will not crash a server no worries). if somebody would hex this in the server code then you could obviously make nicer htm files using this system however it currently tries to limit all the files generated to this maximum size. Whats this do? -------------------------------------------------------------------------------- 1) Generates new recipe looks for all dwarf recipes 2) Generates glossary for recipes for all characters 3) Generates glossary for mobs with drop/spoil percentages 4) Generates glossary for items with all stats/descriptions/quest Directories: -------------------------------------------------------------------------------- base/ -- consist of 4 types of files which only 3 you will need to use base/client -- where you put your decrypted client files for your version of lineage 2 base/server -- where you put your lineage 2 server data files base/glossary -- once generated you copy all files in here to your lineage 2 server html directory base/html -- this is where you modify the templates for the glossary output base/db -- the system is part of a much larger database however you only need 2 tables for this the script is here Requirements: -------------------------------------------------------------------------------- 1) some kind of sql server (default is mssql) 2) php version 5 with database support 3) 120 MB of Free RAM (yes its alot of processing) 4) a pretty fast cpu hehe 5) between 2 and 10 minutes of bordom if (this.age >= state.law.drinking_age) { this.getBeer(); } else { this.stareAtScree(); } Files: -------------------------------------------------------------------------------- class*.* -- class file you wont need to read create*.* -- code that create physical files on the hard drive import*.* -- code that inserts data from files to sql **NOTE: Ver2 type imports require a db row that is manually added with the id 0 with any default data data*.* -- a file with array data for quick reference cache Steps: -------------------------------------------------------------------------------- after you copy the required client and server data in the directories you can run createPhPIconArray.php which will create dataItemIcons.php once you create a new database called "l2serverDB" you can open databasecontroller.php and put in the appropriate login info to access that database. it also needs read access to your "lin2world". there are 3 tables in "lin2world" that it gets information from which are data_item, ItemData, data_npc... these are generated by useing your cache server to import your server files to your "lin2world" database and are used to calculate item drop information and item stat information. after all this data is prepped and ready to go you can just run the createGlossary.php which will start outputing all the html files in the glossary sub directory. It will overwrite and allready existing files however will not delete old files! UPDATES v1.2 INFO) Also you will need to add a way to access the glossary a simple link from an existing npc htm will work just add... <a action="link glossary/glossary.htm">Glossary</a> to one of them. 1) Fixed problem with fixed glossary browse files glossary.htm/ recipes.htm/ items.htm/ mobs.htm 2) Corrected included file name from itemsIconDB.php to dataItemIcons.php 3) Added .bat file for createPhPIconArray.php UPDATES v1.3 1) Removed reference to formcontroller.php 2) Included newer fucntions to databasecontroller.php used by some scripts Things that need to be done: -------------------------------------------------------------------------------- 1) add a browse by letter htms for mobs by name 2) add a browse by letter htms for items by name 3) add skill library with class skill trees and train cost 4) hex l2server so it can accept larger htm files even if its just 4kb(8kb unicode) more!!! <- anybody??? 5) if we can get larger file size for htm then we can provide glossary crosslinking between htms(which is really cool) as it is now we can barely show you all the information in one page... Вложения из исходного сообщения (сами файлы в копии отсутствуют): browse.jpg — 84847 байт glossary.jpg — 55981 байт index.jpg — 54684 байт recipe.jpg — 80747 байт glossary.rar — 769584 байт |
|
|
|
|