Signup Now
Results 1 to 3 of 3
  1. #1
    Free User
    Join Date
    Feb 2017
    Location
    skåne
    Posts
    21
    Reputation
    10
    Rep Power
    0

    avalanche shooting when no rune in bp.....

    hello
    i have been testing area shooter , it works . but it keeps on shooting even when there's no runes in bp
    could someone help me to place command ....... if localrune count >=1 then execute script. eventualy if itemcount ('avalanche rune') >=1 then execute
    else end or something like that



    init start
    -- VERSION 1.1.0 --

    local Monsters = {"amazon", "valkyrie", "ghoul", "witch", "bonebeast", "gargoyle"}

    local AmountToShoot = 4

    local Players = {
    Consider = true,
    Distance = 10,
    SafeList = {"Bubble", "Eternal Oblivion"},
    FloorDifference = 1
    }

    local Rune = "Avalanche Rune"

    local MoveSpeed = 9

    -- DO NOT EDIT BELOW --

    if not ($fasthotkeys or isbinded({Rune, 'crosshair'})) then
    printerrorf('Rune "%s" is not set on Tibia hotkeys, please change settings and restart script', Rune)
    end

    setsetting('Settings/MouseMoveSpeed', tostring(MoveSpeed))

    init end

    auto(100, 200)

    if not Players.Consider or paroundfloorignore(Players.Distance, Players.FloorDifference, unpack(Players.SafeList)) == 0 then
    local sqm = getarearunetile(not Players.Consider, unpack(Monsters))

    if sqm.amount >= AmountToShoot then
    pausewalking(1000)
    useitemon(Rune, 0, sqm.tile)
    pausewalking(0)
    wait(2000)
    end
    end






    thanks a lot for help



    and meaby one more thing:
    (((((((((((((((if $pattacker > 0 then)))))))))))))) this part of lua bugges out the script, how should it look like.


    auto(1000)

    if $pattacker > 0 then
    setsetting('Targeting/Enabled', 'no')
    gotolabel('start', 'gocity')
    selfcast('utani hur')
    end

  2. #2
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    @dziamal

    line 34

    init start
    -- VERSION 1.1.0 --

    local Monsters = {"amazon", "valkyrie", "ghoul", "witch", "bonebeast", "gargoyle"}

    local AmountToShoot = 4

    local Players = {
    Consider = true,
    Distance = 10,
    SafeList = {"Bubble", "Eternal Oblivion"},
    FloorDifference = 1
    }

    local Rune = "Avalanche Rune"

    local MoveSpeed = 9

    -- DO NOT EDIT BELOW --

    if not ($fasthotkeys or isbinded({Rune, 'crosshair'})) then
    printerrorf('Rune "%s" is not set on Tibia hotkeys, please change settings and restart script', Rune)
    end

    setsetting('Settings/MouseMoveSpeed', tostring(MoveSpeed))

    init end

    auto(100, 200)

    if not Players.Consider or paroundfloorignore(Players.Distance, Players.FloorDifference, unpack(Players.SafeList)) == 0 then
    local sqm = getarearunetile(not Players.Consider, unpack(Monsters))

    if itemcount(Rune) > 0 then
    if sqm.amount >= AmountToShoot then
    pausewalking(1000)
    useitemon(Rune, 0, sqm.tile)
    pausewalking(0)
    wait(2000)
    end
    end
    end


    $pattacker

  3. #3
    Free User
    Join Date
    Feb 2017
    Location
    skåne
    Posts
    21
    Reputation
    10
    Rep Power
    0
    tested works great..... thx

 

 

Posting Permissions

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