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

Documentation Area

Document Path: /doc/object/query_auto_load


Lfun:	query_auto_load - make an object autoload/store its values

Synopsis:
	string query_auto_load()

Description:
	The query_auto_load function enables an object to get loaded auto-
	matically when the player logs in again. The function is called
	before the player logs out and enables the item to store its (dynamic)
	values in the player. There are some important rules about how to use
	it:

	- It must not have any weight.
	- It must prevent the player from dropping it.
	- It must not be an actively usable item, like weapon or armour.
	- It must not help the player in combats.

	The idea with this feature is that a player can get a curse or member-
	ship, that will stick with him, even if he quits. The idea is not that
	the player will save his weapons etc. after logout.

	Not all MUDs allow wizards to write auto_load objects.

Return value:
	Query_auto_load must return a string of the form <file name>:<arg>
	where
	<file name> is the name of the file (whole path) that the object
		    will be cloned from
	<arg>       is the argument that will be passed to init_arg when
	            the player logs on and thus the object is cloned

	The colon (:) is absolutely neccessary even if <arg> is empty.

Examples:
	string decay;
	query_auto_load() {
		return "players/nobody/auto:"+decay;
	}

See also:


This page was generated in LPC

Imprint / Impressum