Results 1 to 7 of 7

Thread: Need action

  1. #1
    iBot User
    Join Date
    Jun 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    3

    Need action

    Hi guys i need action for ignore 1,2,3 monster when bot attacking can u help me?

  2. #2
    iBot User
    Join Date
    Mar 2014
    Posts
    32
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    15 Post(s)
    Reputation
    13
    Rep Power
    3
    Here you go:

    Lua Code:
    local MonsterToIgnore = 1 -- Ammount Here
    local CountMonster = 0 -- don't change
    local CHP = 0 -- don't change
    for CREATURE in Creature.GetAll([[ms]]) do
        if CREATURE:isReachable() and table.find({"Mob1", "Mob2", "Mob3"}, CREATURE:Name()) then
            CountMonster = CountMonster + 1
            CHP = CHP + CREATURE:HealthPercent()
        end
    end
    local Avarage = CHP/CountMonster
    if CountMonster <= MonsterToIgnore then
        if Avarage > 27 and not lootbodies and target.id > 0 and targeting then
            setsettings("Settings\\Targeting\\Enabled", "no")
            wait(300)
            stopattack()
            wait(100)
        end
    end

  3. #3
    iBot User
    Join Date
    Jun 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    3
    thx , in mob1 i must write name mobs ye ?;p

  4. #4
    iBot User
    Join Date
    Jun 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    3
    its not working bc he count all names mobs not mobs on screen if i got 1 waspoid,1spitter,1 kollos on screen he run , i need action for run when he got 1 mob diferent name.

  5. #5
    iBot User
    Join Date
    Mar 2014
    Posts
    32
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    15 Post(s)
    Reputation
    13
    Rep Power
    3
    Quote Originally Posted by tricke View Post
    its not working bc he count all names mobs not mobs on screen if i got 1 waspoid,1spitter,1 kollos on screen he run , i need action for run when he got 1 mob diferent name.
    So do like you want on targeting settings it's easier I guess.

  6. #6
    iBot User
    Join Date
    Jun 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    3
    local CountMonster = 0
    for CREATURE in Creature.GetAll([[ms]]) do
    if CREATURE:isReachable() and table.find({"Crawler", "Insectoid Worker", "Swarmer", "Waspoid", "Spitter", "Kollos", "Spidris", "Spidris Elite"}, CREATURE:Name()) or CREATURE:isShootable() and table.find({"Crawler", "Insectoid Worker", "Swarmer", "Waspoid", "Spitter", "Kollos", "Spidris", "Spidris Elite"}, CREATURE:Name()) then
    CountMonster = CountMonster + 1
    end
    end

    if posy <= 31230 and Lure then
    if Creature:isAttacked() and targeting then
    if CountMonster <= MonsterToIgnore and lootbodies == false and lootbodiescount == 0 then
    if target.hppc > 35 and mppc >= 60 then
    targ("off")
    wait(100)
    stopattack()
    wait(100)
    end
    end
    elseif not Creature:isAttacked() and not targeting then
    if standtime >= 7000 and CountMonster >= 1 then
    settargeting("on")
    end
    end
    end


    i got ^^ on my script and it not working, idk how i shoud do it for fix it. ; /

  7. #7
    Banned
    Join Date
    Jan 2013
    Posts
    1,792
    Mentioned
    37 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    76 Post(s)
    Reputation
    191
    Rep Power
    0
    bot didn't show any error?
    i see mistake in line number 12.

    it should be
    Lua Code:
     
    settargeting("no")


    not like in your action(posted by you, not made)

    Lua Code:
     
    targ("off")


    Edit it and try. If bot shows any errors, post it here.

Posting Permissions

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