Updated to OTCv8 3.1 rev 157

This commit is contained in:
OTCv8
2022-03-17 20:50:37 +00:00
parent 1d7d2f0c2b
commit 19fad11949
114 changed files with 2172 additions and 984 deletions

View File

@@ -0,0 +1,33 @@
setDefaultTab("Tools")
g_game.cancelAttackAndFollow()
local frags = 0
local unequip = false
local m = macro(50, "AntiRS & Msg", function() end)
function safeExit()
CaveBot.setOff()
TargetBot.setOff()
g_game.cancelAttackAndFollow()
g_game.cancelAttackAndFollow()
g_game.cancelAttackAndFollow()
modules.game_interface.forceExit()
end
onTextMessage(function(mode, text)
if not m.isOn() then return end
if not text:find("Warning! The murder of") then return end
frags = frags + 1
if killsToRs() < 6 or frags > 1 then
EquipManager.setOff()
schedule(100, function()
local id = getLeft() and getLeft():getId()
if id and not unequip then
unequip = true
g_game.equipItemId(id)
end
safeExit()
end)
end
end)