Results 1 to 5 of 5

Thread: Pick up Royal Spears from x spot (ground)

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

    Pick up Royal Spears from x spot (ground)

    HI, I'm in need of an action to pick up royal spears from the ground (x spot) to my right hand, so it picks up x amount of royal spears until my cap goes lower then 40.

  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
    why off the ground?

    why not add it to loot list, and set it to disable it on low cap. easier than picking them up off the ground?

  3. #3
    Normal User
    Join Date
    Jun 2012
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    10
    Rep Power
    5
    Cuz the creatures I hunt doesnt drop royal spears.

  4. #4
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    Lua Code:
    local xitem = "royal spear"
     
    openbrowsefield(xspot, yspot,zspot)
    wait(1200,1400)
    while (cap > 40) do
    itemstomove = (cap/itemweight(xitem))
    moveitems(xitem, "all", "weapon", itemstomove)
    wait(400,800)
    updateworld()
    end

  5. #5
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    moveitems("royal spear", ground(POS_X, POS_Y, POSZ), "weapon", math.floor((cap-40)/25))

Posting Permissions

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