Results 1 to 4 of 4

Thread: Hive Task - Action need to Digestion

  1. #1
    iBot User
    Join Date
    Aug 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Question Hive Task - Action need to Digestion

    Anyone knows the action to use the blob bomb on the floor blobs?

  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
    useitemon(string item, integer x, integer y, integer z)

    You need to find the item ID of the item to use, and the positions that the blobs are on.

    Then you need to wrap it in something like If toptileitem() == wahtever, then useitemon() end
    Last edited by pink_panther; 08-08-2013 at 12:17 AM.

  3. #3
    iBot User
    Join Date
    Aug 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    How I will find the position? Cuz they are always moving on...

  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
    Bahh.......

    Try this:
    PHP Code:
    local blobRange 7
    local blobId 
    12345
    local bombId 
    23412

    for = (-blobRange,blobRange) do
        for 
    = (-blobRange,blobRange) do
            if 
    toptileitem(posx+iposy+jposz) == blobId then
                cavebot
    ("off")
                
    reachgrounditem(blobId)
                
    wait(600,1200)
                
    useitemon(bombId ,posx+i,posy+j,posz)
                
    wait(600,1200)
                
    cavebot("on")
            
    end
        end
    end 

    Or this:
    PHP Code:
    local blobRange 7
    local blobId 
    12345
    local bombId 
    23412
    local i 
    math.random(-blobRange,blobRange)
    local j math.random(-blobRange,blobRange)

    if 
    toptileitem(posx+iposy+jposz) == blobId then
        cavebot
    ("off")
        
    reachgrounditem(blobId)
        
    wait(600,1200)
        
    useitemon(bombIdposx+iposy+jposz)
        
    wait(600,1200)
        
    cavebot("on")
    end 

    First one should work better.

Tags for this Thread

Posting Permissions

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