Here you go.
code:
function OnEvent_OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
if(Messenger.MyStatus == 7)
{
ChatWnd.SendMessage("I'm Away!");
}
else if(Messenger.MyStatus == 6)
{
ChatWnd.SendMessage("I'm Idle!");
}
}
This one has a lot of flaws, for instance, if your contact sends you 2 messages, it will answer twice. You can replace the "I'm Away!" and "I'm Idle!" texts, just don't forget the quote-marks.