Results 1 to 4 of 4

Thread: Need Action - Alarm

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    28
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    10
    Rep Power
    5

    Need Action - Alarm

    Hello guys,

    I need an action for iBot +.

    I need an alarm when have a player on screen, but just when LOOTING is enabled (this because it´s when i´m inside the cave).

    Thanks!

  2. #2
    iBot User
    Join Date
    May 2012
    Location
    BRASIL
    Posts
    390
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    54 Post(s)
    Reputation
    13
    Rep Power
    5
    see if it works
    PHP Code:
    --script by:Gusttavoarinho
    if(getsettings("looting/enabled") == "yes"then 
        setsettings
    ("alerts/player/onscreen/playsound","yes")
    else
        
    setsettings("alerts/player/onscreen/playsound","no")
    end 
    or

    you can create a moon action early in the basement with the following code:
    PHP Code:
    setsettings("alerts/player/onscreen/playsound","yes"
    and at the end of the hunt creates an action with the following code:
    PHP Code:
    setsettings("alerts/player/onscreen/playsound","no"


    vendo 300k em amera R$4,00 - mande pm

  3. #3
    Focus Group Gryllz's Avatar
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    3,481
    Mentioned
    89 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    236 Post(s)
    Reputation
    342
    Rep Power
    10
    @thehawk

    Lua Code:
     
    while looting == "yes" and paround() > 0 do 
    playsound("alert.wav") 
    end

  4. #4
    Normal User
    Join Date
    Aug 2012
    Posts
    28
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    10
    Rep Power
    5
    Thanks! Worked

Posting Permissions

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