Results 1 to 5 of 5

Thread: The (pretty much) Ultimate Depot Depositer

  1. #1
    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

    The (pretty much) Ultimate Depot Depositer

    This will sort and items in your loot bp into the depot, regardless of your loot list and what the items are.

    You can easily put this action into any script, or even change scripts mid hunt and still have it deposit all your items.

    Lua Code:
    -- Setup
    local lootBp = "Jewelled Backpack"
    local stackableBp = "Blue Backpack"
    local nonstackableBp = "Red Backpack"
     
    -- Engine (Do Not Edit)
    local lootContainer = getcontainer(lootBp)
    local lootContainerSlots = lootContainer.usedslots - 1
     
    for i = 1, 4 do
    	for j = 0, lootContainerSlots do
    		if itemproperty(lootContainer.items[j].id).iscumulative then
    			if itemproperty(lootContainer.items[j].id).id ~= 3035 and itemproperty(lootContainer.items[j].id).id ~= 3031 then
    				depotdeposit(stackableBp, itemproperty(lootContainer.items[j].id).name)
    				wait(300,500)
    			end
    		else
    			if itemproperty(lootContainer.items[j].id).id ~= itemid(lootBp) then
    				depotdeposit(nonstackableBp, itemproperty(lootContainer.items[j].id).name)
    				wait(300,500)
    			end
    		end
    	end
    end

  2. #2
    Moderator Furieri's Avatar
    Join Date
    Jun 2012
    Location
    Vitoria - ES / Brasil
    Posts
    792
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    199 Post(s)
    Reputation
    158
    Rep Power
    7
    WOW, 20 Lines of code EXCELENT will test it!!

  3. #3
    Premium User Norkk's Avatar
    Join Date
    Jan 2013
    Location
    BH - MG - Brazil
    Posts
    1,167
    Mentioned
    78 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    207 Post(s)
    Reputation
    135
    Rep Power
    7
    Really amazing!
    My Scripts - Norkk Free Scripts
    New Project - Norkk Project

    EK 208 sold to @yhuel

  4. #4
    iBot User
    Join Date
    Jul 2012
    Posts
    71
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    21 Post(s)
    Reputation
    20
    Rep Power
    5
    I am sorry i am a little bit confused on what this script does. does it sort all loot into different bps to be sold to the appropriate npcs? sorry for my noobness

    Quote Originally Posted by pink_panther View Post
    This will sort and items in your loot bp into the depot, regardless of your loot list and what the items are.

    You can easily put this action into any script, or even change scripts mid hunt and still have it deposit all your items.

    Lua Code:
    -- Setup
    local lootBp = "Jewelled Backpack"
    local stackableBp = "Blue Backpack"
    local nonstackableBp = "Red Backpack"
     
    -- Engine (Do Not Edit)
    local lootContainer = getcontainer(lootBp)
    local lootContainerSlots = lootContainer.usedslots - 1
     
    for i = 1, 4 do
    	for j = 0, lootContainerSlots do
    		if itemproperty(lootContainer.items[j].id).iscumulative then
    			if itemproperty(lootContainer.items[j].id).id ~= 3035 and itemproperty(lootContainer.items[j].id).id ~= 3031 then
    				depotdeposit(stackableBp, itemproperty(lootContainer.items[j].id).name)
    				wait(300,500)
    			end
    		else
    			if itemproperty(lootContainer.items[j].id).id ~= itemid(lootBp) then
    				depotdeposit(nonstackableBp, itemproperty(lootContainer.items[j].id).name)
    				wait(300,500)
    			end
    		end
    	end
    end

  5. #5
    Normal User Facppf's Avatar
    Join Date
    Dec 2012
    Location
    Brazil
    Posts
    1,429
    Mentioned
    60 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    220 Post(s)
    Reputation
    236
    Rep Power
    9
    Quote Originally Posted by Dannypilot1 View Post
    I am sorry i am a little bit confused on what this script does. does it sort all loot into different bps to be sold to the appropriate npcs? sorry for my noobness
    No, this action will just deposit your "stackable" and "non-stackable" items (that is in your loot BP), into your depot in 2 different BP's.

    If you're loking for a "loot sorter", check this link: http://www.tibiaibot.com/forum/showt...85-Loot-Sorter by pink_panther.

    Any other doubt don't hesitate to contact us. Will be a pleasure to help you!

    Kind regards,
    Fac~

    ~•~ Proud Ex-Moderator of iBot. -

Posting Permissions

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