![]() |
Getting friendly item names
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 |
Decrypt itemnames-e.dat in client - there are IDs (numeric), friendly item names and item descriptions
|
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}} |
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 |
do I have to get item_pch.txt from the server admin? and what do you mean by build hash?
|
you need item_pch.txt from Script folder.
Quote:
http://php.net/types.array http://www.google.com/ |
I already did the work. Let me save you some time. Here is my item_pch which you can easily parse.
|
Quote:
|
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 ;) |
while the site was down, i actually got it working. thanks fellas
|
| All times are GMT. The time now is 15:25. |