void main()
{
    string sSayThis;
    int iTalkVolume = TALKVOLUME_TALK;
    int iTalkFlag = 0;
    object oPC = GetNearestCreature( CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC );
    ClearAllActions();
    if ( GetDistanceToObject(oPC) < 8.0 && !GetIsDead(oPC) ) {
        int nRandom = d8(1);
        if (nRandom == 1){
            sSayThis = "This is no place for you.";}
        else if (nRandom == 2){
            sSayThis = "Pick up a hammer instead of staring at me.";}
        else if (nRandom == 3){
            sSayThis = "Watch for the giants in the mountains.";}
         else if (nRandom == 4){
            sSayThis = "You don't look like a miner to me.";}
         else if (nRandom == 5){
            sSayThis = "Work, work, work.";}
         else if (nRandom == 6){
            sSayThis = "I can't wait till the shift is over.";}
         else if (nRandom == 7){
            sSayThis = "Trading this ore has been good for our village.";}
      else if (nRandom == 8) {
         sSayThis = "A good flow of ore here.";}
        ActionSpeakString(sSayThis, iTalkVolume);
    }
    else {
        ActionAttack(GetNearestObjectByTag("glacial_stones"), FALSE);
    }
}