Merchants stealing each others inventory
Moderator: Team Members
-
Plague
- Posts: 68
- Joined: Mon Jun 29, 2015 3:17 pm
- EQ2Emu Server: WiP
Merchants stealing each others inventory
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
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
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.
- 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
This would be correct. Been a bug since around 2008Jabantiz 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.
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Merchants stealing each others inventory
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.
- Zcoretri
- Team Member
- Posts: 1642
- Joined: Fri Jul 27, 2007 12:55 pm
- Location: SoCal
Re: Merchants stealing each others inventory
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
I was able to log into the emulator with client 10858L. Tried the live client, but it was saying my server was down
Who is online
Users browsing this forum: No registered users and 0 guests