public override void OnResponse( Mobile from, string text )
{
if ( !m_VI.Valid || !m_Vendor.CanInteractWith( from, true ) )
return;
string firstWord;
int sep = text.IndexOfAny( new char[] { ' ', ',' } );
if ( sep >= 0 )
firstWord = text.Substring( 0, sep );
else
firstWord = text;
int price;
string description;
if ( int.TryParse( firstWord, out price ) )
{
if ( sep >= 0 )
description = text.Substring( sep + 1 ).Trim();
else
description = "";
}
else
{
price = -1;
description = text.Trim();
}
SetInfo( from, price, Utility.FixHtml( description ) );
}