Results 1 to 5 of 5

Thread: Help with Setting 1 action off if player on screen.

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

    Lightbulb Help with Setting 1 action off if player on screen.

    So basicly...

    If playeronscreen then set AreaAttack("off") else setAreaAttack("on") end


    AreaAttack is the name of the Hotkey.


    i made that one but it doesn't work, anyone has any idea how to make it work?

  2. #2
    Normal User
    Join Date
    Apr 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    you can try adding to ur areaattack action, it makes only work what its next of the "then" if there are no players around 7 sqm

    if paround(7) == 0 then

    "here put ur action"

    end

  3. #3
    Normal User
    Join Date
    Jun 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    not working. i just need a hotkey like that one i said above, to set 1 hotkey off if there is players on screen otherwise turn it back on.

  4. #4
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    if (paround(10,true) > 0then
        setsettings
    ("Settings\\Actions\\List\\AreaAttack\\Enabled","no")
    else
        
    setsettings("Settings\\Actions\\List\\AreaAttack\\Enabled","yes")
    end 

  5. #5
    Normal User
    Join Date
    Jun 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    that should work, thank 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
  •