Signup Now
Results 1 to 3 of 3
  1. #1
    Free User
    Join Date
    Apr 2016
    Posts
    4
    Reputation
    10
    Rep Power
    0

    Alert when player on screen while hunting need help to fix

    local playeronscreen = getuseroption('playeronscreen')
    auto(200)
    if playeronscreen and $wptsection == 'enterresp', 'aftertp', 'huntatp', 'leaveatp', 'huntbtp', 'leavebtp', 'frostyatp' then
    setsetting('Alerts/PlayerOnScreen/PlaySound', 'yes')
    else
    setsetting('Alerts/PlayerOnScreen/PlaySound', 'no')
    end








    I have this script it was working but now not. help me to fix it

  2. #2
    Free User
    Join Date
    Apr 2016
    Posts
    4
    Reputation
    10
    Rep Power
    0
    --Player Alert
    auto(100)
    if getuseroption("PlayerOnAlarm") and $wptsection == "huntatp" and paround(10) >= 1 then
    playsound('playeronscreen.wav')
    flashclient()
    wait(1000,2000)
    end

    auto(100)
    if getuseroption("PlayerOnAlarm") and $wptsection == "huntbtp" and paround(10) >= 1 then
    playsound('playeronscreen.wav')
    flashclient()
    wait(1000,2000)
    end

    auto(100)
    if getuseroption("PlayerOnAlarm") and $wptsection == "frostyatp" and paround(10) >= 1 then
    playsound('playeronscreen.wav')
    flashclient()
    wait(1000,2000)
    end

  3. #3
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    Quote Originally Posted by lusiaxdd View Post
    local playeronscreen = getuseroption('playeronscreen')
    auto(200)
    if playeronscreen and $wptsection == 'enterresp', 'aftertp', 'huntatp', 'leaveatp', 'huntbtp', 'leavebtp', 'frostyatp' then
    setsetting('Alerts/PlayerOnScreen/PlaySound', 'yes')
    else
    setsetting('Alerts/PlayerOnScreen/PlaySound', 'no')
    end








    I have this script it was working but now not. help me to fix it
    The script you posted is not properly written, so it should never work.

    auto(200)
    if getuseroption('playeronscreen') and table.find({'enterresp', 'aftertp', 'huntatp', 'leaveatp', 'huntbtp', 'leavebtp', 'frostyatp'}, $wptsection) then
    set('Alerts/PlayerOnScreen/PlaySound', 'yes')
    else
    set('Alerts/PlayerOnScreen/PlaySound', 'no')
    end

 

 

Tags for this Thread

Posting Permissions

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