MUDL:npc in area

From SlothMUD Wiki
Jump to: navigation, search


Summary

Function Name npc_in_area
Settable No
Returns Character Array


Parameter Options
Area


This function returns a list of all NPCs in the specified area.


Example

setproc <parent> # on_foo
foreach(npc_in_area(%area), %9,
(
    msg_room(%room, name(%9))
)),

return(true)
@


setproc <parent> # PROC_ENABLED 1