Results 1 to 2 of 2

Thread: Grab spears from a bag on the ground

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

    Post Grab spears from a bag on the ground

    Hello, i would like to know how i can make my paladin pick up spears from a bag inside the cave, anyone knows how to do this? <3

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Code:
    local CONFIG {
        SPEARS = 10, -- total spears to grab to hand(10 - amount in hand)
        SPEAR_NAME = "SPEAR",
        BAG_NAME = "blue bag",
    }
    
    openitem(CONFIG.BAG_NAME)
    moveitems(CONFIG.SPEAR_NAME,CONFIG.BAG_NAME,weapon,(CONFIG.SPEARS)-(weaponamount))
    Last edited by soder; 09-25-2012 at 07:16 AM.

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
  •