XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 5 of 5

Thread: Dropping flasks while hunting

  1. #1

    Join Date
    Apr 2013
    Location
    Sweden
    Posts
    73
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Dropping flasks while hunting

    Hello. I have searched on the forums after scripts to make the bot drop flasks after use but I can't find any guide or tutorial on how to install the script.
    Please help tell me how to do step by step :P
    I found this script:
    Code:
    function dropItem(id, cnt) 
        local cont = Container.GetFirst() 
    
        while (cont:isOpen()) do 
            for spot = 0, cont:ItemCount() do 
                local item = cont:GetItemData(spot) 
                if (item.id == id and item.count >= cnt) then 
                        cont:MoveItemToGround(spot, Self.Position().x, Self.Position().y, Self.Position().z) 
                        return true 
                end 
            end 
    
            cont = cont:GetNext() 
        end 
         
        return false 
    end 
    
    
    while (true) do 
        if (dropItem(285,1)) then
            wait(30000, 45000) --Since we've already dropped a stack, wait a bit of time before trying to drop another
        else
            wait(2000) --havent dropped shit, wait2 seconds and try again. No need for randomization since we didn't do anything
        end
    end

  2. #2
    Senior Member nachoo123's Avatar
    Join Date
    Jan 2013
    Location
    Sweden
    Posts
    1,254
    Mentioned
    37 Post(s)
    Tagged
    0 Thread(s)
    1. Create a new text-document on your desktop.
    2. Paste the script in the text-document.
    3. Save the file with whatever name you want, but keep it mind the file must end with .lua
    4. Locate your Xenobot folder and open it, now you will find another folder called "Scripts". That's the folder you should put the text-document you just created.
    5. Inject Xenobot
    6. Go to "Settings"
    7. Go to "Scripter"
    8. You will find the script you just created on the left side, where it says "Found Scripts"
    9. Now execute the script you created and wooola, you are ready to drop them vials!

  3. #3

    Join Date
    Apr 2013
    Location
    Sweden
    Posts
    73
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Awesome thanks! :>

  4. #4
    Senior Member nachoo123's Avatar
    Join Date
    Jan 2013
    Location
    Sweden
    Posts
    1,254
    Mentioned
    37 Post(s)
    Tagged
    0 Thread(s)
    You're welcome my friend

  5. #5

    Join Date
    Jun 2016
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    isnt there a way to drop the flask to the east or west? if im standing still

Posting Permissions

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