Results 1 to 7 of 7

Thread: pick up certain amount of items

  1. #1
    iBot User
    Join Date
    Aug 2013
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    pick up certain amount of items

    Current Action...
    Code:
    if (itemcount("Blank Rune") <= 0) then
        pickupitems("Blank Rune")
        wait(1000)
    end
    How do I change this to pick up a certain amount of blank runes, like say 66 of them...

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    [ilua]moveitems("blank rune",ground(posx,posy,posz),"all",66)[/ilua]

  3. #3
    iBot User
    Join Date
    Aug 2013
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by soder View Post
    [ilua]moveitems("blank rune",ground(posx,posy,posz),"all",66)[/ilua]
    Have not tried it yet but I will. Thanks!
    Is that to move them to the ground or to pick them up?

  4. #4
    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
    moveitems('item name', FROM, TO, amount)

  5. #5
    iBot User
    Join Date
    Aug 2013
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    thanks, I'm working with that now, is working better.

  6. #6
    iBot User
    Join Date
    Aug 2013
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Exclamation

    I am trying this to DROP all empty flasks, ava runes, and mana potions onto the ground in certain locations... needless to say it is not working...

    any advice?
    Code:
    local flaskcount = (itemcount(285) + itemcount(284) + itemcount(283)
    local avacount = itemcount("avalanche runes")
    local mpcount = itemcount("mana potion")
    
    moveitems("empty potion flasks", mainBp, ground(33189,32814,7), flaskcount)
    wait (500,1000)
    moveitems("avalanche runes", mainBp, ground(33188,32814,7), avacount)
    wait (500,1000)
    moveitems("mana potion", mainBp, ground(33189,32813,7), mpcount)
    wait (500,1000)

  7. #7
    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
    Code:
    local flaskcount = (itemcount(285) + itemcount(284) + itemcount(283)
    local avacount = itemcount("avalanche runes")
    local mpcount = itemcount("mana potion")
    
    moveitems("empty potion flask", mainBp, ground(33189,32814,7), flaskcount)
    wait (500,1000)
    moveitems("avalanche rune", mainBp, ground(33188,32814,7), avacount)
    wait (500,1000)
    moveitems("mana potion", mainBp, ground(33189,32813,7), mpcount)
    wait (500,1000)
    Dont think "Empty potion flask" will work, think you need to use the ID of the flask

    Code:
    moveitems(285, mainBp, ground(33189,32814,7), flaskcount)
    wait (500,1000)
    moveitems(284, mainBp, ground(33189,32814,7), flaskcount)
    wait (500,1000)
    moveitems(283, mainBp, ground(33189,32814,7), flaskcount)
    wait (500,1000)
    Or just use this to drop it directly below you

    Code:
    dropitems(283,284,285)

Posting Permissions

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