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
SIO AND UH IF DONT HAVE MANA
#1
I need a script to heal the friend, but if the mana is belox x, it heals the friend with UH rune, help me pls
Reply

#2
Hello.

You are using Kasteria OTBot, but posted on Classictibia Bot section. I've moved it, but please pay attention in future.
local FRIENDS = { 'knight one', 'friend to heal', 'another friend' } -- Players to sio.
local FRIENDS_HEALTH = 50 -- If hp% is lower than this then cast sio on friend.
local SAFE_HEALTH = 80 -- It will only cast sio if YOUR HP% is higher or equal than this. If you wanna ignore your hp, just setup as 0.
local MANA_RUNE = 200 -- If your mana is lower than this then use rune instead spell.
local RUNE = 'ultimate healing rune' -- Rune to use.

if connected() and cancast() and hppc() >= SAFE_HEALTH then
    table.lower(FRIENDS)
    local creatures = getcreatures('pfs')
    for _, creature in ipairs(creatures) do
        if creature.hppc <= FRIENDS_HEALTH and table.find(FRIENDS, creature.name:lower()) ~= nil then
            local flag = false
            if mp() <= MANA_RUNE then
                flag = useitemoncreature(RUNE, creature.id)
            else
                flag = cast('exura sio "' .. creature.name)
            end

            if flag then
                wait(200, 400)
                break
            end
        end
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016