Results 1 to 3 of 3

Thread: When cap 0, deactivate looter.

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

    When cap 0, deactivate looter.

    I want an action for when my cap is lower than X or 0, deactivate the looter.

  2. #2
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Lua Code:
    if cap < x or cap == 0 then
    setlooting("no")
    end

  3. #3
    Normal User catok's Avatar
    Join Date
    Jan 2013
    Location
    Sweden
    Posts
    94
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    4
    Lua Code:
    local minCap = (0)
     
    if (cap <= minCap) then
    setlooting("no")
    elseif (cap > minCap) then
    setlooting("yes")
    end


    With this one you can customize if you change your mind on what the lowest cap should be to turn it off.
    Hard Working Scripter



    My Free Scripts:

    Knight
    EK - Mutated Mountains 50+ (option to hunt any tower)

Posting Permissions

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