Signup Now
Results 1 to 2 of 2
  1. #1
    Free User
    Join Date
    Jul 2017
    Posts
    19
    Reputation
    10
    Rep Power
    0

    Angry Stupid moveitems function()

    I am trying to make very simple action script but always when im trying to use moveitems() function it doesnt work. So please tell me what is wrong.

    Code:
    local manas = "mana potion"
    local brownbp = getlootingdestination('mainbp')
    local purplebp = getlootingdestination('supplybp')
    
    while itemcount(manas, brownbp) > 0 do
    moveitems("mana potion",purplebp)
    end
    There is no error it just ignores that action. I don't know why. I believe that i dont have to explain my script. Anyone should understand it.

    Maybe my tutor @Cisco will know what is going on :P

  2. #2
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    Quote Originally Posted by szkodnik View Post
    I am trying to make very simple action script but always when im trying to use moveitems() function it doesnt work. So please tell me what is wrong.

    Code:
    local manas = "mana potion"
    local brownbp = getlootingdestination('mainbp')
    local purplebp = getlootingdestination('supplybp')
    
    while itemcount(manas, brownbp) > 0 do
    moveitems("mana potion",purplebp)
    end
    There is no error it just ignores that action. I don't know why. I believe that i dont have to explain my script. Anyone should understand it.

    Maybe my tutor @Cisco will know what is going on :P
    It should work I do not see anything wrong. The only thing I would change would be like this...

    local manas = "mana potion"
    local brownbp = getlootingdestination('mainbp')
    local purplebp = getlootingdestination('supplybp')

    while itemcount(manas, brownbp) > 0 and getcontainer(purplebp).emptycount > 0 do
    moveitems(manas,purplebp)
    wait(300,500)
    end


    If you want you can leave more detailed...

    local manas = "mana potion"
    local brownbp = getlootingdestination('mainbp')
    local purplebp = getlootingdestination('supplybp')

    while itemcount(manas, brownbp) > 0 and getcontainer(purplebp).emptycount > 0 do
    moveitems(manas,purplebp,brownbp,100)
    wait(300,500)
    end


    Did you check if the backpacks are open?

 

 

Tags for this Thread

Posting Permissions

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