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:
15
modules/game_bot/default_configs/vBot/z_click_reuse.lua
Normal file
15
modules/game_bot/default_configs/vBot/z_click_reuse.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
setDefaultTab("Tools")
|
||||
|
||||
local reUseToggle = macro(1000, "Click ReUse", "`", function() end)
|
||||
local excluded = {268, 237, 238, 23373, 266, 236, 239, 7643, 23375, 7642, 23374, 5908, 5942, storage.shovel, storage.rope, storage.machete}
|
||||
|
||||
onUseWith(function(pos, itemId, target, subType)
|
||||
if reUseToggle.isOn() and not table.find(excluded, itemId) then
|
||||
schedule(50, function()
|
||||
item = findItem(itemId)
|
||||
if item then
|
||||
modules.game_interface.startUseWith(item)
|
||||
end
|
||||
end)
|
||||
end
|
||||
end)
|
Reference in New Issue
Block a user