Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > get_number

API Function: get_number

Summary:
get the mobile's number

Defined In LPC Object:
/usr/common/lib/mobile.c

Prototype:
int get_number(void)

Can Be Called By:
Anybody

Description:

Gets the mobile's object number, assigned by ObjNumD and MobileD.

This function isn't access-protected. You should access-protect your version of this and all other inherited functions, including upgraded() and destructed().

Return Value:

The integer object number or -1 if query failed.

Errors:
Usually none.

See Also: