Results 1 to 4 of 4

Thread: collect items from ground

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

    collect items from ground

    I need a script for collecting vials from ground. Anyone could give me a link to related topic or just paste the code? Thanks

  2. #2
    Administrator Manuu's Avatar
    Join Date
    Jun 2012
    Location
    Curitiba
    Posts
    3,667
    Mentioned
    203 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    495 Post(s)
    Reputation
    233
    Rep Power
    10
    pickupitems()

    Loja

    Site

    Facebook

    Skype

    Promoção

    manuellascripts
    --

  3. #3
    Normal User
    Join Date
    Dec 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Okay i made it. Now the question is - is it safe, using this function?

  4. #4
    Normal User nemiks's Avatar
    Join Date
    Aug 2012
    Posts
    225
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    17
    Rep Power
    5
    yes is safe but you must add to action this
    PHP Code:
    local CAP 500 -- your cap to collect items from ground
    local items 
    = {111122223333} -- id of your items to pick up
    local LastDestination 
    "Gold Backpack" name of bp with you pickup items


    for = -5,do
        for 
    = -5,do
            for 
    =1#items
                
    if cap >= CAP then
                    
    if toptileitem(posx+iposz+jposz) == items[kthen
                        pickupitems
    (unpack(items))
                    
    end
                end
            end
        end
    end 
    check it, if this dont work give me answer on pm.
    Last edited by nemiks; 02-19-2013 at 12:06 PM.

Posting Permissions

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