Results 1 to 5 of 5

Thread: About getlootitems()

  1. #1
    iBot User pepekoerich's Avatar
    Join Date
    Jun 2012
    Posts
    425
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    44 Post(s)
    Reputation
    21
    Rep Power
    5

    About getlootitems()

    I can use this to use in the deposit action? Instead of put item by item i can put the getlootitems()?

    like

    PHP Code:
    local CONFIG = {
        
    LOOT_BACKPACK "blue backpack",
     
        
    STACKABLE_BACKPACK "grey backpack",
        
    STACKABLE_BACKPACK_AMOUNT 2,
     
        
    NOT_STACKABLE_BACKPACK "fur backpack",
        
    NOT_STACKABLE_BACKPACK_AMOUNT 4,
     
        
    DEPOSIT_ITEMS getlootitems(),

    it's good to be back

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    You would be able to.

    What you can also do is use the properties of the bp itself to just move any items inside of it to either a stackable or non-stackable depo bp.

    have a read here
    http://www.tibiaibot.com/forum/showt...-Documentation

  3. #3
    iBot User pepekoerich's Avatar
    Join Date
    Jun 2012
    Posts
    425
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    44 Post(s)
    Reputation
    21
    Rep Power
    5
    pink, i tried to do this but i didn't succes, would you be able to show this to me?
    it's good to be back

  4. #4
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    getlootitems() its not single table, its data structrure

    this may help you understand this function

    Lua Code:
    local lootqtd = getlootitems().count-1
    for i=1,lootqtd do
        print(getlootitems()[i].name)
    end

  5. #5
    iBot User pepekoerich's Avatar
    Join Date
    Jun 2012
    Posts
    425
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    44 Post(s)
    Reputation
    21
    Rep Power
    5
    hmm, i understand you but, i cant put this in practice, too hard for me, but thanks for the help guys
    it's good to be back

Posting Permissions

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