Results 1 to 3 of 3

Thread: Some Script Help

  1. #1
    Normal User
    Join Date
    Jun 2012
    Location
    Canada
    Posts
    33
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    9
    Rep Power
    0

    Some Script Help

    I can't seem to get these scripts to work and I don't know what I'm doing wrong...



    -- [[ INIT START ]] --
    local CONFIG = {
    RING_NAME = "energy ring",
    RING_ID_USED = 3088, -- [[ YOU HAVE TO FIND ID BY YOURSELF. ]] --
    }

    -- [[ DO NOT CHANGE ANYTHING BELOW THIS LINE. ]] --

    local RING_ID = Item.GetID(CONFIG.RING_NAME)
    -- [[ INIT END ]] --

    if (Self.Ring().id ~= CONFIG.RING_ID_USED) then
    Self.MoveItems(RING_ID, "ring", "all", 100)
    else
    Self.MoveItems(CONFIG.RING_ID_USED, "all", "ring", 100)
    end




    -- [[ INIT START ]] --
    local CONFIG = {
    AMULET_NAME = "stone skin amulet",
    }

    -- [[ DO NOT CHANGE ANYTHING BELOW THIS LINE. ]] --

    local AMULET_ID = Item.GetID(CONFIG.AMULET_NAME)
    -- [[ INIT END ]] --

    if (Self.Amulet().id ~= AMULET_ID) then
    Self.MoveItems(AMULET_ID, "amulet", "all", 100)
    end



    if (not Self.isInProtectionZone() and not Self.isHasted()) then
    Spell.GetByWordsOrName("strong haste"):CastSpell()
    end



    -- [[ INIT START ]] --
    local CONFIG = {
    HEALTH_PERCENT = 90,
    HIGH_HP_SPELL = "strong haste",
    LOW_HP_SPELL = "ultimate healing",
    }
    -- [[ INIT END ]] --

    if (Self.isParalyzed()) then
    if (Self.HealthPercent() < CONFIG.HEALTH_PERCENT) then
    Spell.GetByWordsOrName(CONFIG.LOW_HP_SPELL):CastSp ell()
    elseif (Self.HealthPercent() >= CONFIG.HEALTH_PERCENT) then
    Spell.GetByWordsOrName(CONFIG.HIGH_HP_SPELL):CastS pell()
    end
    end

  2. #2
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    344 Post(s)
    Reputation
    462
    Rep Power
    10
    You must have Sirmate library inside iBot > library folder.
    You can get it here: http://www.tibiaibot.com/forum/showt...Library-v1-1-1


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

  3. #3
    Normal User
    Join Date
    Jun 2012
    Location
    Canada
    Posts
    33
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    9
    Rep Power
    0
    Thanks a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •