• 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

Member
Joined
May 23, 2020
Messages
105
Reaction score
22
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?
 
Still trying to manage that! I just need some directions to focus the details. Please, anyone?!

EDIT: Manage to craft it myself; Thread can be closed if necessary!
 
Last edited:
Back
Top