Results 1 to 4 of 4

Thread: Moving items

  1. #1
    Normal User
    Join Date
    Jul 2012
    Location
    Finland
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5

    Moving items

    Is it possible to move items below me to another tile?

  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
    Yes

    PHP Code:
    local toPosx posx+1
    local toPosy 
    posy
    moveitems
    (toptileitem(posxposyposz), ground(posxposyposz), ground(toPosxtoPosyposz), 100
    I'd advise you use something like, If toptileitem(posx, posy, posz) == "Whatever" then Moveitems. This way it wont try to move any of said item from a backpack or somewhere else that is visible.

    Change local toPosx and toPosy to any co-ords or use posx and posy + and or - 1 to move it to any of the 8 sqm around you, ect. Posz doesnt need to change.

    Rep me for this ;]
    Last edited by pink_panther; 07-25-2012 at 07:42 PM.

  3. #3
    Normal User
    Join Date
    Jul 2012
    Location
    Finland
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    Thanks but now im trying to use the item on ground so i tried to adapt this to it.
    Code:
    local toPosx = posx-1
    local toPosy = posy-4
    useitemon(toptileitem(posx, posy, posz), ground(posx, posy, posz), ground(toPosx, toPosy, posz), 100)
    Didnt work.
    e: Also what is branches id?
    Second attempt:
    Code:
    local toposy = posy-1
    useitemon('branch', posx, toposy, posz)
    Funny thing about this is it said i must learn this spell first. O_o
    Last edited by smargoos; 07-26-2012 at 01:12 PM.

  4. #4
    iBot User Raidensergio's Avatar
    Join Date
    Jun 2012
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Thak you, i need it

Posting Permissions

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