PDA

View Full Version : [Share] Small client patch for view mob drop/spoil in game


Gaikotsu
20.04.2006, 18:17
This is a small php script for generate client *.dat files with mob drop/spoil info for viewing in game.
Information for this patch is read from l2dp database, but little having remade script, possible take information from npcdata.txt straight.

This is not my idea, i simply modified it :)

new werison of patch placed on post https://postpacific.loc-online.com/forum/viewtopic.php?t=4324&postdays=0&postorder=asc&start=30

P.S. Sorry my bad english :)

Megatronpt
20.04.2006, 18:29
Great idea! ;)

This will help players a lot!

hel
20.04.2006, 18:32
Gaikotsu:
Wow, very nice! Thank you for share, Gaikotsu! I'll try it today. ^_^
//rus
Выглядит очень классно! Молодчина, что и могу сказать. :)

Gaikotsu
20.04.2006, 18:34
Gaikotsu:
//rus
Выглядит РѕС‡РµРЅСŒ классно! РœРѕР»РѕРґС‡РёРЅР°, что Рё РјРѕРіСƒ СЃРєР°Р·Р°С‚СŒ. :)а можно в более понятной кодировке? :)

hel
20.04.2006, 18:41
Gaikotsu:
On this forum use a UTF8, not CP-1251 encoding!
//sorry for offtop//

Grillo
20.04.2006, 19:24
Gaikotsu:
On this forum use a UTF8, not CP-1251 encoding!
//sorry for offtop//
On this forum, use english ;) (or add a translation :p)

hel
20.04.2006, 21:27
Gaikotsu:
Script is not full...
This script is need db, with table 'drops', but i can't find it...
This error is appear, when I launch your script (dbuname, dbpass and dbhost is edited, as dbname i set 'Lin2world', is this correct?):
I use php4+apache1.3.33+mssql2000 with last servicepack.
Connect to database...Write data...
Warning: mssql_query(): message: Line 3: Incorrect syntax near ')'. (severity 15) in c:\appserv\www\drop_patch.php on line 122
Warning: mssql_query(): Query failed in c:\appserv\www\drop_patch.php on line 122
Warning: mssql_fetch_array(): supplied argument is not a valid MS SQL-result resource in c:\appserv\www\drop_patch.php on line 127

A lot of these errors are appear...

toolpunk
20.04.2006, 22:48
Information for this patch is read from l2dp database ;)
didnt test it, but maybe he's talking about l2jdp...

hel
20.04.2006, 22:51
But l2jdp is work on with MySQL, not with MSSQL...

I need an version of script, to work on with npcdata.txt.
I know about php too little... And I can't remade it.

Dimedrol
21.04.2006, 04:16
Share plz your l2db base backup. :D

Digital
21.04.2006, 04:29
ahh.. i finally understand what his trying to say :P
it reads off client dat files for monster currently in view?
then using the name goes into l2datapack and retrieve the drop information and shows it in a window in the client..

nice idea really.. too bad we cant get the actual drop info from l2 off..
else..... ;) u know what i meant eh?

pompinis
21.04.2006, 08:52
Yes we can get drops from npcdata file, is very simle, if i get free min i will write php script for it and post here.

Gaikotsu can you post the structure of you drop table?

Gaikotsu
21.04.2006, 13:41
Wait 1-2 days, iI shall write version, not using databases, but using only npcdata.txt

hamidouch
21.04.2006, 15:44
actually digital it just create a new passive skill called "drop" for every monster.
Everything is in client files.

kgptzac
22.04.2006, 01:27
hmm it seems nice but...

how do i use it?

Mattho
22.04.2006, 11:58
i'll wait for easyiest script^^

pompinis
22.04.2006, 18:55
Here is the script to make db of drops from npcdata.txt , i dont know strukture of Gaikotsu table is diferent from main table and Gaikotsu script need to be remaked or main.
Step1:
Creat tables from npcedit[1].sql.gz work whit mysql

Step2:
Edit config.php
Insert your npcdata.txt in the same directory wher is the script

