![]() |
|
|
#1 |
|
Архивный участник
Join Date: Jul 2006
Posts: 14
|
The admin of my server asked me to make an items db like pmfun or onlinewelten that worked for our server. He gave me the NPCData file.
I wrote a program that parses it into a database, but unfortunately the NPCData file only lists the item_ids instead of the Friendly Names. I tried looking in ItemData-e.dat, but I could not figure out any way to link them up. Could someone give me a tip on how to get this working? I basically need a way to go from avadon_circlet to "Avadon Circlet" (if only all items were simular like this) edit: after some more work I decoded etcitemgrp.dat, armorgrp, and weapongrp, as well at itemgrp, but those don't really help me in the end because they don't contain the weapon id's.. I can't find a programatic way to link them to the drops defineed in npcdata.txt |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Sep 2005
Posts: 72
|
Decrypt itemnames-e.dat in client - there are IDs (numeric), friendly item names and item descriptions
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jul 2006
Posts: 14
|
Yes, but as I said, I have no way to bind them to the entries in npcdata:
Code:
additional_make_multi_list={{{{[adena];140;200;100}};192};{{{[apprentice_s_shoes];1;1;xx.xx31};{[cloth_shoes];1;1;xx.xx9};{[leather_sandals];1;1;xx.xx9};{[short_gloves];1;1;xx.xx89}};1xx.xx03999868};{{{[stem];1;10;75};{[suede];1;5;25}};xx.xx439999844};{{{[s_healing_herbs];1;5;100}};4.001599999596}}
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Jun 2005
Posts: 285
|
use perl/php or a such
build hash from item_pch.txt: [server_name]->id build hash/array from itemnames-e.dat: id->Ingame Name then parse npcdata, and for each item in drop you can get Ingame name |
|
|
|
|
#5 |
|
Архивный участник
Join Date: Jul 2006
Posts: 14
|
do I have to get item_pch.txt from the server admin? and what do you mean by build hash?
|
|
|
|
|
#6 | |
|
Архивный участник
Join Date: Jun 2005
Posts: 285
|
you need item_pch.txt from Script folder.
Quote:
http://php.net/types.array http://www.google.com/ |
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Oct 2005
Posts: 267
|
I already did the work. Let me save you some time. Here is my item_pch which you can easily parse.
|
|
|
|
|
#8 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 731
|
Quote:
|
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Feb 2005
Posts: 72
|
i did the work with the C4 retail files
here is the database i built: http://www.l2base.com if you use retail C4 npcdata and npcpos it can save you some work
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Jul 2006
Posts: 14
|
while the site was down, i actually got it working. thanks fellas
|
|
|
|
|