This script is derived from the way Leonardo made his Persistent Spell Attacker, but is aimed to be much much faster, which is critical for landing beams and waves.
Credit still partially goes to Leonardo, as I learned a thing or two from his script.
-- Simple Wave/Beam Shooter
-- Version 1.0.2
-- Made by Heronas
init start
local creatureNames = {
'Crystal Spider',
'Ice Golem',
}
-- Credits go to Leonardo for this
local players = {
safeMode = false,
distance = 10,
floors = 1,
whiteList = {"Lord'Paulistinha"},
}
local spells = {
{words = "exevo gran mas vis", amount = 4, monsters = {'Crystal Spider', 'Ice Golem', 'Wyvern'}},
{words = "exevo vis hur", amount = 3},
{words = "exevo vis hur", amount = 2, monsters = {'Crystal Spider'}},
{words = "exevo gran vis lux", amount = 2},
{words = "exevo flam hur", amount = 2, monsters = {'Wyvern', 'Polar Bear'}},
}
local shootDir = {'n', 'w', 's', 'e'}
for i,j in pairs(spells) do
spells[i].monsters = spells[i].monsters or creatureNames
end
init end
auto(10)
if not players.safeMode or paroundfloorignore(players.distance, players.floors, unpack(players.whiteList)) == 0 then
for i,_ in pairs(spells) do
if cancastspell(spells[i].words) then
for j,_ in pairs(shootDir) do
if maroundspell(spells[i].words, shootDir[j], unpack(spells[i].monsters)) >= spells[i].amount then
pausewalking(500)
turn(shootDir[j])
cast(spells[i].words)
pausewalking(0)
end
end
end
end
end
Works fairly simple, looks all around for monsters in spell ranges, then stops walking, faces monsters and fires.
Pausewalking or pausebot is really recommended due to walking another direction after facing. Even doing manual tests works pretty good.
You can add/remove spells as you please, UE spells probably work too, though I haven't tested them.
Just define the spell name and the amount of monsters to use, you can also set different monsters for each spell (stole that from Leonardo)PHP Code:
Version: 1.0.2 - Further optimisation
Version: 1.0.1 - Added safemode
Version: 1.0.0 - First release
EDIT: Just tested an UE spell, seems to work just fine.