+ Reply to Thread
Results 1 to 8 of 8

Thread: (Utility.Item.Slot.Bank("bag",bag_number) => change in functionality ?

  1. #1
    Rift Disciple
    Join Date
    Mar 2011
    Posts
    130

    Default (Utility.Item.Slot.Bank("bag",bag_number) => change in functionality ?

    I used to have this line to get the size of a bag slot in the bank :

    Code:
    local bag_size = (Utility.Item.Slot.Bank("bag",bag_number))["slots"]
    This worked until yesterday, point at which it now returns nil instead.

    Did something change ?

  2. #2
    Rift Disciple
    Join Date
    Mar 2011
    Posts
    130

    Default

    to add further details:

    Code:
    print(Utility.Item.Slot.Bank("bag",1))
    would yield the bank bag slot 1's ID, whereas before I would get a table with some values.

  3. #3
    Plane Touched Verea's Avatar
    Join Date
    Feb 2011
    Location
    Netherlands
    Posts
    200

    Default

    Hey, unless Zorba is ahead of me, I'll have a look into this for you; as I ran into the same problem. ^^
    Verae, level 60 Cleric @ Blightweald, Guild Master of Tea Club
    I want to fly like an eagle, to the sea.
    I want to fly like an eagle, let my spirit carry me.

  4. #4
    Rift Disciple
    Join Date
    Mar 2011
    Posts
    130

    Default

    Thanks, I appreciate.

  5. #5
    Plane Walker Imhothar's Avatar
    Join Date
    Feb 2012
    Posts
    439

    Default

    According to the documentation Utility.Item.Slot.Bank() is supposed to return a slot specifier, so I assume it returning the item table previously was a bug which got fixed. Now you need:
    Code:
    bag_size = Inspect.Item.Detail(Utility.Item.Slot.Bank("bag", bag_number)).slots

  6. #6
    Rift Disciple
    Join Date
    Mar 2011
    Posts
    130

    Default

    wouldn't that inspect the actual bag ?
    That's the intended way to do it now ?

  7. #7
    Plane Walker Imhothar's Avatar
    Join Date
    Feb 2012
    Posts
    439

    Default

    Yes, it is. Items which can act as containers have a "slots" field with their size. By inspecting the item in the bag slot you get its size.

    The Utility.Item.Slot.* functions all return slot identifiers, not actual items. That is what Inspect.Item.Detail is for.

  8. #8
    Plane Touched Verea's Avatar
    Join Date
    Feb 2011
    Location
    Netherlands
    Posts
    200

    Default

    Quote Originally Posted by Imhothar View Post
    Yes, it is. Items which can act as containers have a "slots" field with their size. By inspecting the item in the bag slot you get its size.

    The Utility.Item.Slot.* functions all return slot identifiers, not actual items. That is what Inspect.Item.Detail is for.
    I am 99.9999% positive this is because of Source Machines
    Verae, level 60 Cleric @ Blightweald, Guild Master of Tea Club
    I want to fly like an eagle, to the sea.
    I want to fly like an eagle, let my spirit carry me.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts