Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   [SHARE] L2 In Game Glossrary v1.3 (Generates based on your server/client files) (https://postpacific.mmorpg-game.online/showthread.php?t=6926)

duante 21.02.2007 22:45

[SHARE] L2 In Game Glossrary v1.3 (Generates based on your server/client files)
 
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 байт

evern 22.02.2007 06:43

marvellous!! thankiew very much!! will try it now

Mark20 22.02.2007 08:21

Can you show any screenshot of how exactly looks like ?

duante 22.02.2007 20:52

ver 1.2 added pictures of the glossary as well

Firedaemon 23.02.2007 19:39

Thank you for sharing your work

YakudZe 24.02.2007 15:47

Php version 5.x necessarily?

KOC2000 26.02.2007 06:42

COOL.. thanx

duante 05.03.2007 19:58

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

olmer2002 06.03.2007 13:24

hmm, where is formcontroller.php file?
Code:

include("databasecontroller.php");
include("formcontroller.php");

this code from importClientItemname-eVer2.php file

im couldn't test u tools,because formcontroller.php file not found =(

ivasik 06.03.2007 16:59

nice. thnx

rodier 09.03.2007 01:18

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..

duante 09.03.2007 19:11

Quote:

Originally Posted by olmer2002 (Post 80412)
hmm, where is formcontroller.php file?
Code:

include("databasecontroller.php");
include("formcontroller.php");

this code from importClientItemname-eVer2.php file

im couldn't test u tools,because formcontroller.php file not found =(

fixed in new download update x.x

duante 09.03.2007 19:13

Quote:

Originally Posted by rodier (Post 80682)
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..

well if its that easy just do it and share it.

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.

olmer2002 09.03.2007 22:32

Quote:

Originally Posted by duante (Post 80757)
fixed in new download update 1.3

mmm,this
Code:

include formcontroller.php
to be contained in importClientItemname-eVer2.php file.

you realy fixed all scripts from your tools? =)

olmer2002 14.03.2007 08:27

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.

evern 15.03.2007 16: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

Ranma12 14.04.2007 17:48

Quote:

Originally Posted by duante (Post 79257)
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.

how can I create data_npc and data_item tables? I cant find them in db. Only ItemData is there. Thx for answer.

asus_kpo 06.05.2007 05:29

good work!!

Fileburner 24.06.2007 14:07

nice thanx for sharing

emanuel 03.07.2007 08:41

give the all sql database , with all imports ?!

olmer2002 03.07.2007 13:37

Scripts do not contain any filters, therefore full import is impossible


All times are GMT. The time now is 21:53.