ServUO - Restrict Buying From Vendor

kfritz411

Citizen
Working on a few things and had an idea that I don't know how to implement......

Special vendor that requires an "Account Tag" in order for players to purchase goods.

I know how to add the account tag, just not sure how to make the vendor validate that tag exists when player attempts to use "vendor buy" or the context selection.....

any ideas out there?
 

kfritz411

Citizen
And how would I do that lol. I don't see anything in the specific vendor, looks like all that's built in base vendor. The context for buy is super huge, no idea what to override or where :'(
 

DragnMaw

Citizen
public override void VendorBuy(Mobile from)
{
Account acct=(Account)from.Account;
bool HasSquire = Convert.ToBoolean(acct.GetTag("HasSquire"));
if (!HasSquire)
{
return;
}
base.BaseVendor(from):
}