PDA

View Full Version : Dropping flasks while hunting



Ryuzaki
05-25-2013, 08:55 PM
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:
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

nachoo123
05-25-2013, 09:28 PM
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!

Ryuzaki
05-25-2013, 09:33 PM
Awesome thanks! :>

nachoo123
05-25-2013, 09:34 PM
You're welcome my friend :o

bazaar
07-04-2020, 09:10 PM
isnt there a way to drop the flask to the east or west? if im standing still