Results 1 to 7 of 7

Thread: RP - taking x items from depot

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

    RP - taking x items from depot

    Hello. Do anyone can make a simply action to taking from depot x royal spears to backpack and than putting this spears to hand? Thanks for all.

  2. #2
    Banned
    Join Date
    Mar 2012
    Location
    Poland !
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    2
    Rep Power
    0
    Hello man ,
    I think you just have to use the built refiller and use the action to open a deposit and wait

  3. #3
    Normal User
    Join Date
    Apr 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    I use action > moveitems ('royal spear', 'depot chest', 'blue backpack', 30 ) but when character move to depot he always taking 50 spears( cuz there is only 50 spears ) and refiller from refill doesn't work.

  4. #4
    Normal User Nightcrawler's Avatar
    Join Date
    Apr 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    16
    Rep Power
    5
    To get royal spears from dp:

    Code:
    local AmmoFrom = "Backpack where you store the spears inside the depot"
    local AmmoTo = "Backpack to throw the spears "
    local AmmoMax = 0 -- Total number of spears you want to have after getting spears from depot. (Max amount)
    local AmmoID = "Royal Spear" 
    
    local AmmoToGet = math.abs(weaponamount - AmmoMax)
    
    if AmmoToGet >= 1 then
      reachgrounditem("depot")
      wait(2000)
      openitem("Depot")
      wait(1000)
      openitem("Depot Chest", "Locker")
      wait(1000)
      openitem(AmmoFrom, "Depot Chest")
      wait(1000)
      resizewindows()
    
      moveitemsonto(AmmoID, AmmoFrom, AmmoTo, AmmoToGet)
      wait(1000)
    end
    To Refill from backpack to hand you can use the Refiller.

    HealRange: 0 to 100%
    ManaRange: 0 to 100%
    ItemRefiller: 7378
    AmmoCount: 0 to 10 (10 = How many spears you will have in your hand to start Refilling)

    Remember to Enable both the refiller method and the rules or it will not work.
    Last edited by Nightcrawler; 04-23-2012 at 06:24 PM.

  5. #5
    Normal User
    Join Date
    Apr 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Hm.. I don't know why but in spear code I have error for example when i wrote in code openitem("AmmoFrom", "Depot Chest") the bp with spears don't want open ( i wrote in local the name of bp) but when i wrote a normaln name in ammofrom bp will open. So.. do I need any library to this bot or what?

  6. #6
    Normal User Nightcrawler's Avatar
    Join Date
    Apr 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    16
    Rep Power
    5
    Sorry there was a "AmmoFrom" instead of AmmoFrom in openitem(), now it will work properly.

  7. #7
    Normal User
    Join Date
    Apr 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Ye, know action is opening the bps but still don't want to move spears to bp. I trying to find this little error but can't find it. :/ Btw thanks for help.

Posting Permissions

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