Signup Now
Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Free User Eli's Avatar
    Join Date
    Dec 2013
    Location
    www.eliscripts.com
    Posts
    355
    Reputation
    85
    Rep Power
    21
    Fixed typo in action, added video example
    Skype account has been hacked, beware! We will not deal anymore with anyone using skype!

  2. #12
    Free User
    Join Date
    Jun 2014
    Posts
    173
    Reputation
    33
    Rep Power
    20
    Quote Originally Posted by Eli View Post
    Hello guys, I'd like to share with you my action for luring monsters, in past we usually use wait() to make good luring spot, now it may be done better atleast I hope you'll like it so let's start..
    That's an cavebot action so put in in waypoints where do you want wait till X mobs come on you then start walking ahead. I'll make video tutorial hopefully this week!

    PS. The action is based on this


    Tutorial is too big word, but take it as example..



    local function isInArray(arr, value)
    for _, v in ipairs(arr) do
    if (v:lower() == value:lower()) then
    return true
    end
    end
    return false
    end

    local MonstersLure = {"Dwarf Soldier", "Dwarf"} -- hunting monsters, you can add more as many as you want to lure
    local timeLimit = 0
    local Lure = true

    if Lure then -- you may add some extra own coditions here like hunting style or something..
    while true do
    print(timeLimit)
    if (timeLimit >= 10000) or (maround(2, unpack(MonstersLure)) >= 4) then
    break
    end

    local minamount = 0
    foreach creature m "mf" do
    if (m.dist > 2) and (m.dist <= 7) and m.isreachable and isInArray(MonstersLure, m.name) then
    minamount = minamount + 1
    end
    end

    if (minamount > 0) then
    local r = math.random(200, 300)
    wait(r)
    timeLimit = timeLimit + r
    else
    print("minamount: " .. minamount)
    break
    end

    end
    end
    this action should be used with another persistent that turns target on and off if X monsters?

  3. #13
    Free User blakw's Avatar
    Join Date
    Dec 2013
    Posts
    2,669
    Reputation
    73
    Rep Power
    26
    Quote Originally Posted by felipepiva View Post
    this action should be used with another persistent that turns target on and off if X monsters?
    No, you use this lure action as a "pusher" on waypoints and then add another waypoint action with targeting enabler when you reach the desired lure point.


    Visit:
    (◣_◢)

  4. #14
    Free User
    Join Date
    Jun 2014
    Posts
    173
    Reputation
    33
    Rep Power
    20
    Quote Originally Posted by blakw View Post
    No, you use this lure action as a "pusher" on waypoints and then add another waypoint action with targeting enabler when you reach the desired lure point.
    thank you mr blakw!

  5. #15
    Free User
    Join Date
    Jun 2014
    Posts
    173
    Reputation
    33
    Rep Power
    20
    Quote Originally Posted by Borges View Post
    One tip for you...

    your script os waiting all monsters on screen...

    add other check like this:

    m.posx < $posx
    m.posx > $posx
    m.posy > $posy
    m.posy < $posy


    F.E: if you going to east, you want lure monsters from west... so you put
    m.posx < $posx

    anyway gj.
    Borges
    what line of script should i change to m.posx or posY?? ty

  6. #16
    Free User Borges's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    1,469
    Reputation
    205
    Rep Power
    25
    Quote Originally Posted by felipepiva View Post
    Borges
    what line of script should i change to m.posx or posY?? ty
    line 23
    Helped you? REP+

  7. #17
    Free User
    Join Date
    Jun 2014
    Posts
    173
    Reputation
    33
    Rep Power
    20
    Quote Originally Posted by Borges View Post
    line 23
    thanks!!
    You must spread some Reputation around before giving it to Borges again.
    sry about that:/

  8. #18
    Free User
    Join Date
    Jun 2014
    Posts
    173
    Reputation
    33
    Rep Power
    20
    Quote Originally Posted by Borges View Post
    line 23
    Code:
    local function isInArray(arr, value)
        for _, v in ipairs(arr) do
            if (v:lower() == value:lower()) then
                return true
            end
        end
        return false
    end
     
    local MonstersLure = {"Dwarf Soldier", "Dwarf"} -- hunting monsters, you can add more as many as you want to lure
    local timeLimit = 0
    local Lure = true 
     
    if Lure then -- you may add some extra own coditions here like hunting style or something..
        while true do
            print(timeLimit)
            if (timeLimit >= 10000) or (maround(2, unpack(MonstersLure)) >= 4) then 
                break
            end
               
            local minamount = 0
            foreach creature m "mf" do
                if (m.dist > 2) and (m.dist <= 7) and (m.posx < $posx) and m.isreachable and isInArray(MonstersLure, m.name) then
                    minamount = minamount + 1
                end
            end
     
            if (minamount > 0) then
                local r = math.random(200, 300)
                wait(r)
                timeLimit = timeLimit + r
            else
                print("minamount: " .. minamount)
                break
            end
           
        end
    end
    should look like this if im going east??

  9. #19
    Free User Borges's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    1,469
    Reputation
    205
    Rep Power
    25
    Quote Originally Posted by felipepiva View Post
    Code:
    local function isInArray(arr, value)
        for _, v in ipairs(arr) do
            if (v:lower() == value:lower()) then
                return true
            end
        end
        return false
    end
     
    local MonstersLure = {"Dwarf Soldier", "Dwarf"} -- hunting monsters, you can add more as many as you want to lure
    local timeLimit = 0
    local Lure = true 
     
    if Lure then -- you may add some extra own coditions here like hunting style or something..
        while true do
            print(timeLimit)
            if (timeLimit >= 10000) or (maround(2, unpack(MonstersLure)) >= 4) then 
                break
            end
               
            local minamount = 0
            foreach creature m "mf" do
                if (m.dist > 2) and (m.dist <= 7) and (m.posx < $posx) and m.isreachable and isInArray(MonstersLure, m.name) then
                    minamount = minamount + 1
                end
            end
     
            if (minamount > 0) then
                local r = math.random(200, 300)
                wait(r)
                timeLimit = timeLimit + r
            else
                print("minamount: " .. minamount)
                break
            end
           
        end
    end
    should look like this if im going east??
    yep..
    Helped you? REP+

 

 

Posting Permissions

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