EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   merchantlist_temp riddle (https://www.eqemulator.org/forums/showthread.php?t=26292)

Angelox 09-21-2008 09:40 AM

merchantlist_temp riddle
 
Was wondering if someone might can help me here;
I know what the problem is with the temp merchantlists, but don't have the smarts to fix it;
anything past npcID 65535 will not display items; all merchants with id under this number will display items (all Npcs will hold items in merchantlist_temp, just the 65k+ ones will not display). I've tested this many ways for hours(if not days) to arrive at this conclusion
I know it's related to a an unsigned 32bit integer (thank you Cavedude), but don't know where or how to change. If we could fix this, all merchants will hold and display items tell server reset.

Derision 09-21-2008 10:38 AM

Fixes some merchants not displaying player sold items. Discussion: http://eqemulator.net/forums/showthread.php?t=26292

You could try changing:

client.h, around line 296:

From:
Code:

void    BulkSendMerchantInventory(int merchant_id, int16 npcid);
To:
Code:

void    BulkSendMerchantInventory(int merchant_id, int npcid);
client_process.cpp, around line 798:

From:
Code:

void Client::BulkSendMerchantInventory(int merchant_id, int16 npcid) {
To:
Code:

void Client::BulkSendMerchantInventory(int merchant_id, int npcid) {
I didn't do much testing other than putting 1 temp item on 1 merchant, so I don't know if this will break anything.

Angelox 09-21-2008 10:39 AM

Thank you, thank you!
now I can sleep again :)

I'll run it for a while, tell you what happens

Angelox 09-23-2008 08:41 AM

This solution here works fine - Ive had it running on two servers with no problems. You might want to consider placing it in the source;
Small details like this are important; The way you log in to the server after patch day and find all the merchants clean (wonder what you might find new). Or the way a mob spawns, what he drops, how he reacts when engaged. At the end, it all comes together and gives you the 'Everquest Live' feeling.

EDIT:
You must have just stickied it! Thanks Trev :)

leslamarch 09-23-2008 08:53 AM

I have also been running this since it had been posted by Derision with no problems, works perfect :D
Thanks again

Angelox 09-23-2008 09:50 AM

The Revised Merchant List I posted here a few days ago, makes a great match for this code, since all you see mostly, is what the vendor should have and what players have sold .
One thing to know is, if the vendor has no items for sell, he won't show what you sell him. I've been going around my database adding the basic water and rations to empty vendor lists (at least tell I can add what they really should have).

Andrew80k 09-23-2008 12:24 PM

Angelox,

eqtraders.com does a great job of getting merchant data and making accessible. You probably already know this though. Putting it out there just in case...

Angelox 09-23-2008 01:07 PM

Quote:

Originally Posted by Andrew80k (Post 156700)
Angelox,

eqtraders.com does a great job of getting merchant data and making accessible. You probably already know this though. Putting it out there just in case...

Ahh! more slave work (data entry) !
O well, I'll give it a try thanks for the tip.


All times are GMT -4. The time now is 08:39 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.