Results 1 to 2 of 2

Thread: Edit script from neobot;)

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

    Edit script from neobot;)

    init start
    local slime_fungus_IDs = {12060, 12061, 12063, 12075, 12076}
    table.newsort(slime_fungus_IDs)
    init end

    auto(100)
    for i=-7,7 do
    for j=-7,7 do
    local x,y,z = $posx+i,$posy+j,$posz
    if tilereachable(x,y,z) and table.binaryfind(slime_fungus_IDs,topitem(x,y,z).i d) then
    pausewalking(10000)
    local topid = topitem(x,y,z).id
    while tilereachable(x,y,z) and $posz == z and (math.abs($posx-x) > 1 or math.abs($posy-y) > 1) do
    reachlocation(x,y,z)
    end
    while topitem(x,y,z).id == topid and $posz == z and (math.abs($posx-x) <= 1 and math.abs($posy-y) <= 1) do
    useitemon(12077,topitem(x,y,z).id,ground(x,y,z), 0)
    pausewalking(5000)
    wait(15500,16200)
    end
    pausewalking(0)
    end
    end
    end

















    GIVE REP +

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Test this

    PHP Code:
    local slime_fungus_IDs = {1206012061120631207512076}

    for 
    = -7,do 
        for 
    = -7,do 
            
    local x,y,posx+i,posy+j,posz 
            
            
    if isreachable(x,y,z) and table.find(slime_fungus_IDs,toptileitem(x,y,z)) then 
                pausewalking
    (10000
                
    local topid toptileitem(x,y,z)

                while 
    isreachable(x,y,z) and posz == and (math.abs(posx-x) > or math.abs(posy-y) > 1) do 
                    
    reachlocation(x,y,z
                
    end 

                
    while toptileitem(x,y,z) == topid and posz == and (math.abs(posx-x) <= and math.abs(posy-y) <= 1) do 
                    
    useitemon(12077,ground(x,y,z)) 
                    
    pausewalking(5000
                    
    wait(15500,16200
                
    end 
                pausewalking
    (0
            
    end 
        end 
    end 

Posting Permissions

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