
Welcome to the Achaea Forums! Please be sure to read the Forum Rules.
Rift Spam Cleaner

Aelios
Member Posts: 449 ✭✭✭✭✭ - Grand Achaean
Had a little interest when I shared a log and someone asked for the rift scripts I use. It really cleans things up for all classes that do a lot of rift work. (Runewarden, Magi, Alchemist, Druid, etc) It's a simple script, but really pretty - and since I had 3 people ask for it already, I figured I would share it with everyone here!
INRIFT TRIGGER:
- Regex : ^You store (\d+) (\w+) (\w+), bringing the total in the rift to (\d+).$
- Regex : ^You store (\d+) (\w+), bringing the total in the rift to (\d+).$
Body:
deleteFull()
if matches[4] == "ink" then
if matches[3] == "red" then
cecho("<DarkSlateGray>Inrift<white>: <LightSlateGray>" ..matches[2].. "<red> red<LightSlateGray> ink. (" ..matches[5].. ")")
elseif matches[3] == "blue" then
cecho("<DarkSlateGray>Inrift<white>: <LightSlateGray>" ..matches[2].. "<blue> blue<LightSlateGray> ink. (" ..matches[5].. ")")
elseif matches[3] == "green" then
cecho("<DarkSlateGray>Inrift<white>: <LightSlateGray>" ..matches[2].. "<green> green<LightSlateGray> ink. (" ..matches[5].. ")")
elseif matches[3] == "yellow" then
cecho("<DarkSlateGray>Inrift<white>: <LightSlateGray>" ..matches[2].. "<yellow> yellow<LightSlateGray> ink. (" ..matches[5].. ")")
elseif matches[3] == "purple" then
cecho("<DarkSlateGray>Inrift<white>: <LightSlateGray>" ..matches[2].. "<purple> purple<LightSlateGray> ink. (" ..matches[5].. ")")
elseif matches[3] == "gold" then
if matches[4] == "flake" then
else cecho("<DarkSlateGray>Inrift<white>: <LightSlateGray>" ..matches[2].. "<gold> gold<LightSlateGray> ink. (" ..matches[5].. ")")
end
else cecho("<DarkSlateGray>Outrift <white>: <LightSlateGray>" ..matches[2].. "ink. (" ..matches[4].. ")")
end
elseif
table.contains({"lumic", "shark", "diamond", "silver", "crystal", "alchemical"}, matches[3]) then
if matches[3] == "crystal" then
cecho("<DarkSlateGray>Inrift<white>: <LightSlateGray>" ..matches[2].. " <light_blue>" ..matches[3].. " " ..matches[4].. " <LightSlateGray>(" ..matches[5].. ")")
elseif matches[3] == "alchemical" then
cecho("<DarkSlateGray>Inrift<white>: <LightSlateGray>" ..matches[2].. " <orange_red>" ..matches[3].. " " ..matches[4].. " <LightSlateGray>(" ..matches[5].. ")")
end
else cecho("<DarkSlateGray>Inrift<white>: <LightSlateGray>" ..matches[2].. " <a_darkmagenta>" ..matches[3].. " <LightSlateGray>(" ..matches[4].. ")")
end
OUTRIFT TRIGGER
- Regex : ^You remove (\d+) (\w+) (\w+), bringing the total in the Rift to (\d+).$
- Regex : ^You remove (\d+) (\w+), bringing the total in the Rift to (\d+).$
Body :
deleteFull()
if matches[4] == "ink" then
if matches[3] == "red" then
cecho("<DarkSlateGray>Outrift<white>: <LightSlateGray>" ..matches[2].. "<red> red<LightSlateGray> ink. (" ..matches[5].. ")")
elseif matches[3] == "blue" then
cecho("<DarkSlateGray>Outrift<white>: <LightSlateGray>" ..matches[2].. "<blue> blue<LightSlateGray> ink. (" ..matches[5].. ")")
elseif matches[3] == "green" then
cecho("<DarkSlateGray>Outrift<white>: <LightSlateGray>" ..matches[2].. "<green> green<LightSlateGray> ink. (" ..matches[5].. ")")
elseif matches[3] == "yellow" then
cecho("<DarkSlateGray>Outrift<white>: <LightSlateGray>" ..matches[2].. "<yellow> yellow<LightSlateGray> ink. (" ..matches[5].. ")")
elseif matches[3] == "purple" then
cecho("<DarkSlateGray>Outrift<white>: <LightSlateGray>" ..matches[2].. "<purple> purple<LightSlateGray> ink. (" ..matches[5].. ")")
elseif matches[3] == "gold" then
if matches[4] == "flake" then
else cecho("<DarkSlateGray>Outrift<white>: <LightSlateGray>" ..matches[2].. "<gold> gold<LightSlateGray> ink. (" ..matches[5].. ")")
end
else cecho("<DarkSlateGray>Outrift <white>: <LightSlateGray>" ..matches[2].. "ink. (" ..matches[4].. ")")
end
elseif
table.contains({"lumic", "shark", "diamond", "silver", "crystal", "alchemical"}, matches[3]) then
if matches[3] == "crystal" then
cecho("<DarkSlateGray>Outrift<white>: <LightSlateGray>" ..matches[2].. " <light_blue>" ..matches[3].. " " ..matches[4].. " <LightSlateGray>(" ..matches[5].. ")")
elseif matches[3] == "alchemical" then
cecho("<DarkSlateGray>Outrift<white>: <LightSlateGray>" ..matches[2].. " <orange_red>" ..matches[3].. " " ..matches[4].. " <LightSlateGray>(" ..matches[5].. ")")
end
else cecho("<DarkSlateGray>Outrift<white>: <LightSlateGray>" ..matches[2].. " <a_darkmagenta>" ..matches[3].. " <LightSlateGray>(" ..matches[4].. ")")
end

