Item id =******

04/21/2019 11:52 mahmoudvip#1
i need any program that gives me the right code of any item id on my inventory , any ideas how to get it ?
04/28/2019 00:21 JohnDornel^#2
Hmmmm, try to rephrase what exactly you want, most likely a simple query can pull it out from the database.
04/29/2019 21:36 homelesshobo#3
1. To get the itemdata_<index>.txt file from the Media.pk2 file, use Drew Benton's pk2 tools
[Only registered and activated users can see links. Click Here To Register...]

The ID is in the 2nd column of any item entry
Example:

If you want to code it, take a look at zBot's attempt to solve it:
[Only registered and activated users can see links. Click Here To Register...]
There should be a couple of other coding examples you can look for.


2. To get the item type from any entry, you'll need 4 type IDs.
This is how they are used in the code for spawns:
[Only registered and activated users can see links. Click Here To Register...]

These can be found in the 9th, 10th, 11th and 12th column of any item entry.
Example:


3. If you mean the code to use send packet 0x704C USE_ITEM to use an item in your inventory, you will need the itemMall flag from the 8th column too.
Here is the thread explaining the calculation:
[Only registered and activated users can see links. Click Here To Register...]

Example: