mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-24 00:15:02 +02:00
Updated to OTCv8 3.1 rev 157
This commit is contained in:
29
modules/game_bot/default_configs/vBot_4.5/cavebot/lure.lua
Normal file
29
modules/game_bot/default_configs/vBot_4.5/cavebot/lure.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
CaveBot.Extensions.Lure = {}
|
||||
|
||||
CaveBot.Extensions.Lure.setup = function()
|
||||
CaveBot.registerAction("lure", "#FF0090", function(value, retries)
|
||||
value = value:lower()
|
||||
if value == "start" then
|
||||
TargetBot.setOff()
|
||||
elseif value == "stop" then
|
||||
TargetBot.setOn()
|
||||
elseif value == "toggle" then
|
||||
if TargetBot.isOn() then
|
||||
TargetBot.setOff()
|
||||
else
|
||||
TargetBot.setOn()
|
||||
end
|
||||
else
|
||||
warn("incorrect lure value!")
|
||||
end
|
||||
return true
|
||||
end)
|
||||
|
||||
CaveBot.Editor.registerAction("lure", "lure", {
|
||||
value="toggle",
|
||||
title="Lure",
|
||||
description="TargetBot: start, stop, toggle",
|
||||
multiline=false,
|
||||
validation=[[(start|stop|toggle)$]]
|
||||
})
|
||||
end
|
||||
Reference in New Issue
Block a user