• 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!

OTClient [OTclient] Help to create highlight target effect mod?!

ausirosiris

New Member
Joined
May 23, 2020
Messages
57
Reaction score
2
Lua:
addCheckBox("highlightTarget", "Highlight Current Target", true, rightPanel, "Additionaly hightlight current target with red glow")
if true then
  local function forceMarked(creature)
    if target() == creature then
        creature:setMarked("red")
        return schedule(333, function() forceMarked(creature) end)
    end
  end

  onAttackingCreatureChange(function(newCreature, oldCreature)
    if not settings.highlightTarget then return end
      if oldCreature then
          oldCreature:setMarked('')
      end
      if newCreature then
          forceMarked(newCreature)
      end
  end)
end


I found this feature inside the game_bot module. But it needs to be used while botting (i don't want it). Is there a way to code this into a separated MOD
that triggers that highlight effect on targets all the time without the need to be used inside the otc's bot?
 
Back
Top