function SellBrickData::onActivate(%obj, %player, %client, %pos, %vec)
{
if(%client.ore <= 1)
{
%client.gold += %client.ore;
messageClient(%client'',"\c6You got \c3" @ %client.ore @ " \c6gold and you now have \c3" @ %client.gold @ "\c6 gold.");
%client.ore = 0;
}
messageClient(%client,'',"\c3You need more than 1 ore to sell ore.");
Parent::OnActivate(%obj, %player, %client, %pos, %vec);
}