Results 1 to 5 of 5

Thread: Need help with withdraw mushrooms from depot

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    119
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Need help with withdraw mushrooms from depot

    thats the deal, i have a script of yalahar cemetery and guess what, my action to withdraw brown mushrooms doesnt work when theres less then how much i want to withdraw like:
    *i want to withdraw 25

    bp with 326 brown mushrooms : 26, 100, 100, 100 it withdraw 25 ok

    BUT if i have 313: 13, 100, 100, 100 it doesnt withdraw and just keep stanting at depot...
    thats the action that i am using

    Code:
    if itemcount(FoodType) <= FoodRefill then
    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    
    while (windowcount("Depot Chest") == 0)
    do
        openitem(3502, "locker")
        wait(700,900)
    end
    
    
    openitem(DpBP, "Depot Chest")
    wait(400,700)
    
    local mushroomtowithdraw = positive(FoodMax - itemcount(FoodType, MainBP))
    
    moveitems(FoodType, DpBP, MainBP, mushroomtowithdraw)
    wait(400,700)
    end
    i hope you guys have a solution for me

  2. #2
    Normal User
    Join Date
    Jul 2012
    Location
    Sweden
    Posts
    221
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    58
    Rep Power
    5
    PHP Code:
    local FoodBP "Blue Backpack" -- Name of DPBP
    local BP1 
    "Red Backapck" -- Were you want the FoodMainBP?
    local FoodName "brown mushrooms" -- FoodName
    local FoodToMove 
    positive(foodmax itemcount(FoodNameBP1))

    local foodmax 50 -- Max Food you want to Refill

    reachgrounditem
    ("depot"wait(400800)
    openitem("depot"wait(1000)
    openitem("depot chest""locker"wait(1000)
    openitem(FoodBP"depot chest"wait(1000)
    moveitems(FoodNameFoodBPBP1FoodToMovewait(1000

    try this one

  3. #3
    Normal User
    Join Date
    Jun 2012
    Posts
    119
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    same error when i want to withdraw 20 but i wave 119 it doesnt withdraw :/

  4. #4
    Normal User kozik7's Avatar
    Join Date
    Oct 2012
    Posts
    146
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    here you have action for withdraw ass stars from dp to mainbp
    try edit it for mushrooms
    sorry bro but i dont have time now for doing it for you.

    PHP Code:
    local AssDPBP "Yellow Backpack"
    local AssToMove = (AssMax - (itemcount(AssType)+weaponamount))

    reachgrounditem("depot"wait(400800)
    openitem("depot"wait(1000)
    openitem("depot chest""locker"wait(1000)
    openitem(AssDPBP"depot chest"wait(1000)

    while (
    itemcount(AssTypeMainBP)+weaponamount) < AssMax do
    moveitems(AssTypeAssDPBPMainBPAssToMovewait(1000)
    end 
    AssType = name food
    Last edited by kozik7; 01-17-2013 at 02:52 PM.

  5. #5
    Normal User
    Join Date
    Jun 2012
    Posts
    119
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    ill try mr kozik, thanks

Posting Permissions

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