bump.
Printable View
bump.
/////GHAZBARAN/////
-------------------------
00:00: An ancient evil is awakening in the mines beneath Hrodmir.
00:10: Demonic entities are entering the mortal realm in the Hrodmir mines.
00:20: The demonic master has revealed itself in the mines of Hrodmir.
/////MORGAROTH/////
-------------------------
00:00: The ancient volcano on Goroma slowly becomes active once again.
00:06: There is an evil presence at the volcano of Goroma.
00:12: Evil Cultists have called an ancient evil into the volcano on Goroma. Beware of its power mortals.
/////FERUMBRAS/////
-------------------------
00:00: The seals on Ferumbras old cidatel are glowing. Prepare for HIS return mortals.
00:10: Ferumbras return is at hand. The Edron Academy calls for Heroes to fight that evil.
00:20: Ferumbras has returned to his citadel once more. Stop him before its too late.
/////ORSHABAAL/////
-------------------------
00:00: Orshabaal's minions are working on his return to the World. LEAVE Edron at once, mortals.
00:03: Orshabaal is about to make his way into the mortal realm. Run for your lives!
00:06: Orshabaal has been summoned from hell to plague the lands of mortals again.
http://tibia.wikia.com/wiki/Raids
Pretty sure that has every raid message.
I threw this together quick, give it a shot I think it can do what you'd like:
Code:blockedMessages = {"New mail has arrived.",
}
local channel = Channel.New("Raid Messages", onSpeak, onClose)
GenericTextMessageProxy.OnReceive("GenProxy", function (proxy, message)
x = string.match(message, "(%d+)")
if tonumber(x) == nil and not table.contains(blockedMessages, message) then
channel:SendOrangeMessage("Raid Catcher", message)
end
end)
function onClose(channel)
print(channel .. " was closed.")
end
It reads your messages and separates what has a number in it and what doesn't (from what I've seen, most raid messages don't have a number in it so it's a decent filter)
If you see some random messages getting through, add it to the blocked list and they wont enter the channel anymore :)
Let me know if it works well for yah ^^