0% found this document useful (0 votes)
3 views2 pages

Bot Inventory Management Script

The document outlines a script for a bot that interacts with an inventory system and performs actions based on item types. It includes functionality for the bot to communicate, drop unwanted items, and conduct a giveaway for a specific item. The bot alternates its movement and manages its auto-collection feature throughout the process.

Uploaded by

duarrrmemek20
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Bot Inventory Management Script

The document outlines a script for a bot that interacts with an inventory system and performs actions based on item types. It includes functionality for the bot to communicate, drop unwanted items, and conduct a giveaway for a specific item. The bot alternates its movement and manages its auto-collection feature throughout the process.

Uploaded by

duarrrmemek20
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Bot = getBot()

Inventory = Bot:getInventory()
Botx = Bot.x
Boty = Bot.y

Bot:setBubble([Link])
sleep(1500)
Bot:say("Hello fellow Human!")
Bot:setBubble([Link])

Bot.auto_collect = true

Broken = false
Movement = "UP"
while Broken == false do

for i,Item in pairs(Inventory:getItems()) do


if [Link] == 2 or [Link] == 3 or [Link] == 5032 or [Link] == 5033 then
Bot:setBubble([Link])
Bot:say("Ew, yucky dirt! I'm moving.")
sleep(1250)
Bot:setBubble([Link])
Bot.auto_collect = false
sleep(1250)
Bot:drop([Link],200)
sleep(750)
Bot:setBubble([Link])
if Movement == "UP" then
Bot:moveUp(2)
Movement = "Down"
else
Bot:moveDown(2)
Movement = "UP"
end
sleep(1000)
Bot.auto_collect = true
elseif [Link] == 242 then
Bot:setBubble([Link])
sleep(1500)
NumberOfWLS = Inventory:findItem([Link])
Bot:say("I just got "..tostring(NumberOfWLS).." Wls! I will do a wl
giveaway now!")
Bot:setBubble([Link])
sleep(750)
Bot:setBubble([Link])
sleep(1500)
Bot:say("I have no empathy for you if you did not want them given
away.")
Bot:setBubble([Link])
sleep(750)
Bot.auto_collect = false

for i=1,NumberOfWLS do
Path = Bot:getPath(Botx+[Link](-10,10),Boty+[Link](-10,10))
Bot:moveTile(Path)
sleep(150)
Bot:fastDrop([Link],1)
sleep(150)
end
sleep(500)
Bot:moveTile(Botx,Boty)

Bot:setBubble([Link])
sleep(1500)
Bot:say("Yippee! Enjoy your giveaway!")
sleep(100)
Bot:say("/cheer")
Bot:setBubble([Link])
sleep(2500)
Bot.auto_collect = true
end
end
sleep(150)
end

You might also like