If I understand your problem then this would work:

Code:
sound statue_talk = <talk.wav>;
action statue
{
while(me != null)
{
if(vec_dist(my.x,player.x) < 80)
{
snd_play(statue_talk,100,0);
while(vec_dist(my.x,player.x) < 80)
{ sleep(3); } //wait until the player goes out of range
}
wait(1);
}
}