Signup Now
Results 1 to 6 of 6
  1. #1
    Free User
    Join Date
    Dec 2013
    Location
    HollyLodz
    Posts
    9
    Reputation
    10
    Rep Power
    0

    Action with alert

    Hello, I want to ask someone to help me with action. I dont know why but alert with disconnected dont turn off. Log out is working well


    auto(100, 200)
    if $pzone and $stamina < 14*60 then
    setsetting("Alerts/Disconnected/PlaySound", "no")
    logout()
    printerror("Low stamina on " .. $character.name)
    end

  2. #2
    Moderator RoxZin xD's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    4,914
    Reputation
    109
    Rep Power
    31
    This isn't a valid setsetting(), that's why it doesn't work, I think.



    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

  3. #3
    Moderator BUgWT's Avatar
    Join Date
    Dec 2013
    Location
    www.bugwt.com
    Posts
    546
    Reputation
    72
    Rep Power
    22
    Its not possible right now. Lucas is already working on doing setsettings for the rest(?) of the tabs


    LATEST SCRIPTS SKYPE
    Got a Question? Add me on Skype!
    bugwt.support

    This image is hosted on a possibly dangerous website (http://mystatus.skype.com/smallclassic/bugwt.support). Please consider reuploading it on Imgur.com.


  4. #4
    Free User
    Join Date
    Dec 2013
    Location
    HollyLodz
    Posts
    9
    Reputation
    10
    Rep Power
    0
    Okey, thanks for fast answer

  5. #5
    Free User
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    117
    Reputation
    15
    Rep Power
    21
    A workaround would be to not use Disconnected alert from settings, and instead use a persistent code to alert if disconnected. Use a variable to determine whether it should alert or not...

    So, your current script would be as such:
    Code:
    auto(100, 200)
    if $pzone and $stamina < 14*60 then
      DISCONNECT_ALERT = false
      logout()
      printerror("Low stamina on " .. $character.name)
    end
    And the alert persistent something like:
    Code:
    init start
      DISCONNECT_ALERT = true
    init end
    
    auto(1500)
    if(DISCONNECT_ALERT and not $connected) then
       playsound('disconnected.wav') 
    end
    Last edited by Colandus; 01-07-2014 at 11:29 PM.
    Regards,
    Colandus

  6. #6
    Free User
    Join Date
    May 2014
    Posts
    1
    Reputation
    10
    Rep Power
    0
    i used this:

    auto(1000)
    if not $connected then
    if $wptsection ~= "OffilineTrainer" and getuseroption("DisconnectedAlert") then
    setcavebot('off')
    playsound('disconnected.wav')
    else
    setcavebot('off')
    end
    end
    Last edited by kauef; 07-16-2014 at 09:18 PM.

 

 

Posting Permissions

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