Hi!
Trying to get this to work.
GFB on Stalker
--EDITED TO ADD CREDITS--
Credits:
Trying to get this to work.
GFB on Stalker
--EDITED TO ADD CREDITS--
Credits:
local RuneToUse = 'great fireball rune'
local Messages = getnewmessages()
local REGEX_DMG_TAKEN = '^You lose (%d+) (%l+) due to an attack by ?a?n? (.-)%.$'
if type(Messages) == 'table' then
for _, msg in ipairs(Messages) do
if msg.channel == 'Server Log' then
local dmgAmount, dmgType, dmgCreature = msg.content:match(REGEX_DMG_TAKEN)
if dmgCreature == "stalker" then
if maround(5, "Stalker") == 0 then
useitemoncreature(RuneToUse, id)
wait(2000)
end
end
end
end
end