mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-05-03 20:49:21 +02:00
15 lines
505 B
Lua
15 lines
505 B
Lua
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) |