Hi I am having a issue where my lua scripts are being blocked due to bot prottection.
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
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?
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?