EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   Merchant selling cap (https://www.eqemulator.org/forums/showthread.php?t=38380)

knight-mare 06-12-2014 12:39 PM

Merchant selling cap
 
so i made some merchants to sell items.... i populated them but it seems they have a cap on the amount of items they can sell/list....

how would i raise this limit?

provocating 06-12-2014 02:02 PM

Strange I was thinking about posting the exact same question. It would really be nice to have this as a server variable.

knight-mare 06-12-2014 02:19 PM

either that or a script i could maybe run? ive hunted around and cant see anything

NatedogEZ 06-12-2014 02:57 PM

I think this is limited because the client can only see a certain number of items on a merchant.. but not 100% sure on that.. if you want to mess with it.. you can though :p


client_process.cpp
Code:

void Client::BulkSendMerchantInventory(int merchant_id, int npcid) {
        const Item_Struct* handyitem = nullptr;
        uint32 numItemSlots=80; //The max number of items passed in the transaction.
        const Item_Struct *item;
        std::list<MerchantList> merlist = zone->merchanttable[merchant_id];



It seems other merchants like alternate currency ones can list up to 255 items.. (i think)

Uleat 06-12-2014 03:26 PM

Well..I know that bazaar items are limited to 80 on UF- clients. RoF+ raised this limit to 200.

I would HIGHLY suspect that merchant limits also reflect this.

If you were to raise the limit passed either of these for their respective clients, you will either not see the items..or more likely..crash the client.

Each item is assigned to a slot (like your inventory)..so, pushing items to slots that don't exist is not a good thing.

(The RoF+ limit can not be addressed very efficiently in the current code...)

knight-mare 06-12-2014 03:38 PM

well the main thing i wanted to do was to have spell merchants for each class... selling every spell up to level 50 this worked fine with bst but not shaman.....

instead ive just set-up a scriber only problem i have is i want him to charge but no idea how to do it

sorvani 06-13-2014 01:44 PM

Just add a second merchant for shamans

demonstar55 06-13-2014 02:12 PM

Live have the spell merchants in PoK set up to sell everything (well, to a certain expansion at least)

They're split up as 1-25, 26-50, 51-60, 61-70, 71-80, and 81+. I'm pretty sure that's how it's done for each class, so you'll probably have to split them up like that.


All times are GMT -4. The time now is 10:18 PM.

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