Check ACT flag (NPCs) or PLR flag (PCs).
See 'act_flags' and 'plr_flags' tables.
See flagcheck for syntax reference.
Example:
if mob:act("safe") then mob:say("I'm safe") end if ch:act("helper") then mob:say("You're a helper.") end