Hello!
I need this script to just look if X player gets attacked from monster.
Right now it can be any player.
So... how to change "^(.+)" to getuseroption('friendname')? I have tried but I dont get it ;( Thanks!
init start
local monstersConsider = {'Juggernaut'}
table.lower(monstersConsider)
init end
auto(200)
foreach newmessage m do
if m.type == MSG_STATUSLOG then
local _, _, _, name = m.content:match('^(.+) loses (%d+) (%l+) due to an attack by ?a?n? (.-)%.$')
if name and table.find(monstersConsider, name:lower()) and maroundspell('exeta res', 'any', unpack(monstersConsider)) then
castspell('exeta res')
end
end
end