Step3:
Launche the script dropstomysql.php

And that is you have you current drops in mysql database.

hel
22.04.2006, 19:01
pompinis:
$result=mssql_query("...");
As you see, this script is connecting to MSSQL, not in MySQL...

pompinis
22.04.2006, 19:07
pompinis:
$result=mssql_query("...");
As you see, this script is connecting to MSSQL, not in MySQL...

This is not the problem the script can be remaked to work with mssql or mysql, the problem what i have i don't know what strukture of tables is using Gaikotsu.

hel
22.04.2006, 19:23
Many of these errors is appear... :(
Total NPC's: 3868
NPC 1 dropas yra:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in c:\appserv\www\drop\dropstomysql.php on line 52
[alphabet_a] 1 1 0.04651
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in c:\appserv\www\drop\dropstomysql.php on line 52

pompinis
22.04.2006, 19:40
Many of these errors is appear... :(
Total NPC's: 3868
NPC 1 dropas yra:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in c:\appserv\www\drop\dropstomysql.php on line 52
[alphabet_a] 1 1 0.04651
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in c:\appserv\www\drop\dropstomysql.php on line 52


Make you sure if you have created tables from npcedit[1].sql.gz and if config.php is configured.

Mattho
22.04.2006, 20:31
can someone share npcgrp or what file it from PPC npcdata? :)

hel
22.04.2006, 20:43
pompinis:
Thanks, I manualy find this problem.
Check your chance in table... As integer. But need to set as floating value.
Or I'm incorrect?

Mattho:
If I solve this problem, I share a script with eng\rus manual. If you want. ;)

pompinis
22.04.2006, 22:21
can someone share npcgrp or what file it from PPC npcdata? :)

It's for all npcdata's

Mattho
23.04.2006, 00:06
i asked for edited file^^
lazy to play with scripts...
but if it will phps with npcdata > mysql > npcgrp
i'll try it :P

pompinis
23.04.2006, 09:28
Deleted

pompinis
23.04.2006, 14:42
Modified Gaikotsu script for C3 version to work whit my DB.
Fixed LoadDataFile() function in Gaikotsu script.

Step1:
Put the drop_patch.php in te sam directory where is my dropstomysql script.

Step2:
Put the Files skillname-e.txt, npcgrp.txt and skillgrp.txt in the same directory (Files needed in Unicode format)

Step3:
Launche drops_pach.php it will create new files in ANSI format whit drops inserted.

Last Step:
Change new files in Unicode format, encode and put in system directory of your l2.

Mattho
23.04.2006, 15:53
i still can't get it works :(
so if someone have it running can make me those clientfiles? :) (c4 will be good :P )
thx

pompinis
23.04.2006, 16:57
Modified Gaikotsu script for C4 version to work whit my DB.
Fixed LoadDataFile() function in Gaikotsu script.

Step1:
Remove simbol ’ or replase simbo ’ to simbol ' from skillname-e.txt before making next step.
Change this line in skillname-e.txt if you have that simbols.
skill_begin skill_id = 1342 skill_level = 1 name = [Light Vortex] desc = [바람의 차원으로 연결되는 소용돌이를 일으킨다. 바람 속성 공격을 가하는 동시에 순간적으로 적의 바람 속성 공격에 대한 내성, 이동속도/공격속도/마법속도를 감소시키고 MP를 계속 감소시킨다. 오버히트 가능. 위력 140.] c4_attr2 = [none] c4_attr3 = [none] skill_endTo
skill_begin skill_id = 1342 skill_level = 1 name = [Light Vortex] desc = [] c4_attr2 = [none] c4_attr3 = [none] skill_end
Step2:
Put the drop_patch.php in te sam directory where is my dropstomysql script.

Step3:
Put the Files skillname-e.txt, npcgrp.txt and skillgrp.txt in the same directory (Files needed in Unicode format)

Step4:
Launche drops_pach.php it will create new files in ANSI format whit drops inserted.

