icreator Posted March 30, 2011 Share Posted March 30, 2011 avatar.GetItemBundleInfo( itemId ) Если предмет является бандлом, то возвращает таблицу с информацией о бандле и список предметов, входящих в бандл. -- библиотека: avatar -- объявление: function GetItemBundleInfo( itemId ) -- параметры: itemId: ObjectId (not nil) - идентификатор предмета -- возвращаемые значения: table or nil - таблица с информацией о бандле или nil (если предмет - не бандл). Поля: bundle: table - описание бандла: name: WString - название бандла description: WString - описание бандла descriptionLong: WString - длинное описание бандла items: table of ObjectId - индексированный с 0 список идентификаторов предметов, входящих в бандл -- пример: local bundleInfo = avatar.GetItemBundleInfo( itemId ) if bundleInfo then LogInfo( bundleInfo.name ) local itemsIds = bundleInfo.items end Quote Link to comment Share on other sites More sharing options...
Guest Hommit Posted March 30, 2011 Share Posted March 30, 2011 быть может, сундуки с набором предметов - типа продававшегося набора школьника? Quote Link to comment Share on other sites More sharing options...
Loss Posted March 30, 2011 Share Posted March 30, 2011 Я тоже думал что это сундук. Но почему то все попытки проверить возвращали nil Quote Link to comment Share on other sites More sharing options...
Ciuine Posted March 30, 2011 Share Posted March 30, 2011 I don't have this in my 1.0.4 API, so maybe this is a future/current idea involving people being able to "bundle" up a collection of items for sending and such? Empty bundles would produce nil results, IE "There's nothing in this package, drag items into it to add" type deals. Then you could have it show a list of items in the item tooltip for what is inside the bundle. Like known costume chests showing, "Headpiece = Blah, Suit = Blah" so on.. Like what Hommit said. Quote Link to comment Share on other sites More sharing options...
Ciuine Posted March 30, 2011 Share Posted March 30, 2011 Double double. Quote Link to comment Share on other sites More sharing options...
Ciuine Posted March 30, 2011 Share Posted March 30, 2011 Double post, "The url you requested is not found on this server".. Sorry. Quote Link to comment Share on other sites More sharing options...
Recommended Posts