Signup Now
Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Free User
    Join Date
    Apr 2014
    Posts
    3
    Reputation
    10
    Rep Power
    0

    Lightbulb Picking up x item from ground if bot sees said item

    So I'm looking for a persistent script to do what the title says.
    To be more precise I want the bot to;
    a)Loot y item when I have above x cap off the corpse(I currently handle this via Looting)
    b)If I dont have over x cap, it drops y item on the ground(from the corpses)
    c)Loot y item off the ground when bot sees one, IF I have above x cap

    Thank you in advance!

    P.S I tried to search for one but didnt quite find what I was looking for and I'm not well familiar enough with LUA to apply the scripts I found to my situation.
    Last edited by kuukkeli; 05-05-2014 at 06:51 PM.

  2. #2
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    U can set it in looting:
    b). Action: Loot & Drop
    Loot Condition: Cab above: X cap

    c). It should works but didn't tested yet :
     
    local itemsCollect = {'meat', 'ham'} -- add items here
    local moveOnBp = ('brown backpack') -- backpack for items
    local capMin = 50 -- min. cap to stop collecting

    auto(200, 500)

    while $cap > capMin do
    collectitems(moveOnBp, table.unpack(itemsCollect)) waitping()
    end
    Last edited by mistgun; 05-06-2014 at 12:20 AM.

  3. #3
    Free User
    Join Date
    Apr 2014
    Posts
    3
    Reputation
    10
    Rep Power
    0
    Thanks!
    Last edited by kuukkeli; 05-06-2014 at 06:12 PM.

  4. #4
    Free User
    Join Date
    Jul 2014
    Posts
    3
    Reputation
    10
    Rep Power
    0
    How should I remake it for picking up empty potion flasks?

  5. #5
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    Quote Originally Posted by bossyroxy View Post
    How should I remake it for picking up empty potion flasks?
    instead of 'meat', 'ham' put 283, 284, 285

  6. #6
    Free User
    Join Date
    May 2014
    Posts
    5
    Reputation
    10
    Rep Power
    0
    Hey, this script get only itens around to the character, u can put to get in next 5 sqm?

  7. #7
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    @slayer, should works, didn't tested..

    init start
    local itemsCollect = {'meat'}
    local moveOnBp = 'golden backpack'
    local capMin = 50

    table.id(itemsCollect)
    init end


    auto(1000)
    for j = -7, 7 do
    for i = -5, 5 do
    for _, v in ipairs(itemsCollect) do
    local top = topitem($posx+j, $posy+i, $posz).id
    if windowcount(moveOnBp) == 1 and $cap >= capMin and itemproperty(top, ITEM_PICKUPABLE) and $attacked.id == 0 then
    pausewalking(10000)
    moveitems(v, moveOnBp, ground($posx+j, $posy+i, $posz), 100) waitping()
    pausewalking(0)
    end
    end
    end
    end
    Last edited by mistgun; 07-26-2014 at 03:23 PM.

  8. #8
    Free User
    Join Date
    May 2014
    Posts
    5
    Reputation
    10
    Rep Power
    0
    This script dont work because need stop cavebot, he pass and dont stop for take the item.

  9. #9
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    Quote Originally Posted by slayer View Post
    This script dont work because need stop cavebot, he pass and dont stop for take the item.
    try now

  10. #10
    Free User
    Join Date
    Sep 2014
    Posts
    5
    Reputation
    10
    Rep Power
    0
    Iam Kind of noobish how get it to work?
    step by step please and how i get the bot to activate?

 

 

Tags for this Thread

Posting Permissions

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