mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-23 07:55:55 +02:00
Updated to OTCv8 3.0 rev 19
This commit is contained in:
26
modules/game_bot/default_configs/vBot/exeta.lua
Normal file
26
modules/game_bot/default_configs/vBot/exeta.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
local voc = player:getVocation()
|
||||
if voc == 1 or voc == 11 then
|
||||
setDefaultTab("Cave")
|
||||
UI.Separator()
|
||||
local m = macro(100000, "Exeta when low hp", function() end)
|
||||
local lastCast = now
|
||||
onCreatureHealthPercentChange(function(creature, healthPercent)
|
||||
if m.isOff() then return end
|
||||
if healthPercent > 15 then return end
|
||||
if CaveBot.isOff() or TargetBot.isOff() or not isBuffed() then return end
|
||||
if modules.game_cooldown.isGroupCooldownIconActive(3) then return end
|
||||
if creature:getPosition() and getDistanceBetween(pos(),creature:getPosition()) > 1 then return end
|
||||
if canCast("exeta res") and now - lastCast > 6000 then
|
||||
say("exeta res")
|
||||
lastCast = now
|
||||
end
|
||||
end)
|
||||
|
||||
macro(500, "ExetaIfPlayer", function()
|
||||
if getMonsters(6) >= 1 and getPlayers(6) > 0 then
|
||||
say("exeta res")
|
||||
delay(6000)
|
||||
end
|
||||
end)
|
||||
UI.Separator()
|
||||
end
|
Reference in New Issue
Block a user