Last Step:
Change new files in Unicode format, encode and put in system directory of your l2.

asaszz
24.04.2006, 11:46
Maby any1 can put here link with full scripted c3 system?

Gaikotsu
24.04.2006, 13:31
New version of patch (for C3 and C4), reads necessary given straight from npcdata.txt

Rules of the use:
1. Unpack files in any directory
2. In file drop_patch.php to indicate used by you client of the play (variable $client_ver)
3. Copy to subfolder SERVER two files from your server: item_pch.txt and npcdata.txt (in ANSI format)
Attention: as separators in file npcdata.txt must be a symbols to tabulations.
4. Run script drop_patch.php.
5. Got three files (npcgrp.txt, skillgrp.txt, skillname-e.txt) encode in utility L2ClientDat and put got dat-files in system directory of your l2.
For some version of the client possible to come in addition to encode got dat-files by utility l2encdec.

P.S. Sorry my very bad english :)

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
drop_patch_148.rar — 569671 байт

hel
24.04.2006, 15:05
Big THX again!
GJ, Gaikotsu!!!

Dimedrol
24.04.2006, 16:37
New version of patch (for C3 and C4), reads necessary given straight from npcdata.txt

Rules of the use:
1. Unpack files in any directory
2. In file drop_patch.php to indicate used by you client of the play (variable $client_ver)
3. Copy to subfolder SERVER two files from your server: item_pch.txt and npcdata.txt (in ANSI format)
Attention: as separators in file npcdata.txt must be a symbols to tabulations.
4. Run script drop_patch.php.
5. Got three files (npcgrp.txt, skillgrp.txt, skillname-e.txt) encode in utility L2ClientDat and put got dat-files in system directory of your l2.
For some version of the client possible to come in addition to encode got dat-files by utility l2encdec.

P.S. Sorry my very bad english :)

Вери юзфул, уважуха тебе :)

asaszz
24.04.2006, 21:10
New version of patch (for C3 and C4), reads necessary given straight from npcdata.txt

Rules of the use:
1. Unpack files in any directory
2. In file drop_patch.php to indicate used by you client of the play (variable $client_ver)
3. Copy to subfolder SERVER two files from your server: item_pch.txt and npcdata.txt (in ANSI format)
Attention: as separators in file npcdata.txt must be a symbols to tabulations.
4. Run script drop_patch.php.
5. Got three files (npcgrp.txt, skillgrp.txt, skillname-e.txt) encode in utility L2ClientDat and put got dat-files in system directory of your l2.
For some version of the client possible to come in addition to encode got dat-files by utility l2encdec.

P.S. Sorry my very bad english :)
not working for me............

skill_begin skill_id = 40544 skill_level = 1 name = [Drop] desc = [none] skill_end
skill_begin skill_id = 40545 skill_level = 1 name = [Spoil] desc = [none] skill_end

desc = [none] for all? wtf?

divine
24.04.2006, 21:27
asaszz, lol save the npcdata.txt and item_pch as ansi not as unicode ))


Gaikotsu, tnx great tool..

asaszz
25.04.2006, 05:26
i saved in ansi and i got this!

divine
25.04.2006, 08:21
if you have it ansi then it's ok cose npc have no drop or spoil..
the rest is fine took like 2 mins for script to run..

Shiro
29.04.2006, 15:23
His english is confusing

4. Run script drop_patch.php.

How do i run it in the first place? Do i need webserver with php installed just to get this to work? And would that also allow me to upload the whole lot to a other webhost and have my client connect to it over the internet? That would allow me to easily add this to all my clients for my server.

hel
29.04.2006, 17:50
Yes, you need an apache+php4 (not 5) with uncommented module php_mssql.dll in your php.ini (located in %systemroot% or c:\windows\).
This script (drop_patch.php), with all included to this pack folders, needs to be uploaded in the dir, located in web-server documents root directory, as example: wwwroot.

roxaz
21.05.2006, 15:32
maybe im blind but where can i download this pack?i cant find any link...

