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:
33
modules/game_bot/default_configs/vBot_4.5/vBot/antiRs.lua
Normal file
33
modules/game_bot/default_configs/vBot_4.5/vBot/antiRs.lua
Normal 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)
|
||||
Reference in New Issue
Block a user