Doat

     doat - syntax: doat(location,"action",options) 

Used to allow the mob to perform an action in a location other than its current room.

If the first argument is a ROOM type variable or a room key, the action is performed in that location. If the first argument is a CH type variable, the action is performed in the room that character is in.

If the first argument is a mob key, the first of that mob found is used as the location. You must also set the LP_MOBONLY option so the MUD knows the key argument is intended to be a mob key and not a room key.

If the first argument is a name, an attempt is made to locate that target. The scope of the search can be limited using the options below.

The options available with doat are:

   LP_SEEALL No visibility checks, if the target exists the command will be executed. 
   LP_PLRONLY Search for a player only. Used only when CH is a name. Removes the need for doatplr. 
   LP_ZONEONLY Look for targets in current area only. Used only when CH is a name. 
   LP_MOBONLY When used with name, means search mobs only. When CH is a key, tells the mud it is intended to be a mob key and not a room key. 


   --- Imaginary greet prog to annoy Lasher in multiple ways.
   --- warzone-0 is the key of Lasher's imm room.
   doat("warzone-0","say Hi Lasher! ")

   --- next line could fail if another mob has keyword 'lasher'
   doat("lasher","*smile") 

   --- Will only target a player. 
   doat("lasher","*chuckle",LP_PLRONLY)