Version 0.999 beta, with more bug fixes

This commit is contained in:
OTCv8
2019-10-31 17:11:43 +01:00
parent 06b08af1df
commit 85a7fbf0a6
11 changed files with 21 additions and 18 deletions

View File

@@ -1,8 +1,8 @@
Module
name: game_bot
description: Bot
description: Advanced OTClientV8 Bot
author: otclient@otclient.ovh
sandboxed: true
scripts: [ bot ]
scripts: [ ui/botitemcontainer, ui/botwaypoints, bot ]
@onLoad: init()
@onUnload: terminate()

View File

@@ -38,6 +38,7 @@ function executeBot(config, storage, tabs, msgCallback)
context.regexMatch = regexMatch
-- classes
context.g_resources = g_resources
context.g_game = g_game
context.g_map = g_map
context.g_ui = g_ui

View File

@@ -26,7 +26,7 @@ end
Panels.AntiParalyze = function(parent)
context.macro(500, "Anti Paralyze", nil, function()
if not context.isParalyzed() and context.storage.autoHasteText:len() > 0 then
if context.isParalyzed() and context.storage.autoAntiParalyzeText:len() > 0 then
if context.saySpell(context.storage.autoAntiParalyzeText, 2500) then
context.delay(5000)
end

View File

View File

View File

@@ -247,10 +247,12 @@ function onColorCheckChange(colorBox)
colorBox:setChecked(true)
colorBox.onCheckChange = onColorCheckChange
else
currentColorBox.onCheckChange = nil
currentColorBox:setChecked(false)
currentColorBox.onCheckChange = onColorCheckChange
if currentColorBox then
currentColorBox.onCheckChange = nil
currentColorBox:setChecked(false)
currentColorBox.onCheckChange = onColorCheckChange
end
currentColorBox = colorBox
if currentClotheButtonBox:getId() == 'head' then