Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Темы без сохранившегося раздела (https://postpacific.mmorpg-game.online/forumdisplay.php?f=10001)
-   -   Getting friendly item names (https://postpacific.mmorpg-game.online/showthread.php?t=5262)

armedmonkey 24.07.2006 14:27

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

aralyon 24.07.2006 17:02

Decrypt itemnames-e.dat in client - there are IDs (numeric), friendly item names and item descriptions

armedmonkey 24.07.2006 17:57

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}}

hr 24.07.2006 19:55

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

armedmonkey 25.07.2006 02:00

do I have to get item_pch.txt from the server admin? and what do you mean by build hash?

hr 25.07.2006 03:37

you need item_pch.txt from Script folder.
Quote:

and what do you mean by build hash?
http://www.cs.mcgill.ca/~abatko/comp...rl/howto/hash/
http://php.net/types.array
http://www.google.com/

Firedaemon 01.08.2006 08:36

I already did the work. Let me save you some time. Here is my item_pch which you can easily parse.

TheOrder 01.08.2006 08:42

Quote:

Originally Posted by Firedaemon
I already did the work. Let me save you some time. Here is my item_pch which you can easily parse.

I think you forgot to add a link or upload it somewhere Daemon

badjoe 01.08.2006 08:59

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 ;)

armedmonkey 02.08.2006 02:11

while the site was down, i actually got it working. thanks fellas


All times are GMT. The time now is 21:47.