Yusuf El-Shora
Herizona-Ots
Hello ..
I'm using ingame bot which in OTC V8 using Macro scripts ..
and i have this script
which equip energy ring at x health and it should put the original ring back after health is above x
but it would not do this .. it only equip energy ring and never unequip it ..
if anyone can help me .. Regards
I'm using ingame bot which in OTC V8 using Macro scripts ..
and i have this script
Lua:
local originalRing = 406
local ringID = 3051
local item
macro(10, "Equip Ring", function()
if getFinger() then
if hppercent() <= 70 and getFinger():getId() ~= ringID then
item = findItem(ringID)
g_game.move(item, {x=65535, y=SlotFinger, z=0}, 1)
elseif hppercent() >= 90 and getFinger():getId() == ringID then
findItem(originalRing)
g_game.move(originalRing, {x=65535, y=SlotFinger, z=0}, 1)
end
else
if hppercent() <= 70 and not getFinger() then
item = findItem(ringID)
g_game.move(item, {x=65535, y=SlotFinger, z=0}, 1)
elseif hppercent() >= 90 and not getFinger() then
findItem(originalRing)
g_game.move(originalRing, {x=65535, y=SlotFinger, z=0}, 1)
end
end
end)
which equip energy ring at x health and it should put the original ring back after health is above x
but it would not do this .. it only equip energy ring and never unequip it ..
if anyone can help me .. Regards