![]() |
[Share]Script to make db of your current drops
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 |
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...) |
Quote:
|
I understand it, after checking a script...
But why script is necessary turn to itemname-e.txt? Are you forget about D.item_id? |
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 |
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... |
Quote:
|
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! |
ty for the share :D
Fatal error: Call to undefined function: iconv() in c:\arquivos de programas\easyphp1-8\www\npc\dropstomysql.php on line 14 any help? |
Re: npcid
Quote:
I take first three npc and I start a script. All these three npc in data base are displayed under the id one. |
Here it is, made it just for test, consists of 1 goblin =)
|
Quote:
|
libiconv
I have %subj%
|
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 |
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 |
| All times are GMT. The time now is 21:46. |