"You have to learn the rules of the game. And then you have to play better than anyone else."
-Albert Einstein
Tagged:
4
Comments
-
Don't everyone gag inrift/outrift lines?
0 -
Apparently not. I guess it's not that big of a deal if you're not someone that always has to outrift things for combat aside from cures.
"You have to learn the rules of the game. And then you have to play better than anyone else."
-Albert Einstein
0 -
INRIFT TRIGGER:
- Regex : ^You store (\d+) (\w+) (\w+), bringing the total in the rift to (\d+)(.*)$
- Regex : ^You store (\d+) (\w+), bringing the total in the rift to (\d+)(.*)$
OUTRIFT TRIGGER- Regex : ^You remove (\d+) (\w+) (\w+), bringing the total in the Rift to (\d+)(.*)$
- Regex : ^You remove (\d+) (\w+), bringing the total in the Rift to (\d+)(.*)$
Above are edited regex lines to encapsulate maximum rift values. If you don't want to replace, just change the period at the end to a wildcard - as seen in bold above. Enjoy!"You have to learn the rules of the game. And then you have to play better than anyone else."
-Albert Einstein
0
Sign In to Comment.
Categories
- 6K All Categories
- 3K Everything Achaea
- 1.5K North of Thera
- 21 Archives of the Terraformer
- 242 The Matsuhama Arena
- 873 The Golden Dais of Creation
- 283 The Scarlattan Theatre
- 144 The Blank Canvas
- 1.9K Getting Help
- 391 General Questions
- 247 Quick Class Questions
- 1.3K Tech Support
- 298 Client Help
- 456 Curing Systems and Scripts
- 829 Off-Topic
- 250 The Wander Inn
- 579 The Universal Membrane
- 281 Class Discussions
- 281 Individual Class Sections
- 20 Alchemist
- 8 Apostate
- 29 Blademaster
- 9 Depthswalker
- 12 Druid
- 4 Infernal
- 20 Jester
- 19 Magi
- 30 Monk
- 9 Occultist
- 7 Paladin
- 7 Priest
- 28 Runewarden
- 18 Sentinel
- 24 Serpent
- 19 Shaman
- 9 Sylvan