init start
local creatures = {"stalker"}
init end
auto(200)
table.lower(creatures)
foreach newmessage m do
if m.type == 18 then
local x = string.lower(string.match(m.content, 'You lose %d+ hitpoints due to an attack by .- (.-)%.') or '')
if table.find(creatures, x) then
if not findcreature(x) then
-- what now?
end
end
end
end
You should decide what kind of function you'll do to attack that monster, here's an example:
if cancastspell("exori") then
cast("exori")
waitping()
end