if ( !bought && m_AcceptedCurrency == AcceptedCurrency.Default )
{
double left = Currency.Consume( buyer, CurrencyGroups.Default, totalCost * 1, totalCost >= 2000, CurrencyType.Coins, CurrencyType.Smart );
if ( left > 0 )
SayTo( buyer, 500192 );
else
bought = true;
}
else if ( !bought && m_AcceptedCurrency == AcceptedCurrency.Tokuno )
{
double left = Currency.Consume( buyer, CurrencyGroups.Tokuno, totalCost * 1, totalCost >= 2000, CurrencyType.Coins, CurrencyType.Smart );
if ( left > 0 )
SayTo( buyer, 500192 );
else
bought = true;
}
else if ( !bought && m_AcceptedCurrency == AcceptedCurrency.Luna )
{
double left = Currency.Consume( buyer, CurrencyGroups.Luna, totalCost * 1, totalCost >= 2000, CurrencyType.Coins, CurrencyType.Smart );
if ( left > 0 )
SayTo( buyer, 500192 );
else
bought = true;
}
else if ( !bought && m_AcceptedCurrency == AcceptedCurrency.Umbra )
{
double left = Currency.Consume( buyer, CurrencyGroups.Umbra, totalCost * 1, totalCost >= 2000, CurrencyType.Coins, CurrencyType.Smart );
if ( left > 0 )
SayTo( buyer, 500192 );
else
bought = true;
}