merchant_type

General support forum. If you require assistance and your problem doesnt fall in any of the other categories, this is the forum for you!

Moderator: Team Members

Forum rules
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
Post Reply
User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

merchant_type

Post by Gangrenous » Sat Mar 30, 2019 6:36 am

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 ?
Resident Dirty Hippy

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: merchant_type

Post by Ememjr » Sat Mar 30, 2019 6:44 am

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

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: merchant_type

Post by Gangrenous » Sat Mar 30, 2019 7:29 am

So are those base 0?

0,1,2,3, etc?
Resident Dirty Hippy

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: merchant_type

Post by Ememjr » Sat Mar 30, 2019 7:58 am

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

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: merchant_type

Post by Gangrenous » Sat Mar 30, 2019 7:35 pm

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.
Resident Dirty Hippy

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests