I don't think you can do if(usr.loc==/area/whatever) like that.
Of course you can't, that compares an object with a type path. Rather, you'll want to check the object's type var to see if its exactly of that direct type, or use the istype() proc to see if its derived of a certain type.
Of course you can't, that compares an object with a type path. Rather, you'll want to check the object's type var to see if its exactly of that direct type, or use the istype() proc to see if its derived of a certain type.