Results 1 to 3 of 3

Thread: Remove and put life ring

  1. #1

    Remove and put life ring

    Hey there, can someone help me out with this?

    I just need to add a condition to this script but I dont know how. I want the bot to "put the ring when mana below X and to remove the ring when mana above X"

    local CONFIG = {

    ring = "life ring"

    }

    auto(1000,1500)
    if getslotitem(SLOT_RING).id == 0 then
    local ring = finditem(CONFIG.ring)
    if ring.id ~= 0 then
    ring:move(slot(SLOT_RING))
    end
    end

  2. #2
    Spider
    Join Date
    Mar 2017
    Location
    England
    Posts
    29
    wrote you this code
    Code:
    local ringID = 2168 -- ringID (2168:lifering)
    local minmana = 306 -- auto equips when mana falls below
    
    auto(100)
    if getmana() < minmana then
    WearRing = finditem(ringID)
    WearRing:move(slot(SLOT_RING)) 
    else
    if getslotitem(SLOT_RING).id == 0 then
    else
    moveitem(getslotitem(SLOT_RING).id, slot(SLOT_RING), slot(SLOT_BACKPACK))
    end
    end

  3. #3
    i love youuuuuuuu

Posting Permissions

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