How to pause all with one hotkey including persistent scripts? I want pause totally bot. With all persistents. For example persistent name "Spells Attack". Thanks for help.
How to pause all with one hotkey including persistent scripts? I want pause totally bot. With all persistents. For example persistent name "Spells Attack". Thanks for help.
My Free Scripts: https://forums.tibiawindbot.com/show...l=1#post427503
First Hotkey: activates the persistent
local NamePersistents = {'Spells Attack', 'Reconnect'}
function Enabled(yesno)
for _, SetNames in ipairs(NamePersistents) do
setsetting('Persistent/Scripts/'..SetNames..'/Enabled', yesno)
end
end
Enabled('yes')
Second Hotkey: disable the persistent
local NamePersistents = {'Spells Attack', 'Reconnect'}
function Enabled(yesno)
for _, SetNames in ipairs(NamePersistents) do
setsetting('Persistent/Scripts/'..SetNames..'/Enabled', yesno)
end
end
Enabled('no')
Thanks! Rep +
My Free Scripts: https://forums.tibiawindbot.com/show...l=1#post427503