If we want to have the Blade Care Kit sold by blacksmiths only, the following pieces of code are relevant.
PROGRAM\InternalSettings.h:
And especially the use of IT_TYPE_BLACKSMITH in PROGRAM\ITEMS\items_utilite.c .
Still trying to figure out how to use this in a non-messy way though.
We can do a manual GiveItem2Character in that function, but that would not be pretty.
PROGRAM\InternalSettings.h:
Code:
// Itemtrader type defines (STRING)
#define IT_TYPE_GENERAL "General" // general trader type, catchall default
#define IT_TYPE_STORE "Store" // shopkeeper type
#define IT_TYPE_STALL "Stall" // item trader type
#define IT_TYPE_SNEAKY "Sneaky Trader" // vegabonds and special wandering traders
#define IT_TYPE_BLACKSMITH "Smith"
#define IT_TYPE_JEWELER "Jeweler"
#define IT_TYPE_TAILOR "Tailor"
#define IT_TYPE_BOOKSELLER "Bookseller"
#define IT_TYPE_MAPMAKER "Mapmaker"
#define IT_TYPE_CURIO "Curio"
#define IT_TYPE_TATTOO "Tattooist"
#define IT_TYPE_MEDICAL "Apothecary"
Still trying to figure out how to use this in a non-messy way though.
We can do a manual GiveItem2Character in that function, but that would not be pretty.