02-15-2020, 11:06 PM
(This post was last modified: 02-15-2020, 11:22 PM by DesireMr11.)
Hello, I am looking for a script to equip RoH when low mana and when enough mana equip Life Ring. But if full mana then unequip. Something like I have below this, but not really working, I have to use 2 scripts but they bug up something :S
LIFE RING
RING OF HEALING
I maybe found a solution, I was not able to work around with the between 150 - 300 and 301 - 700. I don't think I ever get up to that mana, but what ever. This code below is working for me.
LIFE RING
local MANA_EQUIP = 301 -- Mana to equip life ring.
local MANA_UNEQUIP = 700 -- Mana to unequip life ring.
local ring_item = finger()
local player_mana = mp()
if player_mana >= MANA_EQUIP and (ring_item.id == 0 or ring_item.id ~= 3089) then
moveitems(3052, 'finger', '')
wait(500, 800)
elseif player_mana >= MANA_UNEQUIP and ring_item.id == 3089 then
moveitems(3089, '0', 'finger')
wait(500, 800)
endRING OF HEALING
local MANA_EQUIP = 150 -- Mana to equip life ring.
local MANA_UNEQUIP = 300 -- Mana to unequip life ring.
local ring_item = finger()
local player_mana = mp()
if player_mana <= MANA_EQUIP then
moveitems(3089, '0', 'finger')
wait(500, 800)
endI maybe found a solution, I was not able to work around with the between 150 - 300 and 301 - 700. I don't think I ever get up to that mana, but what ever. This code below is working for me.
local MANA_EQUIP_HIGH = 301 -- Mana to equip life ring.
local MANA_EQUIP_LOW = 300 -- Mana to unequip life ring.
local ring_item = finger()
local player_mana = mp()
if player_mana < MANA_EQUIP_LOW and (ring_item.id == 0 or ring_item.id ~= 3100) then
moveitems(3098, 'finger', '')
wait(500, 800)
elseif player_mana >= MANA_EQUIP_HIGH and (ring_item.id == 0 or ring_item.id ~= 3089) then
moveitems(3052, 'finger', '')
wait(500, 800)
end