Results 1 to 4 of 4

Thread: Action

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

    Action

    Good Morning guys, I need one script ... to move itens on ground to another position, exemple...
    When im going to my cave someplayers drop itens like "barrel" into the closed hole, so i need to move it to open the hole...

    something like that... position <-
    while (toptileitem(posx,posx+1posz) do
    moveitems(old position, behind me or on my position)
    end

    Is that possible?

  2. #2
    Normal User
    Join Date
    Jul 2012
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    omg no one??

  3. #3
    Normal User
    Join Date
    Jul 2012
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Bring up my post

  4. #4
    Normal User AcidAlchamy's Avatar
    Join Date
    Jul 2012
    Location
    The Labratory
    Posts
    749
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    180
    Rep Power
    7
    If you knew how; or if you wouldnt mind spending time working on this...

    PHP Code:

    function pickupitems(dir,...)
       
    local items = {...}
       
    local dire = {dirs = {'c''n''s''w''e''nw''ne''sw''se'},
             
    = {000= -11nw = -1ne 1sw = -1se 1},
             
    = {0= -1100nw = -1ne = -1sw 1se 1}}

       if 
    not dir or not table.find(dire.dirs,dirthen
          
    if dir ~= nil then
             table
    .insert(items,dir)
          
    end
          dir 
    'c'
       
    end
       
       local pos 
    = {posx+dire.x[dir], posy+dire.y[dir], posz}  
       
    local topid toptileitem(pos.x,pos.y,pos.z)
       
    local id topid
       local item 
    itemproperty(topid)
       
       if 
    #items == 0 then
          
    if topid ~= and item.isTakeable then
             moveitems
    (topid,ground(pos.x,pos.y,pos.z),'all',100)
          
    end
       
    else
          for 
    i,j in pairs(items) do
             if 
    type(j) == 'number' then
                id 
    j
             
    else
                
    id itemid(j)
             
    end

             
    if topid == id and item.isTakeable then
                moveitems
    (topid,ground(pos.x,pos.y,pos.z),'all',100)
                break
             
    end
          end
       end
    end 
    this could be edited to do what you want if you knew how. its a LOT of work tho lol.
    But at the moment; there is nothing that does this.

    my advice, use Antifurniture Break function; and pick up rubish using pickupitems('Rubish','c')

    Follow my Activity on Facebook?
    https://www.facebook.com/AcidAlchamyPage
    Download iBot : iBot v2.3.6 - Released
    My Free Scripts :
    ★Free Scripts★ By Acid Alchamy
    Acid Alchamy Updates :
    Updates About Acid Alchamy
    All Scripts by Acid Alchamy :
    All My Posted Scripts
    Latest Thread by Acid Alchamy:
    [Tutorial] Sellers - Avoid Getting Scammed

    +Rep Everyone That Helps You, I'll ALWAYS Return A +Rep.





Posting Permissions

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