Jump to content

[Tutorial] All Item IDs / Making your own merchant mod and changing prices


NeedMoreDragons

Recommended Posts

v00d00y already posted a tutorial explaining how the common/item/itemData.itm file is structured, so I used it to build a list of all item IDs in the game along with their name and description. The full list can be found here: https://docs.google.com/spreadsheets/d/1rRlNRrU-qbL4-bcqYiaA6gqkR47ChVoSqeJEvSgn_6M/
You can use these IDs to make your own merchant mod. Here's how the merchant file (common/facility/shopList.slt) is structured:
Header:
1800        unknown
32000000    number of entries (cannot exceed FF / 255)

00000000    position in list (starting at zero)
01000000    item ID (from the spreadsheet)
00000000    unknown
The default shopList.slt file has 32 entries and each one takes up 12 bytes. If you wanted to add a meal voucher to the end of your list, you'd add the following:
32000000 33rd item in the list
3B020000 item ID (from the spreadsheet)
00000000 unknown

Since the number of entries in your shopList.slt file increased by 1, you'll also need to update the header from "180032" to "180033". The default purchase price for a meal voucher is 5000 zenny, so if you don't want to spend that much on a voucher, you can change its price in the itemData.itm file. Here's what voucher's entry looks like:

3B020000 00010000 00036363 5D020000 00003200 00000000 F4010000 88130000

Using v00d00y's tutorial, we know that the value at the end "8813000" corresponds to the buy price (you can double check this by converting 0x1388 to decimal to get 5,000, which is the voucher's default purchase price). If you want to be able to buy a voucher for 1 gold, just change that last part from "8813000" to "01000000". The full, modified entry will look like this:

3B020000 00010000 00036363 5D020000 00003200 00000000 F4010000 01000000

Once you're done modifying both files, just drop them in the appropriate location in your nativePC folder (itemData.itm should be under "nativePC/common/item" and shopList.slt should be in "nativePC/common/facility") and restart the game to reload the new lists. I've attached the default version of both files to this post in case you want to change your merchant list but don't want to unpack the game files

Edited by NeedMoreDragons
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...