Saito
22.05.2006, 09:51
I still find it a bit of a hassle true it's very useful but not something I can have "normal users" use it's slightly too complex for that also the fact it uses a outdated version of php causes troubles since 99/100 webhost companies all run php5.

Would it be possible to create a program to do this so something with build in webserver or maybe a other solution that doesn't require any webserver at all.

Still thumbs up for the great work I'm loving it.

Gaikotsu
22.05.2006, 12:29
maybe im blind but where can i download this pack?i cant find any link...have possible conducted cleaning on forum
upload scripts again

roxaz
22.05.2006, 14:58
I still find it a bit of a hassle true it's very useful but not something I can have "normal users" use it's slightly too complex for that also the fact it uses a outdated version of php causes troubles since 99/100 webhost companies all run php5.

Would it be possible to create a program to do this so something with build in webserver or maybe a other solution that doesn't require any webserver at all.

Still thumbs up for the great work I'm loving it.
Actualy it's pretty easy. Just download easyPHP from www.download.com

roxaz
22.05.2006, 14:59
maybe im blind but where can i download this pack?i cant find any link...have possible conducted cleaning on forum
upload scripts again
Thx man :)

roxaz
22.05.2006, 16:05
and maybe you have that version of script which takes info from l2dp database? :)

tpuNIsher
23.05.2006, 03:20
Why would "normal" users want this? So they can exploit the game? No thank you. Do it on your own.

roxaz
23.05.2006, 13:36
actualy its was pretty easy to do it mysqlf :) anyway thx for ideas :P

Gaikotsu
23.05.2006, 23:13
and maybe you have that version of script which takes info from l2dp database? :)scripts for work with l2dp I did not write.
I do not use l2dp on our server - I have preferred to write with zero its variant reference base, much powerfully differring from l2dp on structure etc..

Saito
24.05.2006, 07:43
Why would "normal" users want this? So they can exploit the game? No thank you. Do it on your own.

Because it saves a lot of alt tabbing from the game to look up a drop or spoil also because most servers have a custom droplist this one will always be 100% correct for your server.

tpuNIsher
24.05.2006, 10:18
Not our server. We do not allow any shiz like this. It takes away a part of the game.. by diminishing the hard work they have to put in to find out which mobs drop what :p

But its a nice patch i believe for some other reasons.

roxaz
24.05.2006, 11:13
tpuNIsher this is share so it means that anyone -->WHO WANTS<-- can use it,if you dont like it - dont use :P

frta14
26.05.2006, 07:01
Hmm when the script is running, it say me an error like: Unknown item 'magic_ring' in spoil data. NPC id: 1 Unknown item 'stem' in spoil data. NPC id: 1 Unknown item 'event__medal' in drop data. NPC id: 1 Unknown item 'event__glittering_medal' in drop data. In all the items. and the drop and spoil in the skillgrp.txt don't display correctly, is something like: Drop=[...............] Spoil=[.............]. Any solution?????

I'm Using that files in ANSI when run the script..

Saito
26.05.2006, 10:51
Well the problem is with our server is that it has custom drops on many mobs to fit the server instead of 100% official so all the sites around are not 100% correct. So I thought this be a good solution to all the people asking where drops what.

Gaikotsu
26.05.2006, 13:34
Hmm when the script is running, it say me an error like: Unknown item 'magic_ring' in spoil data. NPC id: 1 Unknown item 'stem' in spoil data. NPC id: 1 Unknown item 'event__medal' in drop data. NPC id: 1 Unknown item 'event__glittering_medal' in drop data. In all the items. and the drop and spoil in the skillgrp.txt don't display correctly, is something like: Drop=[...............] Spoil=[.............]. Any solution?????

I'm Using that files in ANSI when run the script..item names in item_pch.txt & npcdata indentical?

also possible incorrect format of item_pch.txt

frta14
26.05.2006, 16:10
yes... the names are identicals =S

