Results 1 to 6 of 6

Thread: Need 2 actions, simple, I believe

  1. #1
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5

    Need 2 actions, simple, I believe

    One that moves food in a Backpack for MainBP Depot, and one that uses Life Ring with 80 percent of mana.

    If you do not understand my English, I explain again

  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
    /sigh


    PHP Code:
    moveitems(itemfromtocount
    for rings, setup a re filler rule

    Easy as pie

  3. #3
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5
    So put the label, and I created a setup
    Correct? Or not kkkk

    FoodDPBP = "Red Backpack"

    PHP Code:
    --- FOOD REFILL --

    closewindows() 
    wait(5001000
    openitem(MainBP'back')  
    wait(5001500
    resizewindows() 
    end 
    reachgrounditem
    ("depot"
    wait(1000,2000
    openitem("depot"
    wait(700,900
    openitem(3502"locker")  
    wait(700,900
    openitem(FoodDPBP"depot chest"
    wait(700,900
    moveitems(EggMainBPFoodDPBP100

  4. #4
    Banned
    Join Date
    Jan 2013
    Posts
    1,792
    Mentioned
    37 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    76 Post(s)
    Reputation
    191
    Rep Power
    0
    i think it's good you must test it but edit last line.

    Lua Code:
     
    moveitems("Egg", MainBP, FoodDPBP, 100)


    you forgot about ""

  5. #5
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Lua Code:
    local item = "brown mushroom" -- item name to withdraw
        local location = MainBP  -- MainBP or "backpack name"
        local DepoLocation = FoodDPBP -- Backpack where you located food
        local WantedAmount = 100 -- ammount of wanted item
     
     
        local Amount = WantedAmount - (itemcount(item, location))
        closewindows()
        wait(1000)
        while windowcount() < 2 do
            openitem(MainBP, 'back')
            wait(500, 1000)
            resizewindows() 
            wait(500, 1000)
            openitem(SuppBP, MainBP, true)
            wait(500, 1000)
            resizewindows()
        end
        reachgrounditem("depot")
            while (windowcount("Locker") ==0) do 
                   openitem("depot")
                   wait(700,900)
            end
     
            while (windowcount("Depot Chest") == 0) do
                openitem(3502, "locker")
                wait(800,1000)
            end
     
            while (windowcount(ExtraItemBP) == 0) do
                openitem(ExtraItemBP, "Depot Chest", false)
                wait(1800,2000)
            end
     
     
        while Amount > 0 do
            if itemcount(item, DepoLocation) == 0 then
                openitem(DepoLocation, DepoLocation, false)
                wait(1000)
            end
            if Amount <= 0 then
                return
            else
                while Amount > 0 and (itemcount(item, DepoLocation) > 0)  do
                    moveitems(item, location, Amount)
                    wait(300)
                    Amount = WantedAmount - (itemcount(item, location))
                end
                if itemcount(DepoLocation, DepoLocation) == 0 and itemcount(item, DepoLocation) == 0 then
                    return
                end
            end
        end



    @Life Ring changer do it like Pink said with refiller easiest way PS. ID of Life Ring: 3052
    Last edited by Eli; 03-04-2014 at 06:51 PM.

  6. #6
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5
    Perfect, solved, thanks all

Posting Permissions

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