Signup Now
Results 1 to 9 of 9
  1. #1
    Free User
    Join Date
    Dec 2013
    Posts
    40
    Reputation
    12
    Rep Power
    0

    Turn off Persistent

    hello i really need an action to set one of my persistent hotkeys OFF OR ON during cavebot time,
    like

    PHP Code:
     setsetting('Scripter/Persistent/NAME OF PERSISTENT?, on?off?) 
    help me !
    Last edited by Fisen; 01-13-2014 at 09:43 AM. Reason: fail write

  2. #2
    Moderator SuNe's Avatar
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    2,877
    Reputation
    186
    Rep Power
    28
    setsetting('Persistent/Scripts/NAMEOFSCRIPT/Enabled', 'yes/no')
    กิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิ ิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิ ิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิ ิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิ ิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิ ิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิ ิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิ ิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิก ิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิ ิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิ ิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิ ิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิ ิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิ ิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิ ิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิ ิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิ ิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิ ิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิ ิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิ ิิิิิิิิิิิิิิิิกิิิิิิิิิิิิิิิิิิิิกิิิิิิิิิิิิ ิิิิิิิิ

  3. #3
    Free User
    Join Date
    Dec 2013
    Posts
    40
    Reputation
    12
    Rep Power
    0
    Quote Originally Posted by SuNe View Post
    setsetting('Persistent/Scripts/NAMEOFSCRIPT/Enabled', 'yes/no')
    a lot of thanks sune!

  4. #4
    Free User hally's Avatar
    Join Date
    Dec 2013
    Posts
    6
    Reputation
    10
    Rep Power
    0
    What if i want to turn on/off script in cavebot section? You got that script?

  5. #5
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,101
    Reputation
    433
    Rep Power
    40
    setsetting('Cavebot/Scripts/NAMEOFSCRIPT/Enabled', 'yes/no')

    @hally i think it should works

  6. #6
    Free User hally's Avatar
    Join Date
    Dec 2013
    Posts
    6
    Reputation
    10
    Rep Power
    0
    It's not working :/ Someone got any idea how can i fix that?
    Last edited by hally; 03-14-2014 at 11:53 AM.

  7. #7
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,101
    Reputation
    433
    Rep Power
    40
    Then @Lucas Terra need say if its possible
    Regards

  8. #8
    Free User
    Join Date
    Feb 2016
    Posts
    4
    Reputation
    10
    Rep Power
    0
    i need it too.. because i want that char logout when stamina is above ...
    init start
    local staminatotrain = getuseroption('staminatotrain')
    init end

    but this script dont work:

    init start
    local staminatotrain = getuseroption('staminatotrain')
    init end



    if $stamina > staminatotrain*60 then
    auto(1000)
    if not ($connected) then
    reconnect()
    end
    end

  9. #9
    Free User Borges's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    1,468
    Reputation
    205
    Rep Power
    25
    Quote Originally Posted by erickvieira View Post
    i need it too.. because i want that char logout when stamina is above ...
    init start
    local staminatotrain = getuseroption('staminatotrain')
    init end

    but this script dont work:

    init start
    local staminatotrain = getuseroption('staminatotrain')
    init end



    if $stamina > staminatotrain*60 then
    auto(1000)
    if not ($connected) then
    reconnect()
    end
    end
    auto(1000)

    if $stamina <= 14*60 then
    logout()
    end
    Helped you? 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
  •