vesteras 0 Posted April 25 Share Posted April 25 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
Tokumei 5 Posted April 26 Share Posted April 26 (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 by Tokumei Formatting Link to post Share on other sites
vesteras 0 Posted April 28 Author Share Posted April 28 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
Recommended Posts