Results 1 to 4 of 4

Thread: Action de Anti Forniture

  1. #1
    Premium User zezaway's Avatar
    Join Date
    Mar 2012
    Location
    Brasil
    Posts
    300
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    45
    Rep Power
    5

    Action de Anti Forniture

    Estou caçando nos swamps e sempre tem os palhaços para trapar, entao precizo de um antes forniture, ja procurei no forum n achei nenhum funcional..

    Estava usando esse action de anti forniture mas n ta funcionando, antifurnituretrap()

    se alguem poder me ajudar c uma action pra destruir c a machete, agradeço

    Check my free scripts thread!

  2. #2
    iBot User
    Join Date
    Apr 2012
    Posts
    232
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    42
    Rep Power
    5
    weapontouse = weapontouse or 14001 -- machete
    local blockwalkids = {2025, 2029, 2030, 2043, 2044, 2045, 2046, 2047, 2048, 2059, 2060, 2061, 2445, 2446, 2447, 2448, 2449, 2450, 2451, 2452, 2453, 2454, 2465, 2466, 2467, 2468, 2524, 2904, 2959, 2960, 2961, 2962, 2963, 2964, 2975, 2976, 2979, 2982, 2986, 2997, 2998, 2999, 3000, 3484, 3485, 3486, 3487, 3510, 3511, 3512, 3513, 5046, 5055, 5056, 6109, 6110, 6111, 6112, 6367, 6368, 6369, 6370, 7860, 7861, 7862, 7863, 9132, 9141, 10208, 10210, 10211, 10212, 10213, 10214, 10215}

    for i=-7,7 do
    for j=-5,5 do
    local x,y,z = posx+i,posy+j,posz
    if table.binaryfind(blockwalkids,toptileitem(x,y,z)) then
    if tilereachable(x,y,z) then
    pausewalking(10000)
    local topid = toptileitem(x,y,z)
    while tilereachable(x,y,z) and (math.abs(posx-x) > 1 or math.abs(posy-y) > 1) do
    reachlocation(x,y,z)
    wait(100,200)
    updateworld()
    end
    while toptileitem(x,y,z) == topid and posz == z and (math.abs(posx-x) <= 1 and math.abs(posy-y) <= 1) do
    useitemon(weapontouse,toptileitem(x,y,z),ground(x, y,z))
    pausewalking(5000)
    wait(400,500)
    updateworld()
    end
    pausewalking(0)
    end
    end
    end
    end
    só confirma se esse id é o da machete mesmo... só tem uma coisa, se tiver casa aberta com alguns desses itens q ele tenta quebrar, ele vai querer entrar pra destruir

    entao vc faz essa action 2 vezes, uma quando sair da hunt, desativando a action... e outra quando começar a hunt, ativando a action

  3. #3
    Normal User
    Join Date
    Jun 2013
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    4
    Voce pode colocar isto em uma persistent com um if standtime

    Assim caso seja maior que o tempo determinado ele use a action, só nao sei se da certo mas...

    Code:
    weapontouse = weapontouse or 3308 -- machete
    local blockwalkids = {2025, 2029, 2030, 2043, 2044, 2045, 2046, 2047, 2048, 2059, 2060, 2061, 2445, 2446, 2447, 2448, 2449, 2450, 2451, 2452, 2453, 2454, 2465, 2466, 2467, 2468, 2524, 2904, 2959, 2960, 2961, 2962, 2963, 2964, 2975, 2976, 2979, 2982, 2986, 2997, 2998, 2999, 3000, 3484, 3485, 3486, 3487, 3510, 3511, 3512, 3513, 5046, 5055, 5056, 6109, 6110, 6111, 6112, 6367, 6368, 6369, 6370, 7860, 7861, 7862, 7863, 9132, 9141, 10208, 10210, 10211, 10212, 10213, 10214, 10215}
    
    if standtime > 120000 then
    for i=-7,7 do 
    for j=-5,5 do 
    local x,y,z = posx+i,posy+j,posz 
    if table.binaryfind(blockwalkids,toptileitem(x,y,z)) then 
    if tilereachable(x,y,z) then
    pausewalking(10000) 
    local topid = toptileitem(x,y,z)
    while tilereachable(x,y,z) and (math.abs(posx-x) > 1 or math.abs(posy-y) > 1) do 
    reachlocation(x,y,z)
    wait(100,200)
    updateworld()
    end 
    while toptileitem(x,y,z) == topid and posz == z and (math.abs(posx-x) <= 1 and math.abs(posy-y) <= 1) do 
    useitemon(weapontouse,toptileitem(x,y,z),ground(x, y,z))
    pausewalking(5000)
    wait(400,500)
    updateworld()
    end 
    pausewalking(0)
    end
    end
    end
    end
    end
    repetindo nao sei se da certo mais vale a pena testar..
    Last edited by sotomofora; 07-16-2013 at 07:42 PM.

  4. #4
    Premium User zezaway's Avatar
    Join Date
    Mar 2012
    Location
    Brasil
    Posts
    300
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    45
    Rep Power
    5
    Obrigado galera, testarei

    Check my free scripts 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
  •