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