A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/lib/country


Simul efun: country - homeland or region of IP from where a player is logged in

Synopsis:
	mixed country(object ob)

Description:
	If the object <ob> was or is interactive (player/wizard) then this
	function returns the Country where the one is logged in from.
	In case it cannot be determined it returns the IP number.

Return value:
	returns a string like the country (e.g. "Germany") or a region (e.g.
	"Europe") or an IP address or 0; 

Examples:
	country(this_interactive()); // might return "Germany" or "Europe"
					or the IP address;
	country(find_living("biker"); // will return 0;

Note:
	If the object is not interactive and never was, then 0 is returned.

See also:


This page was generated in LPC

Imprint / Impressum