Results 1 to 8 of 8

Thread: moveitems()

  1. #1
    iBot User 3173654's Avatar
    Join Date
    Aug 2012
    Posts
    1,393
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    28 Post(s)
    Reputation
    202
    Rep Power
    9

    moveitems()

    Action to move item on ground to cursor sqm

    sorry english
    http://www.tibiaibot.com/forum/showthread.php?16907-FREE-Scripts-3173654&highlight=3173654+free+scripts

  2. #2
    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 x = cursorinfo().x
    local y = cursorinfo().y
    moveitems("item", "all", ground(x,y,posz), 1)
    Last edited by shanp; 08-17-2014 at 11:01 AM.

  3. #3
    iBot User 3173654's Avatar
    Join Date
    Aug 2012
    Posts
    1,393
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    28 Post(s)
    Reputation
    202
    Rep Power
    9
    Quote Originally Posted by shanp View Post
    Lua Code:
    moveitems("item", "all", ground(cursorinfo().x,cursorinfo.y,posz), 1)
    thanks so much shanp!!

    don't work...
    Code:
    10:21 : LUA:DoAction:Action2: - LuaInterface.LuaScriptException: [string "chunk"]:1: attempt to index global 'cursorinfo' (a userdata value)
    http://www.tibiaibot.com/forum/showthread.php?16907-FREE-Scripts-3173654&highlight=3173654+free+scripts

  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
    @3173654 edited, check now

  5. #5
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    @3173654 @shanp

    Just to improve it if you want to throw more items

    Lua Code:
     
    local x = cursorinfo().x
    local y = cursorinfo().y
    local ItemsToThrow = {'item1', 'item2', 'item3'}
     
    for i=1,#ItemsToThrow do
    moveitems(ItemsToThrow[i], "all", ground(x,y,posz), 1)
    end
    Last edited by Drakke; 08-17-2014 at 02:30 PM.

  6. #6
    iBot User 3173654's Avatar
    Join Date
    Aug 2012
    Posts
    1,393
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    28 Post(s)
    Reputation
    202
    Rep Power
    9
    @Drakke, @shanp ... thank =D works fine, but i need to move ground to other cursor sqm (SOCCER)

    pls '_'
    http://www.tibiaibot.com/forum/showthread.php?16907-FREE-Scripts-3173654&highlight=3173654+free+scripts

  7. #7
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    Quote Originally Posted by 3173654 View Post
    @Drakke, @shanp ... thank =D works fine, but i need to move ground to other cursor sqm (SOCCER)

    pls '_'
    Here you go then, from sqm you stand on to cursor sqm

    Lua Code:
     
    local x = cursorinfo().x
    local y = cursorinfo().y
    local ItemsToThrow = {'item1', 'item2', 'item3'}
     
    for i=1,#ItemsToThrow do
    moveitems(ItemsToThrow[i], ground(posx,posy,posz), ground(x,y,posz), 1)
    end

  8. #8
    iBot User 3173654's Avatar
    Join Date
    Aug 2012
    Posts
    1,393
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    28 Post(s)
    Reputation
    202
    Rep Power
    9
    Quote Originally Posted by Drakke View Post
    Here you go then, from sqm you stand on to cursor sqm

    Lua Code:
     
    local x = cursorinfo().x
    local y = cursorinfo().y
    local ItemsToThrow = {'item1', 'item2', 'item3'}
     
    for i=1,#ItemsToThrow do
    moveitems(ItemsToThrow[i], ground(posx,posy,posz), ground(x,y,posz), 1)
    end
    thanks @Drakke @shanp rep++
    http://www.tibiaibot.com/forum/showthread.php?16907-FREE-Scripts-3173654&highlight=3173654+free+scripts

Posting Permissions

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