![]() |
|
|||||||
|
|
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 байт |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jul 2006
Posts: 46
|
marvellous!! thankiew very much!! will try it now
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jan 2006
Posts: 54
|
Can you show any screenshot of how exactly looks like ?
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Aug 2005
Posts: 36
|
ver 1.2 added pictures of the glossary as well
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Oct 2005
Posts: 267
|
Thank you for sharing your work
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Dec 2006
Posts: 205
|
Php version 5.x necessarily?
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Jun 2006
Posts: 100
|
COOL.. thanx
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Aug 2005
Posts: 36
|
i only work with php 5 so im not sure if its php 4 compatible if you get an error in php 4 i could suggest some changes
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Feb 2006
Posts: 153
|
hmm, where is formcontroller.php file?
Code:
include("databasecontroller.php");
include("formcontroller.php");
im couldn't test u tools,because formcontroller.php file not found =( |
|
|
|
|
#10 |
|
Архивный участник
Join Date: Feb 2006
Posts: 7
|
nice. thnx
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: May 2005
Posts: 979
|
Why its too complex? It can be done without any php/mssql or server side.. just modify L2text html client files and make another help..
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Aug 2005
Posts: 36
|
fixed in new download update x.x
|
|
|
|
|
#13 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 36
|
Quote:
on another note the system makes it so all the rates and drops are generated for YOUR server specifically which is why you need server side files. granted you could do it without mssql but if you read this system was part of a larger system that did other things. |
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Feb 2006
Posts: 153
|
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Feb 2006
Posts: 153
|
im sorry,im found function makeInsertQuery in databasecontroller.php file,but string include formcontroller.php in importClientItemname-eVer2.php should be removed ,оtherwise php interpreter will return a mistake at execution php scripts.
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Jul 2006
Posts: 46
|
can you share your php folder please? or tell me what ext do you use? my php seems weird, i have to change <? to <?php for createPhPIconArray and createGlossary for it to run, but it still return errors
|
|
|
|
|
#17 | |
|
Архивный участник
Join Date: Nov 2006
Posts: 7
|
Quote:
|
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Sep 2005
Posts: 8
|
good work!!
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: Jun 2006
Posts: 8
|
nice thanx for sharing
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: May 2007
Posts: 86
|
give the all sql database , with all imports ?!
|
|
|
|
|
#21 |
|
Архивный участник
Join Date: Feb 2006
Posts: 153
|
Scripts do not contain any filters, therefore full import is impossible
|
|
|
|
|