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
take food under me and put it in the bp
#1
good afternoon friend, I need a script that he takes food under me and puts it in the bp for example to catch about 20 fish.
and there would also be a script that if more than 20 fish or all fish disappear, it pauses the bot and issues an alert


I also need a script that if something on the screen changes, moves, or is removed, the bot pauses and issues an alert.
thanks in advance, merry christmas!
Reply

#2
Hello.

1st script - Pickup food
I didn't quite understand the first script, can you try to explain again?

I made a script that will play an alert if you have more than 20 or zero foods in the bp, the script will count all the foods you add to the table. By default, the script only has fish in the list of ids.
The script will also try to pickup a maximum of 20 foods in bp.

local FOODS_IDS = { 3578 } -- Foods to pickup.
local FOODS_BP = 'red backpack' -- BP to move foods.
local FOOD_MAXCOUNT = 20 -- Max food to pickup.

local count = 0
for _, food in ipairs(FOODS_IDS) do
    local foodCount = itemcount(food, FOODS_BP)
    if foodCount > 0 then
        count = count + foodCount
    end
end

if count == 0 or count > FOOD_MAXCOUNT then
    playsound('default')
    flashclient()
    pausebot(true)
elseif count < FOOD_MAXCOUNT then
    local item = topitem(posx(), posy(), posz(), false)
    if item ~= nil and table.find(FOODS_IDS, item.id) ~= nil then
        moveitems(item.id, FOODS_BP, ground(posx(), posy(), posz()), (FOOD_MAXCOUNT - count))
    end
end

2nd script - Something on the screen changes
You could easily find it on Scripts -> LUA Scripts. So please, use search before requesting a script.
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Reply

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Reply

#4
|Only Registered members can see download links. | Click here to buy subscription or here to register.

Hello.

1st script
If you don't have any more fishes on backpack or under you?
The script above I made will play an alert if you have more than 20 or zero foods in the bp, the script will count all the foods you add to the table. By default, the script only has fish in the list of ids.
The script will also try to pickup a maximum of 20 foods in bp.

2nd script.
You already can use the following script:
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Reply

#5
|Only Registered members can see download links. | Click here to buy subscription or here to register.

issue alert and pause bot if there are no more fish below min, I would like it to always catch 20 fish, when my fish are running out in the bp for example I have 50 fish when I have only 30 to catch 20 fish, understand?
Reply

#6
Hello.

If food count == 0 then it will play sound, flash client and pause bot.
Also, if food count is equal or lower than 30 then it will pickup remaining to 50. Example: If you have 28 then it will try to pickup 22 foods. If you have 30 then it will try to pickup 20.

local FOODS_IDS = { 3578 } -- Foods to pickup.
local FOODS_BP = 'red backpack' -- BP to move foods.
local FOOD_MINCOUNT = 30 -- Min food to carry.
local FOOD_MAXCOUNT = 50 -- Max food to carry.

local count = 0
for _, food in ipairs(FOODS_IDS) do
    local foodCount = itemcount(food, FOODS_BP)
    if foodCount > 0 then
        count = count + foodCount
    end
end

if count == 0 then
    playsound('default')
    flashclient()
    pausebot(true)
elseif count <= FOOD_MINCOUNT then
    local remainingCount = FOOD_MAXCOUNT - count
    while remainingCount > 0 do
        local item = topitem(posx(), posy(), posz(), false)
        if item == nil or table.find(FOODS_IDS, item.id) == nil then
            break
        end

        if moveitems(item.id, FOODS_BP, ground(posx(), posy(), posz()), remainingCount) then
            wait(500, 700)

            count = 0
            for _, food in ipairs(FOODS_IDS) do
                local foodCount = itemcount(food, FOODS_BP)
                if foodCount > 0 then
                    count = count + foodCount
                end
            end
            remainingCount = FOOD_MAXCOUNT - count
        else
            break
        end
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016