Results 1 to 3 of 3

Thread: usedslots :)

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    usedslots :)

    i wanna know how many slots are used,

    The following properties can be appended to a container pointer (ie: getcontainer(0).isopen) and return a value as defined
    .usedslots (int): Returns the count of items in the container. but how?


    i tried with:

    LootBpId = 'Moon Backpack'
    if LootBpId.usedslots = 20 then
    .......
    end

  2. #2
    Normal User
    Join Date
    Aug 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thanks to all, i get it
    it work like this:

    getcontainer(2).usedslots


    number of container, it dont work with the name of the container only with his number

  3. #3
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    local LootBpId 'Moon Backpack'

    if (getcontainer(LootBpId).usedslots == 20then
        
    --execute action
    end 

Posting Permissions

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