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) > 60 && GetIsPC(oPC) && !(GetIsEnemy(oPC))) //Gives this script a 30% chance of completing

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

    if(iRollSix != 0)       //Just in case a 0 slips in though I don't think

        {                   //It's possible.

        switch(iRollSix)    //Jump to the rolled statement number.

            {

            case 1:

            sSayThis = "Madness in great ones should not unwatched go.";

            break;

            case 2:

            sSayThis = "Some say his wit is diseased.";

            break;

            case 3:

            sSayThis = "They say he has locked himself in his chambers.";

            break;

            case 4:

            sSayThis = "His lordship has been acting strangely of late.";

            break;

            case 5:

            sSayThis = "I heard the priests of Helm have fallen from his favour as well.";

            break;

            case 6:

            sSayThis = "I hear Lord Maluradek is unwell";

            break;



            } //End Switch Statement

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

        }  //End If Statement

    }  //End If Statement

}  //End Main
}
}
