Page 1 of 1
merchant_type
Posted: Sat Mar 30, 2019 6:36 am
by Gangrenous
Working on the editor, does anyone know the possibilities for merchant_type and what the options mean? I think it is probably a tiny int column. Not finding much on the forum. Maybe someone can check the current editor ?
Re: merchant_type
Posted: Sat Mar 30, 2019 6:44 am
by Ememjr
here are the current merchant types they can be joined together
s0 a merchant type 5 would sell spells but will not buy stuff from you
#define MERCHANT_TYPE_NO_BUY 1
#define MERCHANT_TYPE_NO_BUY_BACK 2
#define MERCHANT_TYPE_SPELLS 4
#define MERCHANT_TYPE_CRAFTING 8
#define MERCHANT_TYPE_REPAIR 16
#define MERCHANT_TYPE_LOTTO 32
Re: merchant_type
Posted: Sat Mar 30, 2019 7:29 am
by Gangrenous
So are those base 0?
0,1,2,3, etc?
Re: merchant_type
Posted: Sat Mar 30, 2019 7:58 am
by Ememjr
yes so
#define MERCHANT_TYPE_NO_BUY 1 bit 0 set
#define MERCHANT_TYPE_NO_BUY_BACK 2 bit 1 set
#define MERCHANT_TYPE_SPELLS 4 bit 3 set
#define MERCHANT_TYPE_CRAFTING 8 etc
#define MERCHANT_TYPE_REPAIR 16
#define MERCHANT_TYPE_LOTTO 32
and a regualr stard merchant would just by 0 no bits set
Re: merchant_type
Posted: Sat Mar 30, 2019 7:35 pm
by Gangrenous
Yeah, I was on my phone so did not see all the text. I ran a group by query and saw 0,1,8,16,32 but I figured 4 had to be in there somewhere.