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

Lua Caught Lua call to bot protected

SnakeFist

New Member
Joined
Apr 18, 2024
Messages
9
Reaction score
1
GitHub
jnibali
Hi I am having a issue where my lua scripts are being blocked due to bot prottection.
1713727075261.png

However I have already changed the "CMakeLists" file to turn off bot protection, and recompiled in Visual Studio. This is occurring when I try to move the quest log widjet with the following code

Lua:
function onGameQuestLog(quests)
  destroyWindows()

  questLogWindow = g_ui.createWidget('QuestLogWindow', rootWidget)
  local close = questLogWindow:getChildById('closeButton')
  g_game.move(close,questLogWindow:getPosition(),1) --this is line that is being blocked
  local questList = questLogWindow:getChildById('questList')

  for i,questEntry in pairs(quests) do
    local id, name, completed = unpack(questEntry)

    local questLabel = g_ui.createWidget('QuestLabel', questList)
    questLabel:setOn(completed)
    questLabel:setText(name)
    questLabel.onDoubleClick = function()
      questLogWindow:hide()
      g_game.requestQuestLine(id)
    end
  end

  questLogWindow.onDestroy = function()
    questLogWindow = nil
  end

  questList:focusChild(questList:getFirstChild())
end

This is just testing a feature I plan to implement later. Is their a reason I am still being blocked when I attempt to use the "move" command?
 
Back
Top