PDA

View Full Version : merchantlist table problem


pythag
01-11-2015, 06:22 PM
I tried Georges Tools only to find it needs an update, so decided to go do it myself, and it worked :) but the merchant sells items not in the merchantlist table!

Created brand new item in the items table for the merchant to sell
Created Merchant NPC by copying another and gave it new unique ID
Added new Merchant ID to merchantlist with 1 slot and the ID of new item I made.

When I right click the NPC and get the merchant window it shows my new item (great) but then also all the items from the copied NPC - so i re-checked the merchantlist it only shows 1 thing against my npc ID!

I am guessing there is another table involved but could anyone point it out for me please?

Kingly_Krab
01-11-2015, 07:05 PM
It may be an issue with the tools being outdated, as I added a probability column to the merchantlist table so that you can have chance-based items on the merchant. But would you mind taking some screenshots of the information and possibly even the raw table data? Here's (http://prntscr.com/) a nice screenshotting program.

pythag
01-11-2015, 08:30 PM
As required, as you can see from the first two screen shots I added item 500000 to both merchants, except merchant ID 999218 has exactly the same items as 155013 in game!
Sorry could find a way of either copying or exporting the table using Heidi

my merchant in the merchantlist
http://prntscr.com/5re9dp

copied merchant in the merchantlist
http://prntscr.com/5re9ww

my merchant from npctypes
http://prntscr.com/5reasn

copied merchant from npctypes
http://prntscr.com/5rea7e

Kingly_Krab
01-11-2015, 09:40 PM
From your npc_types screenshot, I don't see the merchantid column, are you setting the merchantid correctly?

pythag
01-12-2015, 03:51 AM
No it wasnt - I never spotted that myself thank you, seems you need to enter merchant ID in both npctypes and merchant list.
It makes sense now, I can see it that you can have an npc with another npcs merchant ability - by changing it to the same it fixed this instantly thank you for your help.

Kingly_Krab
01-12-2015, 03:54 AM
I'm glad your issue has been resolved, it's small stuff that messes with you the most.