Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Use Item on the Ground(Juicy Roots)

  1. #1
    iBot User
    Join Date
    May 2012
    Location
    Albufeira/Portugal
    Posts
    82
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    11
    Rep Power
    5

    Use Item on the Ground(Juicy Roots)

    Hello There!
    So I'm making myself a Oramond Script and I would like it to be a tasker, which means that my character will have to collect juicy roots. And to do so I made an action which works quite well but when character gets to the Juicy Root itself he doesn't use it! So I came here hoping I could get some help from our best scripters. So here is the action I made:
    Code:
    local ItemtoUse = 21104
    
    if CollectRoots and (maround(7) == 0) then
    reachgrounditem(ItemtoUse)
    wait(100,1000)
    useitem(21104)
    end
    Soon, my own store!
    Vocation
    Level
    Script
    Status

  2. #2
    Premium User Norkk's Avatar
    Join Date
    Jan 2013
    Location
    BH - MG - Brazil
    Posts
    1,167
    Mentioned
    78 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    207 Post(s)
    Reputation
    135
    Rep Power
    7
    X X X
    C J X
    X X X

    Usually i make a Stand on 'C', if setup is checked to Collect, i use the waypoint Use (East), so bot will use the sqm at right. If the setup is not checked, then i just jump this waypoint Use by using gotolabel(wpt.id+2) or something.

    My Scripts - Norkk Free Scripts
    New Project - Norkk Project

    EK 208 sold to @yhuel

  3. #3
    iBot User
    Join Date
    May 2012
    Location
    Albufeira/Portugal
    Posts
    82
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    11
    Rep Power
    5
    @Norkk
    Well I can do that but It would really drop the exp/h rate in my opinion, so instead of filling script up with useless "if not location" checks I'd rather prefer to have an action instead. I mean I think it's possible to make something like: character recognizes the id of Juicy Root, then it gets the root position(which will be different for every root ofc) and then it just come to it and collect it. But thanks for the tip bro!
    Soon, my own store!
    Vocation
    Level
    Script
    Status

  4. #4
    Premium User Norkk's Avatar
    Join Date
    Jan 2013
    Location
    BH - MG - Brazil
    Posts
    1,167
    Mentioned
    78 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    207 Post(s)
    Reputation
    135
    Rep Power
    7
    Quote Originally Posted by pavelitoo View Post
    @Norkk
    Well I can do that but It would really drop the exp/h rate in my opinion, so instead of filling script up with useless "if not location" checks I'd rather prefer to have an action instead. I mean I think it's possible to make something like: character recognizes the id of Juicy Root, then it gets the root position(which will be different for every root ofc) and then it just come to it and collect it. But thanks for the tip bro!
    I've asked Jonatas, and he told me to try to use this: useitem(id, x, y, z)
    My Scripts - Norkk Free Scripts
    New Project - Norkk Project

    EK 208 sold to @yhuel

  5. #5
    iBot User
    Join Date
    May 2012
    Location
    Albufeira/Portugal
    Posts
    82
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    11
    Rep Power
    5
    @Norkk thanks bro will try it
    Soon, my own store!
    Vocation
    Level
    Script
    Status

  6. #6
    iBot User
    Join Date
    May 2012
    Location
    Albufeira/Portugal
    Posts
    82
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    11
    Rep Power
    5
    So the string useitem(21104, x, y, z)
    doesnt work either.
    atleast I've tried without having Cavebot "on" but character still goes to the Juicy Root but he doesn't use it for some reason
    Soon, my own store!
    Vocation
    Level
    Script
    Status

  7. #7
    Premium User Norkk's Avatar
    Join Date
    Jan 2013
    Location
    BH - MG - Brazil
    Posts
    1,167
    Mentioned
    78 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    207 Post(s)
    Reputation
    135
    Rep Power
    7
    @pavelitoo, you should make 2 loops, to search if posx + iterator, posy +iterator, posz is equal to your RootsID, then you use, and it should work
    Last edited by Norkk; 03-17-2015 at 04:52 PM.
    My Scripts - Norkk Free Scripts
    New Project - Norkk Project

    EK 208 sold to @yhuel

  8. #8
    iBot User
    Join Date
    May 2012
    Location
    Albufeira/Portugal
    Posts
    82
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    11
    Rep Power
    5
    @Norkk the problem is - I'm not a scripter so u can imagine that I don't even know what "iterator" means Haha
    So far I have:
    local ItemtoUse = 21104

    if CollectRoots and (maround(7) == 0) then
    reachgrounditem(ItemtoUse)
    wait(100,1000)
    useitem(ItemtoUse,x,y,z)
    end
    Any Idea on how to fix it? I really don't want to make another topic
    Soon, my own store!
    Vocation
    Level
    Script
    Status

  9. #9
    Premium User Norkk's Avatar
    Join Date
    Jan 2013
    Location
    BH - MG - Brazil
    Posts
    1,167
    Mentioned
    78 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    207 Post(s)
    Reputation
    135
    Rep Power
    7
    Quote Originally Posted by pavelitoo View Post
    @Norkk the problem is - I'm not a scripter so u can imagine that I don't even know what "iterator" means Haha
    So far I have:


    Any Idea on how to fix it? I really don't want to make another topic
    Try this one (i didn't tested yet)

    Lua Code:
     
    local Roots = 21104
     
    for cont1=-7,7 do
       for cont2=-7,7 do
           if toptileitem(posx+ cont1,posy+ cont2,posz) == Roots then
              useitem(21104, posx+cont1,posy+cont2,posz)
           end
       end
    end
    My Scripts - Norkk Free Scripts
    New Project - Norkk Project

    EK 208 sold to @yhuel

  10. #10
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    @pavelitoo

    I use this one in my script

    local range = 5

    for i=-range,range do
    for j=-range,range do
    if toptileitem(posx+i,posy+j,posz) == 21104 and maround(7) == 0 and lootbodiescount == 0 then
    settargeting('off')
    setcavebot('off')
    while toptileitem(posx+i,posy+j,posz) == 21104 do
    useitem(21104,ground(posx+i,posy+j,posz))
    wait(200,300)
    updateworld()
    end
    setcavebot('on')
    settargeting('on')
    end
    end
    end

Posting Permissions

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