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
Never disable healer
#1
Hello

Is it possible to use a script that makes the healer function stay enabledĀ even if you have the disable bot boxes checked on the alerts tab?

Thanks
Reply

#2
Hello.

I'm not sure what you mean, there's no checkboxes for Healer on Alerts. The only checkbox on Alerts that would affect Healer is Pause Bot. Notice that "Pause Bot" pauses everything, except Alerts if you setup that option on Alerts->Settings.

Another way to do that is using LUA Scripts to make that "alert", for example "Player on Screen" alert and use setsettings() to disable specific tools instead of pausing bot.
Reply

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Thats exactly what i need, i need that when the PK on Screen alert goes on it disables the cavebot but keep the healer enabled instead of pausing the entire bot
Reply

#4
Hello.

This script has options to play sound, flash client, xlog, logout and disable stuff.
It will be triggered when a PK (white-skull or red-skull) appears, depending on the settings, because there are options to detect on different floors and outside screen (WHEN POSSIBLE!).

TOOLS table are the tools that it will use setsettings to disable, notice that it will not enable back!
I recommend you to check those tools path and actually test the script before leaving it afk.

local SAFE_LIST = { 'safe player', 'main character', 'secondary character'}

local MUST_BE_SCREEN = false -- Detect players only on screen?
local MUST_BE_SAME_FLOOR = false -- Detect players only on same floor?

local ALERTS = {
    PLAYSOUND = true,
    FLASH_CLIENT = true,
    XLOG = false,
    LOGOUT = false,
}

local TOOLS = {
    'Options/Eat Food',
    'Options/Anti Idle',
    'Cavebot/Settings/Enabled',
    'Targeting/Settings/Enabled',
    'Looter/Settings/Enabled',
    'Runemaker/Settings/Enabled',
    'Tools/Mana Trainer/Enabled',
}

if connected() then
    local player_x = 0
    local player_y = 0
    local player_z = 0

    if MUST_BE_SAME_FLOOR then
        player_z = posz()
    end

    if MUST_BE_SCREEN then
        player_x = posx()
        player_y = posy()
    end

    table.lower(SAFE_LIST)
    local creatures = getcreatures('p')
    for _, creature in ipairs(creatures) do
        if (creature.skull == 3 or creature.skull == 4) and table.find(SAFE_LIST, creature.name:lower()) == nil and (MUST_BE_SAME_FLOOR == false or (MUST_BE_SAME_FLOOR and posz() == creature.posz)) and (MUST_BE_SCREEN == false or (MUST_BE_SCREEN and math.abs(player_x == creature.posx) <= 7 and math.abs(player_y == creature.posy) <= 5)) then
            if ALERTS.LOGOUT then
                logout()
            end
            if ALERTS.XLOG then
                xlog()
            end
            if ALERTS.PLAYSOUND then
                playsound('alert_playeronscreen')
            end
            if ALERTS.FLASH_CLIENT then
                flashclient()
            end
            for __, tool in ipairs(TOOLS) do
                setsettings(tool, false)
            end
        end
    end
end
Reply

#5
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Arkilys i got a quick question,
How can i add someone to the safe list that has " ' " in their nick name, for example: Eternal'Obvilion (when i add this name to the script above it will crash the entire script.
Thanks,
Henrique
Reply

#6
Hello.

Just replace ' to " or add \ before '.
local SAFE_LIST = { "safe'player", 'eternal\'oblivion', 'secondary character'}
Reply

#7
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Thanks arki,

One last request which must be a bitĀ unusual, but i would like to exclude some positions of x-ray.

So if a player is detected in the waypoints x= y= z= the script will not be trigged, is it possible?

Thanks,
Reply

#8
Hello.

I'm not sure what you mean, because x-ray is a HUD not an alert.

Do you want to make an Alert like Player on Screen to be triggered only when players are on specific locations?
Reply

#9
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Yes i actually dont want the alert to be trigged if the players are on specific locations (because those sqm are passage), is it possible?
Reply

#10
Hello.

Yes, it's possible using PERSISTENTS.

If you don't know what's RANGE or how to use it, you can just set = 1, so it will be on the exactly location that setup.
Range should be used to add multiple locations at once. X will be considered the start and X+Range_X the end. If X = 12345 and RANGE_X = 3 then it will consider X: 12345, 12346 and 12347. So you will save time and effort instead of adding each location.

This will detect different floors as well, but if you just want to detect player on same floor then add a "f" to "getcreatures('p'): local creatures = getcreatures('pf')
This will detect creatures outside your screen (when possible, but if you just want to detect player on your screen then add a "s" to "getcreatures('p'): local creatures = getcreatures('ps')
Or both: local creatures = getcreatures('pfs')

Please, test this script before actually leaving it afk.

local SAFE_ZONES = {
    { X = 12345, Y = 12345, Z = 6, RANGE_X = 1, RANGE_Y = 1 }
    { X = 12345, Y = 12345, Z = 6, RANGE_X = 1, RANGE_Y = 1 }
    { X = 12345, Y = 12345, Z = 6, RANGE_X = 6, RANGE_Y = 10 }
    { X = 12344, Y = 12344, Z = 5, RANGE_X = 6, RANGE_Y = 10 }
}

if connected() then
    local creatures = getcreatures('p')
    local player_id = id()

    for _, creature in ipairs(creatures) do
        if creature.id ~= player_id and creature.isplayer then
            local found = false
            for __, dangerZone in ipairs(DANGER_ZONES) do
                if creature.posz ~= dangerZone.Z or (creature.posx < dangerZone.X and creature.posx >= (dangerZone.X + dangerZone.RANGE_X)) or (creature.posy < dangerZone.Y and creature.posy >= (dangerZone.Y + dangerZone.RANGE_Y)) then
                    playsound('alert_playeronscreen')
                    flashclient()
                    found = true
                    break
                end
            end

            if found then
                break
            end
        end
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016