Page 1 of 1
Merchants stealing each others inventory
Posted: Tue Jul 21, 2015 3:09 pm
by Plague
Merchants in the ruins are my test cases. there are three I am working with "Pitrova","Arms Dealer Nylzs", and "Talia". Checking the Merchant_inventory table I get Inventory_id Pitrova=460, Nylzs=300, and Talia= 673. Taking the merchant_id from that table and putting them in the spawn table under merchant_id. Pitrova has nothing to sell to me, then Nylzs has nothing, Talia has her full table to sell. When I go back to Pitrova and Nylzs they can now sell me everything off of Talia's table but not their own. My merchants are stealing each others inventory. /Confused
Re: Merchants stealing each others inventory
Posted: Tue Jul 21, 2015 3:25 pm
by Jabantiz
No clue on this one, my best guess is that the first 2 merchant lists are empty and the third isn't and when you go back to the first 2 they have nothing so they don't update the list leaving the last list you got visible. Just a best guess though as the ID's you listed do not match what I have in my DB.
Re: Merchants stealing each others inventory
Posted: Tue Jul 21, 2015 3:36 pm
by Plague
Yah they did not match, I was on live and the sell lists had gotten an update at some point. So I figured out what they were currently selling and searched the Merchant_inventory table for the corresponding ID. Proabbly a good guess on bringing up the last one visible tho, as none of the frostfangsea merchants ever liked to sell to me and now they all have Talia's table unless I camp out and back in in which case they have nothing again. I just removed the merchant_id on the spawn table to keep them from stealing for the time being.
Re: Merchants stealing each others inventory
Posted: Tue Jul 21, 2015 3:38 pm
by John Adams
Jabantiz wrote:No clue on this one, my best guess is that the first 2 merchant lists are empty and the third isn't and when you go back to the first 2 they have nothing so they don't update the list leaving the last list you got visible. Just a best guess though as the ID's you listed do not match what I have in my DB.
This would be correct. Been a bug since around 2008

Re: Merchants stealing each others inventory
Posted: Wed Jul 22, 2015 5:23 pm
by Jabantiz
Sending a packet with just the spawn id and the merchant type will work to clear the list, however in my tests the tabs end up out of order, kind of randomly too. Will commit the code as it does fix the merchant lists when they have no inventory, tabs have me stumped though.
Re: Merchants stealing each others inventory
Posted: Thu Jul 23, 2015 12:54 pm
by Zcoretri
Well I have populated the boat today and hooked up the merchant.
I was able to log into the emulator with client 10858L. Tried the live client, but it was saying my server was down
