Results 1 to 3 of 3

Thread: Buy in market

  1. #1
    iBot User
    Join Date
    Apr 2012
    Posts
    16
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    5

    Buy in market

    How i buy an item on market ? and put on main backpack?? a stack item!
    thank's

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    what are you trying to buy?

  3. #3
    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
    @RatoO

    Code:
    local itemname = 'Brown mushroom'
    local amount = 100
    local maxprice = 15
    
    setsettings("Settings\\Input\\OpenMenuPolicy", "Do nothing")
    setsettings("Settings\\CaveBot\\Settings\\OpenNextBp", "no")
    reachgrounditem("depot")
    wait(1500,2000)
    openitem("depot")
    wait(1500,2000)
    useitem(12903,"locker")
    wait(1500, 2000)
    buyitemmarket(itemname, amount, maxprice)
    setsettings("Settings\\Input\\OpenMenuPolicy", "Confirm if cavebotting")
    
    wait(2500)
    while windowcount(12902) == 0 do
    openitem(12902, "locker")
    wait(500,800)
    end
    
    while itemcount(itemname, mainbp) < amount do
    moveitems(itemname, mainbp, 100)
    wait(200,500)
    end
    What this will do.
    1. Reach depot
    2. Open depot
    3. Open market
    4. Buy 100 brown mushrooms
    5. Close market
    6. Open mail
    7. Move 100 mushrooms if lower than 100
    Last edited by Drakke; 06-25-2014 at 09:06 AM.

Posting Permissions

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