Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 24.07.2006, 14:27   #1
armedmonkey
Архивный участник
 
Join Date: Jul 2006
Posts: 14
Default 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
armedmonkey is offline  
Old 24.07.2006, 17:02   #2
aralyon
Архивный участник
 
Join Date: Sep 2005
Posts: 72
Default

Decrypt itemnames-e.dat in client - there are IDs (numeric), friendly item names and item descriptions
aralyon is offline  
Old 24.07.2006, 17:57   #3
armedmonkey
Архивный участник
 
Join Date: Jul 2006
Posts: 14
Default

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}}
armedmonkey is offline  
Old 24.07.2006, 19:55   #4
hr
Архивный участник
 
Join Date: Jun 2005
Posts: 285
Default

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
hr is offline  
Old 25.07.2006, 02:00   #5
armedmonkey
Архивный участник
 
Join Date: Jul 2006
Posts: 14
Default

do I have to get item_pch.txt from the server admin? and what do you mean by build hash?
armedmonkey is offline  
Old 25.07.2006, 03:37   #6
hr
Архивный участник
 
Join Date: Jun 2005
Posts: 285
Default

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/
hr is offline  
Old 01.08.2006, 08:36   #7
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

I already did the work. Let me save you some time. Here is my item_pch which you can easily parse.
Firedaemon is offline  
Old 01.08.2006, 08:42   #8
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

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
TheOrder is offline  
Old 01.08.2006, 08:59   #9
badjoe
Архивный участник
 
Join Date: Feb 2005
Posts: 72
Default

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
badjoe is offline  
Old 02.08.2006, 02:11   #10
armedmonkey
Архивный участник
 
Join Date: Jul 2006
Posts: 14
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:32.