Try this one:
init start
-- VERSION 1.1.0 --
local Monsters = {"Swampling", "Marsh Stalker", "Snake", "Water Buffalo"}
local AmountToShoot = 3
local Players = {
Consider = true,
Distance = 20,
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(false, unpack(Monsters))
if sqm.amount >= AmountToShoot then
pausewalking(1000)
useitemon(Rune, 0, sqm.tile)
pausewalking(0)
wait(2000)
end
end
@Leonardo when i tried this it still doesnt work. I mean it works in a sense but it still tries to attack the ek. i cant get it to shoot the ava unless i move the ek around alot.
Im doing this at hellspawn.
How to add an option to shoot this rune when stuck?
@Leonardo you should add .isshootable to the persistent, because i used that on wote question for hunt when im doing work whit some friends and when im in the protecction zone try to shoot the rune xD
Hi Guys
I have problem with my area rune shooter script. My char try to shoot avalanches when in range but the bot walk meanwhile so my char ends up making exori frigo on the creature instead.
Can someone more experiences in bots please help me out ?
Here is my script
}
]]
Mobs = {'Draken Warmaster', 'Lizard High Guard', 'Lizard Legionnaire', 'Lizard Dragon Priest', 'Draken Warmaster'}
wave = 'exevo gran frigo hur'
ueName = 'exevo gran mas frigo'
WavAmount = getuseroption('Amount of monsters to cast wave.')
AoEAmount = getuseroption("Amount of monsters to cast Rune.")
UEAmount = getuseroption("Amount of monsters to cast UE.")
filteruseroptions(true)
auto(200)
if $vocshort ~= 'D' then
return
else
if maroundspell(ueName, 'any', unpack(Mobs)) >= UEAmount and CastMasVis and cancast(ueName) and (paround_ib(7, true) == 0 or not PVP) then
cast(ueName)
wait(500)
elseif maround(0, unpack(Mobs)) >= WavAmount and CastWave and cancast(wave) then
local BestAmount, BestDir = 0, $self.dir
for Dir, Amount in pairs({n = 0, e = 0, s = 0, w = 0}) do
Amount = maroundspell(wave, Dir, unpack(Mobs))
if Amount > BestAmount or (Amount >= BestAmount and Dir == $self.dir) then
BestAmount, BestDir = Amount, Dir
end
end
if BestAmount >= math.max(WavAmount, 1) then
while $self.dir ~= BestDir do
pausewalking(650)
turn(BestDir)
end
cast(wave)
pausewalking(0)
end
end
if runeinfo(Rune).cancast and itemcount(Rune) > 0 and (paround_ib(10, true) == 0 or not PVP) then
local temp = getarearunetile(PVP, unpack(Mobs))
if temp.amount >= math.max(AoEAmount, 1) then
useitemon(Rune, topitem(temp.x,temp.y,temp.z), temp.tile)
end
end
if $attacked.id > 0 and $attacked.dist <= 3 and $attacked.isshootable then
if $target.hppc >= 20 and cancast('exori gran frigo') then
cast('exori gran frigo')
wait(200,400)
elseif cancast('exori frigo') then
cast('exori frigo')
wait(200,400)
end
end
end
Thx
/ K
Last edited by krippzster; 12-05-2014 at 10:56 AM.
its not possible, the character makes in this case exori frigo before it even shoots the area rune. It's just not fast enouhg.