Results 1 to 6 of 6

Thread: Help in action please?

  1. #1

    Join Date
    Feb 2013
    Posts
    68
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    22
    Rep Power
    4

    Unhappy Help in action please?

    I need action, desative a special area if a monsters run if low hp

    exemple but not funcional

    local Areas = {"Area1", "Area2"}

    if ((target.name == "Frost Dragon") and (target.hppc <= 15)) then
    setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\ .. Areas .. \\ConsideredBy","None")
    elseif ((target.name == "Frost Dragon") and (target.hppc >= 15))
    setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\ .. Areas .. \\ConsideredBy","Target")
    end

    Please help any action for this
    Last edited by Tmmmk; 02-15-2013 at 09:02 PM.

  2. #2
    Normal User
    Join Date
    May 2012
    Location
    England
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    16
    Rep Power
    5
    Did you already make the SpecialArea? If not, you're gonna have difficulty enabling it...

  3. #3

    Join Date
    Feb 2013
    Posts
    68
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    22
    Rep Power
    4
    yes, man i have create specials using this names

  4. #4
    Normal User
    Join Date
    May 2012
    Location
    England
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    16
    Rep Power
    5
    AreaName = "MySpecialArea" -- Set your Special Area name here!

    if ((target.name == "Frost Dragon") and (target.hppc <= 16)) then
    setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\Area Name\\ConsideredBy","None")
    elseif ((target.name == "Frost Dragon") and (target.hppc >= 15))
    setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\Area Name\\ConsideredBy","Target")
    end

    Try this

  5. #5
    Normal User
    Join Date
    Mar 2012
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Add as many specials you'd like in Areas

    Code:
    local Areas = {"Area1", "Area2"}
    
    for _, v in pairs(Areas) do
    if target.name == "Frost Dragon" and target.hppc <= 15 then
    setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\" .. v .. "\\ConsideredBy","None")
    elseif target.name == "Frost Dragon" and target.hppc >= 15 then
    setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\" .. v .. "\\ConsideredBy","Target")
    end
    end

  6. #6

    Join Date
    Feb 2013
    Posts
    68
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    22
    Rep Power
    4
    Quote Originally Posted by ottizy View Post
    Add as many specials you'd like in Areas

    Code:
    local Areas = {"Area1", "Area2"}
    
    for _, v in pairs(Areas) do
    if target.name == "Frost Dragon" and target.hppc <= 15 then
    setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\" .. v .. "\\ConsideredBy","None")
    elseif target.name == "Frost Dragon" and target.hppc >= 15 then
    setsettings("Settings\\CaveBot\\Pathfinding\\SpecialAreas\\" .. v .. "\\ConsideredBy","Target")
    end
    end
    Wow thx my friend rep + for 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
  •