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
Equip item
#1
Hello!

Is it possible to equip said item if it has run out or are inactive? I.e soft boots going to worn.

Fresh boots ID: 6265
Active boots on character ID: 6380
Worn boots ID: 6264

Thanks,
Hej
Reply

#2
local boots = 'boots of haste' -- this is the alternative boots, to equip while you have enough mana/health.
local boots_location = 'green backpack'

local SETTINGS = {
    Consider = 'mppc', --You must use 'mppc' for mana %, 'mp' for mana value, 'hppc' for health % or 'hp' for health value.
    Equip = {65,75},
    Unequip = {85,95},
    AlertIfNoSoft = true, -- This will play an alert if you have no more good softs to use.
    AlertOnSoftCount = 0, -- This will play an alert if the count of softs, worn and in use are less than this value.
    SoundFile = 'default.wav' -- This is the sound you want to use play when you have no soft
} -- It will equip soft if you have less than 65~75% of MP, and equip soft boots if you have more than 85~95% of MP.


--[[ DON'T EDIT BELOW THIS LINE --]]
--[[ DON'T EDIT BELOW THIS LINE --]]
--[[ DON'T EDIT BELOW THIS LINE --]]



local soft = {id = 6265, use = 6380, worn = 6264}
local bootsid = itemid(boots)

if n_equip == nil or n_unequip == nil then
    n_equip = math.random(unpack(SETTINGS.Equip))
    n_unequip = math.random(unpack(SETTINGS.Unequip))
end

local ntype = SETTINGS.Consider:lower()
local cur = 0
if ntype == 'mppc' then
    cur = mppc()
elseif ntype == 'mp' then
    cur = mp()
elseif ntype == 'hppc' then
    cur = hppc()
elseif ntype == 'hp' then
    cur = hp()
else
    cur = mppc()
end

local feet_item = feet()

if feet_item.id == soft.use then
    if cur > n_unequip then
        if itemcount(bootsid, boots_location) > 0 then
            moveitems(bootsid, 'feet', boots_location, 100)
            wait(800)
        else
            moveitems(soft.use, boots_location, 'feet', 100)
            wait(800)
        end
        n_equip = nil
    end
elseif feet_item.id == soft.worn or feet_item.id == 0 then
    if cur < n_equip and itemcount(soft.id, boots_location) > 0 then
        moveitems(soft.id, 'feet', boots_location, 100)
        wait(800)
        n_equip = nil
    else
        if itemcount(bootsid, boots_location) > 0 then
            moveitems(bootsid, 'feet', boots_location, 100)
            wait(800)
        elseif feet_item.id > 0 then
            moveitems(soft.worn, boots_location, 'feet', 100)
            wait(800)
        end
        n_equip = nil
    end
elseif feet_item.id == bootsid then
    if cur < n_equip and itemcount(soft.id, boots_location) > 0 then
        moveitems(soft.id, 'feet', boots_location, 100)
        wait(800)
        n_equip = nil
    end
end

if SETTINGS.AlertIfNoSoft or SETTINGS.AlertOnSoftCount > 0 then
    local soft_count = itemcount(soft.id, '', true)
    local inuse_count = itemcount(soft.use, '', true)
    local worn_count = itemcount(soft.worn, '', true)

    if SETTINGS.AlertIfNoSoft and feet_item.id ~= soft.use and soft_count == 0 and inuse_count == 0 then
        playsound(SETTINGS.SoundFile)
        flashclient()
    end

    if SETTINGS.AlertOnSoftCount > 0 and (soft_count + inuse_count + worn_count) < SETTINGS.AlertOnSoftCount then
        playsound(SETTINGS.SoundFile)
        flashclient()
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016