Signup Now
Results 1 to 3 of 3
  1. #1
    Free User siwylkw's Avatar
    Join Date
    Dec 2013
    Posts
    289
    Reputation
    15
    Rep Power
    21

    Pause all (including persistent scripts)

    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.

  2. #2
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    Quote Originally Posted by siwylkw View Post
    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.
    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')

  3. #3
    Free User siwylkw's Avatar
    Join Date
    Dec 2013
    Posts
    289
    Reputation
    15
    Rep Power
    21
    Thanks! Rep +

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •