Signup Now
Results 1 to 5 of 5
  1. #1
    Free User
    Join Date
    Nov 2016
    Posts
    5
    Reputation
    10
    Rep Power
    0

    Exclamation Energy ring script

    I would appreciate it if someone helped me with the script for war, that at a certain percentage of life the ring is placed and removed!

  2. #2
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    Quote Originally Posted by xiiw View Post
    I would appreciate it if someone helped me with the script for war, that at a certain percentage of life the ring is placed and removed!
    1- Wrong Area, post Lua > Requests

    2-

    auto(500)

    local UseRing = true
    local RingName = 'energy ring'
    local HP = 70 --percentage
    local RingBP = 'brocade backpack'

    if $connected then
    if UseRing then
    if $hppc <= HP then
    equipitem(RingName, 'finger', RingBP)
    waitping()
    elseif $hppc > HP and $finger == RingName then
    unequipitem('finger', RingBP)
    end
    end
    end

  3. #3
    Free User
    Join Date
    Nov 2016
    Posts
    5
    Reputation
    10
    Rep Power
    0
    but how it remove the energy ring and equip the normal ring?

  4. #4
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    Quote Originally Posted by xiiw View Post
    but how it remove the energy ring and equip the normal ring?
    Only energy ring

    auto(500)

    local UseRing = true
    local RingName = 'energy ring'
    local HP = 70 --percentage
    local RingBP = 'brocade backpack'

    if $connected then
    if UseRing then
    if $hppc <= HP and itemcount(RingName, RingBP) > 0 then
    equipitem(RingName, 'finger', RingBP)
    waitping()
    elseif $hppc > HP and $finger == RingName then
    unequipitem('finger', RingBP)
    end
    end
    end


    Energy ring + Normal Ring (energy ring and normal ring = RingBP)

    auto(500)

    local UseRing = true
    local RingName = 'energy ring'
    local RingNameNormal = 'life ring' --ring normal
    local HP = 70 --percentage
    local RingBP = 'brocade backpack'

    if $connected then
    if UseRing then
    if $hppc <= HP then
    if itemcount(RingName, RingBP) > 0 then
    equipitem(RingName, 'finger', RingBP)
    waitping()
    elseif itemcount(RingName, RingBP) == 0 and itemcount(RingNameNormal, RingBP) > 0 then
    equipitem(RingNameNormal, 'finger', RingBP)
    waitping()
    end
    elseif $hppc > HP then
    if itemcount(RingNameNormal, RingBP) > 0 then
    equipitem(RingNameNormal, 'finger', RingBP)
    waitping()
    elseif itemcount(RingNameNormal, RingBP) == 0 then
    unequipitem('finger', RingBP)
    end
    end
    end
    end


    OBS: RingBP always open

  5. #5
    Free User
    Join Date
    Nov 2016
    Posts
    5
    Reputation
    10
    Rep Power
    0
    i love you :*

 

 

Posting Permissions

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