Results 1 to 1 of 1

Thread: Loot dropper help

  1. #1
    Normal User
    Join Date
    Sep 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Loot dropper help

    Im trying to make my script put all my loot into backpacks that I have put on the ground in advance. (So that there is a backpack inside a backpack inside a backpack etc.) then have my bot walk up to them when lootbackpack is full and empty it into the ground backpacks. If ground backpacks dont have slots it opens a new one and if there is no new backpack to open it drops them on the ground tile where the backpack is. The only problem is that I dont know the function to drop to a certain tile and need help with this. (And pointing out any improvements would help)
    My drop script so far:
    Code:
    local DROP_LIST = {"Hatchet", "Chain Armor", "ITEM", "ITEM2", "ETC"}
    -- In setup: DROP_X, DROP_Y, DROP_Z, LOOT_BP name and LOOTDROP_BP name
    wait(200,400)
    reachlocation(DROP_X, DROP_Y, DROP_Z)
    wait(200,400)
    useitemon(LOOTDROP_BP, DROP_X, DROP_Y, DROP_Z)
    wait(200,400)
    resizewindows()
    wait(200,400)
    for i, DROP_ITEM in ipairs(DROP_LIST) do
    	while (itemcount(DROP_ITEM, LOOT_BP)>0) then
    		if (getcontainer(LOOTDROP_BP).usedslots < getcontainer(LOOTDROP_BP).maxslots) then -- PUT INSIDE GROUND BACKPACK IF SLOTS OPEN
    			moveitems(DROP_ITEM, LOOT_BP, LOOTDROP_BP)
    			wait(200,400)
    		else if (itemcount(LOOTDROP_BP,LOOTDROP_BP)>0) then -- IF NO SLOTS OPEN NEW BACKPACK INSIDE GROUND BACKPACK IF AVAILABLE
    			openitem(LOOTDROP_BP, LOOTDROP_BP)
    			wait(200,400)
    		else
    			-- PUT DROP_ITEM ON DROP_X, DROP_Y, DROP_Z SQM
    		end
    	end
    end
    wait(200,400)
    Last edited by Murmelinen; 09-23-2013 at 05:59 PM.

Posting Permissions

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