A
/ \ _ Play Now Nemesis on
| | | | _______ _ _ _______ _______ _ _______
| |\ | | | ____| | \ / | | ____| / ____| | | / ____|
/-------/-------------------------------------------------------------------,
O= Home <=XX| About News Pics Adventurers Wizards Download Connect >
\-------\-------------------------------------------------------------------'
| | \ | | |____ | | | | | |____ ___ \ \ | | ___ \ \
| | \_| |_______| |_| |_| |_______| |_______/ |_| |_______/
\ /
V
Documentation Area
Document Path: /doc/object/forbid_enter_container
Lfun: forbid_enter_container - forbid an item to enter a container
Synopsis:
int forbid_enter_container(object container)
Description:
The forbid_enter_container function is called in an item before
it enters a container, for example if a player wants to put it into
a bag.
Return value:
Return 1, if the item mustn't enter the container, 0 if it may.
Examples:
An item that doesn't enter a bag:
forbid_enter_container(con) {
if (con->id("bag")) return 1;
}
See also:
This page was generated in LPC
Imprint / Impressum