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
Comments
Don't everyone gag inrift/outrift lines?
"You have to learn the rules of the game. And then you have to play better than anyone else."
-Albert Einstein
"You have to learn the rules of the game. And then you have to play better than anyone else."
-Albert Einstein