roxaz
27.05.2006, 15:34
but there is one problem...if you give your patch to community you will give all your droplist to them.its not hard to write a script/leecher to take all data from those txt files and make an output. maybe there are such tricks like changing of *.dat files encryption? i heard that l2jvn uses different encryption, not same as retail servers. maybe there is some easy way to make a little modification of encryption? maybe encryption header change or something, some thick to stop usual decrypters decrypting files of our servers?

FidoW
27.05.2006, 16:22
Hmm when the script is running, it say me an error like: Unknown item 'magic_ring' in spoil data. NPC id: 1 Unknown item 'stem' in spoil data. NPC id: 1 Unknown item 'event__medal' in drop data. NPC id: 1 Unknown item 'event__glittering_medal' in drop data. In all the items. and the drop and spoil in the skillgrp.txt don't display correctly, is something like: Drop=[...............] Spoil=[.............]. Any solution?????

I'm Using that files in ANSI when run the script..
I had similar problem, i solved replacing tab with spaces in item_pch.txt

sg552
09.06.2006, 10:14
Drop=[...............] Spoil=[.............]
Anybody solved it?
I replace tabs with spaces that's all ok, but i yet had this problem 8(
Both files in ANSI

frta14
09.06.2006, 15:22
me too...

sg552
13.06.2006, 10:34
Its works perfect, thanks a lot
PS. Look on desc=[] after empty [drop....] and [spoil....]

roxaz
17.07.2006, 08:45
Not our server. We do not allow any shiz like this. It takes away a part of the game.. by diminishing the hard work they have to put in to find out which mobs drop what :p

But its a nice patch i believe for some other reasons.

that what you have said is simply piece of shit. normal players will find out drops in such sites like http://www.l2wh.com or http://l2shop.sytes.net/ so it will take only more time, but part of game will be taken anyway. the only thing is that if you dont want to give your own droplist to public then this script is useless, it would make your hard work leaked. in the other hand we have retail droplist now, everyone has, so we simply will add it to the server, and we will make normal drop patch for the client so everybody will be happy.

armedmonkey
02.08.2006, 02:21
What is the output? I'm not understanding something.... it's writing to the skills files why? how's that supposed to make you see drops in game?

roxaz
27.09.2006, 14:20
If you have saved server dir files as ansi and it still doesnt work, add line 'set_time_limit(99999999999);' just after '<?'. It should help. :)

hel
27.09.2006, 14:48
roxaz:
set_time_limit(0); //unlimited execution time.

roxaz
28.09.2006, 12:46
oh great, thank you :D

Marlon
29.09.2006, 13:56
i couldnt open the link you put in your first topic...
.
could you update it?

thank you

pirulo
11.10.2006, 15:46
This is a small php script for generate client *.dat files with mob drop/spoil info for viewing in game.
Information for this patch is read from l2dp database, but little having remade script, possible take information from npcdata.txt straight.

This is not my idea, i simply modified it :)

new werison of patch placed on post https://postpacific.loc-online.com/forum/viewtopic.php?t=4324&postdays=0&postorder=asc&start=30

P.S. Sorry my bad english :)

the link is not working anymore?

TheOrder
16.10.2006, 23:45
Yep link down !
Can someone reshare it pl0x ?

pirulo
17.10.2006, 03:59
Yep link down !
Can someone reshare it pl0x ?


i found it on the old's attachments

i modified a few things on this thing because it was not working

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
drop.rar — 81991 байт

Fileburner
27.10.2006, 04:21
thanx for uploading pirulo :)

Nosfer
27.10.2006, 12:45
Good job m8 gl hf

rykra
28.10.2006, 14:45
Link broken

dandu
31.10.2006, 03:16
This is Gaikotsu's

https://postpacific.loc-online.com/forums/attachment.php?attachmentid=12&d=1148300837

cesarius
06.11.2006, 04:28
maybe could someone post this link more one time... becaurse the thread? that is in the first post does not exist any more...
and...sorry me for my bad english...i promise you that when ill be not so drunk my english will be much better=)

khelben
02.03.2007, 23:36
Does anyone have this working with L2diasm style files since l2clientdat is crappy at best?