Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 20.04.2006, 18:17   #1
Gaikotsu
Архивный участник
 
Join Date: Apr 2006
Posts: 74
Default [Share] Small client patch for view mob drop/spoil in game

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/f...r=asc&start=30

P.S. Sorry my bad english
Gaikotsu is offline  
Old 20.04.2006, 18:29   #2
Megatronpt
Архивный участник
 
Join Date: Jan 2006
Posts: 584
Default

Great idea!

This will help players a lot!
Megatronpt is offline  
Old 20.04.2006, 18:32   #3
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

Gaikotsu:
Wow, very nice! Thank you for share, Gaikotsu! I'll try it today. ^_^
//rus
Выглядит очень классно! Молодчина, что и могу сказать.
hel is offline  
Old 20.04.2006, 18:34   #4
Gaikotsu
Архивный участник
 
Join Date: Apr 2006
Posts: 74
Default

Quote:
Originally Posted by hel
Gaikotsu:
//rus
Выглядит РѕС‡РµРЅСŒ классно! РœРѕР»РѕРґС‡РёРЅР°, что Рё РјРѕРіСƒ СЃРєР°Р·Р°С‚СŒ.
а можно в более понятной кодировке?
Gaikotsu is offline  
Old 20.04.2006, 18:41   #5
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

Gaikotsu:
On this forum use a UTF8, not CP-1251 encoding!
//sorry for offtop//
hel is offline  
Old 20.04.2006, 19:24   #6
Grillo
Архивный участник
 
Join Date: Oct 2005
Posts: 73
Default

Quote:
Originally Posted by hel
Gaikotsu:
On this forum use a UTF8, not CP-1251 encoding!
//sorry for offtop//
On this forum, use english (or add a translation )
Grillo is offline  
Old 20.04.2006, 21:27   #7
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

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.
Code:
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...
hel is offline  
Old 20.04.2006, 22:48   #8
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

Quote:
Information for this patch is read from l2dp database

didnt test it, but maybe he's talking about l2jdp...
toolpunk is offline  
Old 20.04.2006, 22:51   #9
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

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.
hel is offline  
Old 21.04.2006, 04:16   #10
Dimedrol
Архивный участник
 
Join Date: Apr 2006
Posts: 6
Default

Share plz your l2db base backup.
Dimedrol is offline  
Old 21.04.2006, 04:29   #11
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

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?
Digital is offline  
Old 21.04.2006, 08:52   #12
pompinis
Архивный участник
 
Join Date: Mar 2006
Posts: 30
Default

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?
pompinis is offline  
Old 21.04.2006, 13:41   #13
Gaikotsu
Архивный участник
 
Join Date: Apr 2006
Posts: 74
Default

Wait 1-2 days, iI shall write version, not using databases, but using only npcdata.txt
Gaikotsu is offline  
Old 21.04.2006, 15:44   #14
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

actually digital it just create a new passive skill called "drop" for every monster.
Everything is in client files.
hamidouch is offline  
Old 22.04.2006, 01:27   #15
kgptzac
Архивный участник
 
Join Date: Jan 2006
Posts: 363
Default

hmm it seems nice but...

how do i use it?
kgptzac is offline  
Old 22.04.2006, 11:58   #16
Mattho
Архивный участник
 
Join Date: Jan 2006
Posts: 188
Default

i'll wait for easyiest script^^
Mattho is offline  
Old 22.04.2006, 18:55   #17
pompinis
Архивный участник
 
Join Date: Mar 2006
Posts: 30
Default

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.
pompinis is offline  
Old 22.04.2006, 19:01   #18
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

pompinis:
$result=mssql_query("...");
As you see, this script is connecting to MSSQL, not in MySQL...
hel is offline  
Old 22.04.2006, 19:07   #19
pompinis
Архивный участник
 
Join Date: Mar 2006
Posts: 30
Default

Quote:
Originally Posted by hel
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.
pompinis is offline  
Old 22.04.2006, 19:23   #20
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

Many of these errors is appear...
Code:
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
hel is offline  
Old 22.04.2006, 19:40   #21
pompinis
Архивный участник
 
Join Date: Mar 2006
Posts: 30
Default

Quote:
Originally Posted by hel
Many of these errors is appear...
Code:
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.
pompinis is offline  
Old 22.04.2006, 20:31   #22
Mattho
Архивный участник
 
Join Date: Jan 2006
Posts: 188
Default

can someone share npcgrp or what file it from PPC npcdata?
Mattho is offline  
Old 22.04.2006, 20:43   #23
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

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.
hel is offline  
Old 22.04.2006, 22:21   #24
pompinis
Архивный участник
 
Join Date: Mar 2006
Posts: 30
Default

Quote:
Originally Posted by Mattho
can someone share npcgrp or what file it from PPC npcdata?
It's for all npcdata's
pompinis is offline  
Old 23.04.2006, 00:06   #25
Mattho
Архивный участник
 
Join Date: Jan 2006
Posts: 188
Default

i asked for edited file^^
lazy to play with scripts...
but if it will phps with npcdata > mysql > npcgrp
i'll try it :P
Mattho 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 16:58.