• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTC V8 Macro script (Energy Ring at health X)

Yusuf El-Shora

Herizona-Ots
Joined
Jul 19, 2015
Messages
170
Reaction score
6
Location
Lala-Land
Hello ..
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
 
Back
Top