npc_in_world

Settable:
no
Arguments:
integer
Return Value:
char array

Returns every mob in the world matching the given vnum. If you just want to know how many of something there are (a common use) you can say

   if(npc_in_world(1000),length(npc_in_world(1000)),0)

This function returns null if there aren't any. Therefore, if you just want to test for the presence of one or more in an if, you can say

   if(npc_in_world(1000), ...