Signup Now
Results 1 to 4 of 4
  1. #1
    Free User
    Join Date
    Feb 2014
    Posts
    40
    Reputation
    10
    Rep Power
    0

    Alarm only on label "spawn"?

    Hello,

    I've got a little problem concerning my alarm, when i'm sleeping () i'm running the bot all the night. The problem is that i did put the alarm "Player on screen?" "Play Sound? : Yes" and, when he's refilling, the computer is screaming all over my room, so it's kinda annoying to wake up 5 times per night.

    I've used the fonction "Research" but didn't find anything, if i did wrong, sorry

    Is there any script that could do that? If Player on screen play alert? It would run itself only on the "label" spawn..?

    Thanks.

  2. #2
    Free User
    Join Date
    Feb 2014
    Posts
    230
    Reputation
    29
    Rep Power
    21
    auto(500)
    if getuseroption("PlayerAlert") and $wptsection == "Hunt" and paround(10) > 0 then
    playsound('playeronscreen.wav')
    flashclient()
    wait(1000,2000)
    end


    Or just

    auto(500)
    if $wptsection == "Hunt" and paround(10) > 0 then
    playsound('playeronscreen.wav')
    flashclient()
    wait(1000,2000)
    end



    Should work perfect.

    Btw. u should ask questions like this one in Lua scripts/Request.
    Last edited by Good; 04-26-2017 at 03:43 PM.

  3. #3
    Free User
    Join Date
    Apr 2014
    Location
    Netherlands
    Posts
    219
    Reputation
    13
    Rep Power
    21
    As I can't currently open windbot I'll just try to explain.

    You can often use Right Click on the setting you want to modify and choose 'setsetting'. Then you can put this in an action waypoint for when you want to set it to yes or no.
    example: setsetting('Looting/Enabled', 'no')

    you can also make a persistent script, something like:
    Code:
    auto(1000)
    if $wptsection == 'Town' then
     setsetting('MySetting/Enabled', 'no')
    else
     setsetting('MySetting/Enabled', 'yes')
    end
    for if you want to enable/disable settings based on waypoint sections.

  4. #4
    Free User
    Join Date
    Feb 2014
    Posts
    40
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Good View Post
    auto(500)
    if getuseroption("PlayerAlert") and $wptsection == "Hunt" and paround(10) > 0 then
    playsound('playeronscreen.wav')
    flashclient()
    wait(1000,2000)
    end


    Or just

    auto(500)
    if $wptsection == "Hunt" and paround(10) > 0 then
    playsound('playeronscreen.wav')
    flashclient()
    wait(1000,2000)
    end



    Should work perfect.

    Btw. u should ask questions like this one in Lua scripts/Request.
    Quote Originally Posted by Tanochi View Post
    As I can't currently open windbot I'll just try to explain.

    You can often use Right Click on the setting you want to modify and choose 'setsetting'. Then you can put this in an action waypoint for when you want to set it to yes or no.
    example: setsetting('Looting/Enabled', 'no')

    you can also make a persistent script, something like:
    Code:
    auto(1000)
    if $wptsection == 'Town' then
     setsetting('MySetting/Enabled', 'no')
    else
     setsetting('MySetting/Enabled', 'yes')
    end
    for if you want to enable/disable settings based on waypoint sections.

    Works perfect

    Thanks to both of you!

 

 

Posting Permissions

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