Rift Spam Cleaner

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

Comments

  • Don't everyone gag inrift/outrift lines? :open_mouth: 

    image
  • 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

  • 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

Sign In or Register to comment.