Jump to content

Digest October-December

We talk about what was done and updated in the past month. We help keep abreast of events.

December November October

Servers monitoring and the Addons Editor

We present you two legends. All dreams come true.

Servers monitoring The Addons Editor

A statistics bot for Telegram

Convenient analytics right on your phone.

Read more

Game tooltips

Tooltips provide a way for 3rd party fansites and extensions to display detailed information on mouseover.

Read more

The Addons Updater

Let us to introduce the addons updating software and to share the details

Read more Download

Как получить подробную информацию по каждому предмету в банке?


anlide

Recommended Posts

Подскажие пожалуйста, при открытом банке пытаюсь собрать информацию о его содержимом:

for i = 0, depositeBox.GetSlotCount() - 1 do

local itemId = depositeBox.GetItemId( i )

if itemId then

test = object.GetName( itemId )

end

end

Удалось получить имя каждого предмета в банке. Хотелось бы получить подробную информацию по каждому предмету в банке. Подскажите пожалуйста как это сделать?

Link to comment
Share on other sites

Подскажие пожалуйста, при открытом банке пытаюсь собрать информацию о его содержимом:

for i = 0, depositeBox.GetSlotCount() - 1 do

local itemId = depositeBox.GetItemId( i )

if itemId then

test = object.GetName( itemId )

end

end

Удалось получить имя каждого предмета в банке. Хотелось бы получить подробную информацию по каждому предмету в банке. Подскажите пожалуйста как это сделать?

Разобрался. Нужно использовать

containerLib

Доступ к банку даже при закрытом банке.

Link to comment
Share on other sites

Разобрался. Нужно использовать

containerLib

Доступ к банку даже при закрытом банке.

даже при закрытом можно? ого! это интересно

Link to comment
Share on other sites

я думала так:

for i, slotType in enumContainers do
 if containerLib.IsOpen( slotType ) then
  for ii, itemId in containerLib.GetItems( slotType ) do
..э.
  end
 end
end

Link to comment
Share on other sites

Удалось получить имя каждого предмета в банке. Хотелось бы получить подробную информацию по каждому предмету в банке. Подскажите пожалуйста как это сделать?

Для получения более подробной информации по каждому предмету можно пользоваться функциями вроде avatar.GetItemInfo( itemId ) avatar.GetItemMetaInfo( itemId ) enchant.GetEnchantInfo( enchantId ) и т.п. и т.д. в зависимости от того что конкретно нужно получить.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use