![]() |
|
|
#1 |
|
Архивный участник
Join Date: Mar 2006
Posts: 30
|
Here is the script to make db of drops from npcdata.txt is useful for website drop information
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. Drops To Mysql |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Apr 2006
Posts: 729
|
Deleted...
Your script is worked! Respect man! I start to work on sql->skillgrp.dat script, by modifing the Gaikotsu script. Thanks again! ------- Use chance as int, lol... It must be an floating value! (Just see in base. 0% of chance... lol...) |
|
|
|
|
#3 | |
|
Архивный участник
Join Date: Mar 2006
Posts: 30
|
Quote:
|
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Apr 2006
Posts: 729
|
I understand it, after checking a script...
But why script is necessary turn to itemname-e.txt? Are you forget about D.item_id? |
|
|
|
|
#5 | |
|
Архивный участник
Join Date: Mar 2006
Posts: 30
|
Quote:
And D.item_id is not needed whit my db look in the db if you creat two tables itemnames ant drops from this file, using the dropstomysql.php you will automaticly write npcid, item_name_server_side, item_name_client_side, min, max, chance, and type(spoil or drop), and this is all what you need for Gaikotsu script |
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Apr 2006
Posts: 729
|
mysql_query("SELECT * FROM drops as D JOIN itemnames as I ON (I.servername = D.servname AND npcid=$id) ORDER BY D.chance DESC");
I think here our problem... If I delete this green code, script is working, but incorrect. And break on 30 sec... |
|
|
|
|
#7 | |
|
Архивный участник
Join Date: Mar 2006
Posts: 30
|
Quote:
|
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Apr 2006
Posts: 729
|
I'll check it tonight...
Sorry, Yesterday I was sleeping, and hasn't help you to finish it, hope you don't take offence about it? ![]() Anyway... THANK YOU! |
|
|
|
|
#9 |
|
Архивный участник
Join Date: May 2006
Posts: 3
|
ty for the share
![]() Fatal error: Call to undefined function: iconv() in c:\arquivos de programas\easyphp1-8\www\npc\dropstomysql.php on line 14 any help? |
|
|
|
|
#10 | ||
|
Архивный участник
Join Date: May 2006
Posts: 4
|
Quote:
I take first three npc and I start a script. All these three npc in data base are displayed under the id one. |
||
|
|
|
|
#11 |
|
Архивный участник
Join Date: Nov 2005
Posts: 23
|
Here it is, made it just for test, consists of 1 goblin =)
|
|
|
|
|
#12 | |
|
Архивный участник
Join Date: Mar 2006
Posts: 30
|
Quote:
|
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: May 2006
Posts: 4
|
I have %subj%
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Nov 2005
Posts: 23
|
The 5th npc in result.htm is doubled, but that's not the problem, can delete it manually from the table. The problem is that spoil information is incorrect:
{[magic_ring];1;1;xx.xx03};{[stem];1;1;3.9799} - instead of this, script takes Spoil:Adena [adena] 42 60 70 Apprentice\'s Shoes [apprentice's_shoes] 1 1 xx.xx519 |
|
|
|
|
#15 |
|
Архивный участник
Join Date: Nov 2005
Posts: 23
|
The 5th npc in result.htm is doubled, but that's not the problem, can delete it manually from the table. The problem is that spoil information is incorrect:
{[magic_ring];1;1;xx.xx03};{[stem];1;1;3.9799} - instead of this, script takes Spoil:Adena [adena] 42 60 70 Apprentice\'s Shoes [apprentice's_shoes] 1 1 xx.xx519 |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|