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!
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
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
i love you :*