Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FREE Eat food
#1
Hello.

Eat food script.
This script is useful when Options -> Eat Food is not eating a specific food you wanna eat. This happens because game-client doesn't tells if an item is a food or not, so i've to manually add each food on Bot.

This link will help you to find what's the item id of an item, so you can find food's id:
|Only Registered members can see download links. | Click here to buy subscription or here to register.


local EAT_TRIES = { Min = 2, Max = 15 }
local FOODS_IDS = { 1234, 1234 } -- Foods ids you wanna eat.
local EAT_TIME = { Min = 300, Max = 480, } -- In SECONDS. Time to wait after eating food to eat again.
local STOP_FULL = false -- Stops eating when you are full message shows up.

NEXT_EAT_TIME = NEXT_EAT_TIME or 1

if connected() and runningtime() >= NEXT_EAT_TIME then
    local eatCount = 0
    local maxEatCount = random(EAT_TRIES.Min, EAT_TRIES.Max)
    for _, food in ipairs(FOODS_IDS) do
        if itemcount(food) > 0 then
            for i = eatCount, maxEatCount do
                useitem(food, '')
                wait(400, 800)
                eatCount = eatCount + 1
                if STOP_FULL and statusmessage() == 'You are full.' then
                    break
                end
            end
        end
        if eatCount >= maxEatCount then
            break
        end
    end
    NEXT_EAT_TIME = runningtime() + random(EAT_TIME.Min, EAT_TIME.Max)
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016