Results 1 to 5 of 5

Thread: [Help] Action

  1. #1
    iBot User
    Join Date
    Apr 2012
    Posts
    66
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    20 Post(s)
    Reputation
    10
    Rep Power
    5

    [Help] Action

    I will explain what i can't do, if x item on ground use y item on item, i tried some, but fail..

    here is the actions

    local IDS = {4011, 4959, 3191}

    for i = -7, 7 do
    for j = -7, 7 do
    local POSX,POSY,POSZ = posx+i,posy+j,posz

    if (table.find(IDS,toptileitem(POSX,POSY,POSZ))) then
    useitemon("ITEM", POSX,POSY,POSZ) wait(1,2)
    break
    end
    end
    end
    That works, but not well,

    and that

    local itemID = "Item"
    local ID = {4011, 4959, 3191}

    for i = -2,2 do
    for j = -2,2 do
    for k = 1, #ID do
    if isitemontile(ID[k], posx+i,posy+j,posz) and table.find(itemID,toptileitem(posx+i,posy+j,posz)) then
    pausewalking(5000)
    useitemon("itemID", posx+i,posy+j,posz)
    wait(1000)
    end
    end
    end
    dont work..i'm not a expert in scripting i know few things, then is my question, anyone can help me fix any, or have one.. thx btw.

  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
    What are you trying to achieve?

  3. #3
    iBot User
    Join Date
    Apr 2012
    Posts
    66
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    20 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by pink_panther View Post
    What are you trying to achieve?
    slime fungus
    =\

  4. #4
    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
    PHP Code:
    local IDS = {401149593191}

    for 
    = -7do
        for 
    = -7do 
            
    local POSX,POSY,POSZ posx+i,posy+j,posz 

            
    if (table.find(IDS,toptileitem(POSX,POSY,POSZ))) then 
                useitemon
    ("ITEM"POSX,POSY,POSZ)
                
    wait(600,800)
            
    end 
        end 
    end 
    Might work better.

    After using the item, you need to wait a bit longer. Also, you don't need a break.

  5. #5
    iBot User
    Join Date
    Apr 2012
    Posts
    66
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    20 Post(s)
    Reputation
    10
    Rep Power
    5
    i will try, if works i will post here, thx btw
    Last edited by onlydevil; 02-03-2013 at 01:33 AM.

Posting Permissions

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