Merchants stealing each others inventory

Discussions of the design and development of in-game content.

Moderator: Team Members

Post Reply
Plague
Posts: 68
Joined: Mon Jun 29, 2015 3:17 pm
EQ2Emu Server: WiP

Merchants stealing each others inventory

Post by Plague » Tue Jul 21, 2015 3:09 pm

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

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Merchants stealing each others inventory

Post by Jabantiz » Tue Jul 21, 2015 3:25 pm

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.

Plague
Posts: 68
Joined: Mon Jun 29, 2015 3:17 pm
EQ2Emu Server: WiP

Re: Merchants stealing each others inventory

Post by Plague » Tue Jul 21, 2015 3:36 pm

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.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Merchants stealing each others inventory

Post by John Adams » Tue Jul 21, 2015 3:38 pm

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 :)

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Merchants stealing each others inventory

Post by Jabantiz » Wed Jul 22, 2015 5:23 pm

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.

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Re: Merchants stealing each others inventory

Post by Zcoretri » Thu Jul 23, 2015 12:54 pm

Well I have populated the boat today and hooked up the merchant. :mrgreen:
I was able to log into the emulator with client 10858L. Tried the live client, but it was saying my server was down :|

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests