Signup Now
Results 1 to 2 of 2

Thread: Pause

  1. #1
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,440
    Reputation
    283
    Rep Power
    27

    Pause

    Pause


    Description

    When pressed, if any of the specified engines is enabled, disables all of them. Else, enables all of them.


    Configuration

    Edit the settingsToggable variable on the init block to specify which engines you want to be considered when pausing/unpausing.


    Code

    init start
    -- local SCRIPT_VERSION = '1.0.1'

    -- What settings should be paused/unpaused
    local settingsToggable = {
    Cavebot = true,
    Looting = true,
    Targeting = true,
    SpellHealer = false,
    PotionHealer = false,
    ConditionHealer = false,
    ManaTrainer = false
    }

    -- DO NOT EDIT BELOW THIS LINE --
    init end

    local curState = false
    for k, v in pairs(settingsToggable) do
    curState = curState or (v and tobool(get(k .. '/Enabled')))
    end

    local newState = toyesno(not curState)
    for k, v in pairs(settingsToggable) do
    if v then
    set(k .. '/Enabled', newState)
    end
    end

    -- Prevents multiple subsequent activations
    wait(500)

    Git
    Last edited by Raphael; 07-25-2014 at 05:14 AM.
    RaphSeller
    PayPal Instantaneous Reseller


    raphseller.com

  2. #2
    Free User
    Join Date
    Mar 2014
    Location
    USA
    Posts
    97
    Reputation
    15
    Rep Power
    21
    Thank you, it works great!

 

 

Posting Permissions

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