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

Documentation Area

Document Path: /doc/object/forbid_leave_container


Lfun:	forbid_leave_container - forbid an item to leave a container

Synopsis:
	int forbid_leave_container(object container)

Description:
	The forbid_leave_container function is called in an item before
	it leaves a container, for example if a player wants to take it out.

Return value:
	Return 1, if the item mustn't leave the container, 0 if it may.

Examples:
	An item that doesn't leave a bag:

	forbid_leave_container(con) {
		return con->id("bag");
	}

See also:


This page was generated in LPC

Imprint / Impressum