Results 1 to 2 of 2

Thread: Food taking. Need your help!

  1. #1
    Normal User
    Join Date
    Jul 2012
    Location
    Canada
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5

    Food taking. Need your help!

    Hello!

    I made a script before 2.0.0 everything was working fine but now something is wrong with picking up food in dp. I dont have much time to look around whats new whit the 2.0.0 and what I should edit to get it working. So I'm asking your help! I don't realy care about it its not very important if its not fixed..

    PHP Code:
    if itemcount("brown mushroom") <= 30 then
    openitem
    ("depot")
    wait(700,900)
    openitem(3502"locker")
    wait(700,900)
    openitem("minotaur backpack""depot chest")
    wait(700,900)
    moveitems("brown mushroom""minotaur backpack"MainBackpackName100)
    wait(700,1200)
    end 
    I did notice with the new color system my MainBackpackName was in black so I did try like this
    PHP Code:
    if itemcount("brown mushroom") <= 30 then
    openitem
    ("depot")
    wait(700,900)
    openitem(3502"locker")
    wait(700,900)
    openitem("minotaur backpack""depot chest")
    wait(700,900)
    moveitems("brown mushroom""minotaur backpack""MainBackpackName"100)
    wait(700,1200)
    end 
    But it didn't change anything it open the minotaur bp with brown but doesn't move them to mainbp..

    Something changed with the command moveitems?
    Last edited by Rexsavage; 03-12-2013 at 07:07 PM.

  2. #2
    Normal User Y4rR0's Avatar
    Join Date
    May 2012
    Location
    Warsaw, Poland
    Posts
    596
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    87
    Rep Power
    6
    Try this. Note that you need Sirmate's library
    PHP Code:
    local foodName "brown mushroom"
    local foodBp "minotaur backpack"
    local foodMin 30
    local foodMax 
    100

    if (itemcount(foodName) <= foodMinthen
        openitem
    ("depot")
        
    wait(700,900)
        
    openitem(3502"locker")
        
    wait(700,900)
        
    openitem(foodBp"Depot Chest")
        
    wait(700,900)
        
    Self.MoveItemsUpTo(foodNamefoodMaxfoodBpMainBackpackName)
        
    wait(700,1200)
    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
  •