Jump to content

Recommended Posts

Hi,

 

I'm new to this bot, so apologies if this question has been answered already.

 

is there an Auto Eat function? I'm struggling to see it. I've found the auto spell / heal function etc but not the auto eat one? (im planning on AFK training a sorc on a server I'm starting)

 

Kind Regards

Vesteras

Link to post
Share on other sites
5 hours ago, vesteras said:

Hi,

 

I'm new to this bot, so apologies if this question has been answered already.

 

is there an Auto Eat function? I'm struggling to see it. I've found the auto spell / heal function etc but not the auto eat one? (im planning on AFK training a sorc on a server I'm starting)

 

Kind Regards

Vesteras

 

local foodID = 3725		-- ID of the food you want to use. (Brown Mushroom = 3725)
local waitTime = 300000	-- Time you want to wait after eating before allowing the script to run again. (1000 = 1 second)


if g_game.getLocalPlayer():getItemsCount(foodID) > 0 then
	g_game.useInventoryItem(foodID)
end
sleep(waitTime)

auto(200,400)


 

Edited by Tokumei
Formatting
Link to post
Share on other sites
On 4/26/2022 at 1:15 AM, Tokumei said:

 

local foodID = 3725		-- ID of the food you want to use. (Brown Mushroom = 3725)
local waitTime = 300000	-- Time you want to wait after eating before allowing the script to run again. (1000 = 1 second)


if g_game.getLocalPlayer():getItemsCount(foodID) > 0 then
	g_game.useInventoryItem(foodID)
end
sleep(waitTime)

auto(200,400)


 

 awesome thank you!

Link to post
Share on other sites
×
×
  • Create New...