vesteras Posted April 25, 2022 Share Posted April 25, 2022 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 comment Share on other sites More sharing options...
Tokumei Posted April 26, 2022 Share Posted April 26, 2022 (edited) 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 April 26, 2022 by Tokumei Formatting Link to comment Share on other sites More sharing options...
vesteras Posted April 28, 2022 Author Share Posted April 28, 2022 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 comment Share on other sites More sharing options...
Recommended Posts