kfritz411

Member
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?
 
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 :'(
 
public override void VendorBuy(Mobile from)
{
Account acct=(Account)from.Account;
bool HasSquire = Convert.ToBoolean(acct.GetTag("HasSquire"));
if (!HasSquire)
{
return;
}
base.BaseVendor(from):
}
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 155 Online
    • 273 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 106 Online
    • 190 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 78 Online
    • 137 Peak
  • Insane UO
    Endless Journey
    • Players
    • 75 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 25 Online
    • 85 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 21 Online
    • 30 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 20 Online
    • 32 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 19 Online
    • 48 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 18 Online
    • 172 Peak
  • Arth
    Custom (Modern)
    • Players
    • 18 Online
    • 34 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back