void main()
{
int nEvent = GetUserDefinedEventNumber();
if (nEvent == 1002) // OnPerceive event
{
object oPC = GetLastPerceived();

string sSayThis;

int iTalkVolume = TALKVOLUME_TALK;

int iRollSix = d6(1);

int iTalkFlag = 0;

{

if(d100(1) > 75 && GetIsPC(oPC) && !(GetIsEnemy(oPC))) //Gives this script a 30% chance of completing

    {                       //Its execution.  Call it my anti-spam code.  (c:

            sSayThis = "How long must I wait for an audience.";

        ActionSpeakString(sSayThis, iTalkVolume);       //Make the NPC talk

        }  //End If Statement

    }  //End If Statement

}  //End Main
}

