lua/wrappers/game/lua_character.cpp
/**
	 * Removes an item from the characters inventory.
	 * Returns true if the item was removed, false if the item was nil
	 * or if the item could not be found.
	 *
	 * @param am.item item The item to remove.
	 * @returns boolean True if removal was successful.
	 */
Removes an item from the characters inventory.
Returns true if the item was removed, false if the item was nil
or if the item could not be found.


Removes an item from the characters inventory . Returns true if the item was removed false if the item was nil or if the item could not be found .
int Character_remove_item(lua_State *lua)
	{
		Character *obj = castUData<Character>(lua, 1);
		if (obj)
		{
			Item *item = castUData<Item>(lua, 2);
			if (item)
			{
				lua_pushboolean(lua, obj->removeItem(item));
				return 1;
			}
			return LuaState::expectedArgs(lua, "remove_item", "am.item item");
		}
		return LuaState::expectedContext(lua, "remove_item", "am.character");
	}
int Character_remove_item ( lua_State * lua ) { Character * obj = castUData < Character > ( lua , 1 ) ; if ( obj ) { Item * item = castUData < Item > ( lua , 2 ) ; if ( item ) { lua_pushboolean ( lua , obj -> removeItem ( item ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Removes an item from the characters inventory.
Removes an item from the characters inventory .