lua/wrappers/game/lua_item.cpp
/**
	 * Sets the quest ID, any value higher than 0 is considered a valid ID.
	 *
	 * @param integer quest_id The new quest ID.
	 * @returns am.item This
	 */
Sets the quest ID, any value higher than 0 is considered a valid ID.
@param integer quest_id The new quest ID.
Sets the quest ID any value higher than 0 is considered a valid ID . @param integer quest_id The new quest ID .
int Item_quest_item_id(lua_State *lua)
	{
		Item *item = castUData<Item>(lua, 1);
		if (item)
		{
			if (lua_gettop(lua) == 1)
			{
				lua_pushinteger(lua, item->getQuestItemId());
				return 1;
			}
			else if (lua_isnum(lua, 2))
			{
				item->setQuestItemId(lua_tointeger(lua, 2));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "quest_item_id", "integer quest_id");
		}
		return LuaState::expectedContext(lua, "quest_item_id", "am.item");
	}
int Item_quest_item_id ( lua_State * lua ) { Item * item = castUData < Item > ( lua , 1 ) ; if ( item ) { if ( lua_gettop ( lua ) == 1 ) { lua_pushinteger ( lua , item -> getQuestItemId ( ) ) ; return 1 ; } else if ( lua_isnum ( lua , 2 ) ) { item -> setQuestItemId ( lua_tointeger ( lua , 2 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets the quest ID, any value higher than 0 is considered a valid ID.
Sets the quest ID any value higher than 0 is considered a valid ID .