Signup Now
Results 1 to 6 of 6
  1. #1
    Free User
    Join Date
    May 2014
    Posts
    68
    Reputation
    12
    Rep Power
    20

    use trees when no monster (oramond minos)

    Hello guys... id like to make the task at oramond while boting.
    anyone knows how to make an action to use the trees when no monsters atacking?
    Thanks a lot!!

  2. #2
    Free User
    Join Date
    Dec 2013
    Posts
    260
    Reputation
    26
    Rep Power
    21
    i need this also

  3. #3
    Banned
    Join Date
    Jul 2014
    Posts
    358
    Reputation
    83
    Rep Power
    0
    try this maybe
    init start
    local treeids = {123, 1548, 8496}

    local function gettree(treeids)
    for x = -7, 7 do
    for y = -5, 5 do
    local posx, posy = $posx + x, $posy + y
    local id = topitem(posx, posy, $posz).id

    if table.find(treeids, id) then
    return {x = posx, y = posy, id = id}
    end
    end
    end
    return nil
    end
    init end

    auto(200)
    local tree = gettree(treeids)

    if tree and maround(7) == 0 then
    reachlocation(tree.x, tree.y, $posz)
    useitem(tree.id, ground(tree.x, tree.y, $posz))
    end

  4. #4
    Free User
    Join Date
    May 2014
    Posts
    68
    Reputation
    12
    Rep Power
    20
    Quote Originally Posted by walukasz View Post
    try this maybe
    init start
    local treeids = {123, 1548, 8496}

    local function gettree(treeids)
    for x = -7, 7 do
    for y = -5, 5 do
    local posx, posy = $posx + x, $posy + y
    local id = topitem(posx, posy, $posz).id

    if table.find(treeids, id) then
    return {x = posx, y = posy, id = id}
    end
    end
    end
    return nil
    end
    init end

    auto(200)
    local tree = gettree(treeids)

    if tree and maround(7) == 0 then
    reachlocation(tree.x, tree.y, $posz)
    useitem(tree.id, ground(tree.x, tree.y, $posz))
    end
    should i change the IDs?

  5. #5
    Free User
    Join Date
    May 2014
    Posts
    68
    Reputation
    12
    Rep Power
    20
    haha yes ofc! ill try now! thanks

  6. #6
    Free User
    Join Date
    May 2014
    Posts
    68
    Reputation
    12
    Rep Power
    20
    awesome @walukasz 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
  •