How To Test For A Non-player
The 'isplayer(CH)' function tests if a character variable is a player. The old mobprog system had no concept of not. In Lua, you would just wrap a 'not' around it:
if not(isplayer(ch)) then say("I don't deal with mobs, shoo!") end