Area Rune Shooter
Description
Attacks monsters with area runes like avalanche, great fireball, stoneshower or thunderstorm.
Configuration
Add monsters names on the Monsters variable to consider those monsters on the spells areas, an empty list will use on any monster. Set the AmountToShoot variable to use rune when the amount given are inside an area.
Edit Players.Consider to true if you are playing on PvP worlds, this option will avoid using runes when there are players near, set false to ignore this option. If you have set Players.Consider to true, edit the minimum distance to consider them by changing the Players.Distance parameter. To consider floors up and down use the Players.FloorDifference parameter. Optionally you can add friends on the SafeList so the script will ignore them.
Edit the Rune variable with the area rune name you want to use and finally change the MoveSpeed variable to use the mouse speed from 1 to 9.
Code
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(not Players.Consider, unpack(Monsters))
if sqm.amount >= AmountToShoot then
pausewalking(1000)
useitemon(Rune, 0, sqm.tile)
pausewalking(0)
wait(2000)
end
end
Download