The integer constant AGENT_BUSY has the value 0x0800
integer AGENT_BUSY = 0x0800;
if (llGetAgentInfo( llGetOwner() ) & AGENT_BUSY) llSay(0, "Don't interrupt - I'm busy!");