Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE MudletPackage>
- <MudletPackage version="1.001">
- <TriggerPackage>
- <TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
- <name>Rift-replacement</name>
- <script></script>
- <triggerType>0</triggerType>
- <conditonLineDelta>0</conditonLineDelta>
- <mStayOpen>0</mStayOpen>
- <mCommand></mCommand>
- <packageName></packageName>
- <mFgColor>#ff0000</mFgColor>
- <mBgColor>#ffff00</mBgColor>
- <mSoundFile></mSoundFile>
- <colorTriggerFgColor>#000000</colorTriggerFgColor>
- <colorTriggerBgColor>#000000</colorTriggerBgColor>
- <regexCodeList />
- <regexCodePropertyList />
- <Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="yes" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
- <name>Rift start</name>
- <script>enableTrigger("Rift-capture")
- enableTrigger("Rift-herbs/mineral")
- enableTrigger("Rift-stop")
- riftcuratives = {
- { herb = "ash", mineral = "stannum", h_amount = 0, m_amount = 0 },
- { herb = "bellwort", mineral = "cuprum", h_amount = 0, m_amount = 0 },
- { herb = "bloodroot", mineral = "magnesium", h_amount = 0, m_amount = 0 },
- { herb = "elm", mineral = "cinnabar", h_amount = 0, m_amount = 0 },
- { herb = "ginger", mineral = "antimony", h_amount = 0, m_amount = 0 },
- { herb = "ginseng", mineral = "ferrum", h_amount = 0, m_amount = 0 },
- { herb = "goldenseal", mineral = "plumbum", h_amount = 0, m_amount = 0 },
- { herb = "kelp", mineral = "aurum", h_amount = 0, m_amount = 0 },
- { herb = "pear", mineral = "calcite", h_amount = 0, m_amount = 0 },
- { herb = "valerian", mineral = "realgar", h_amount = 0, m_amount = 0 },
- { herb = "lobelia", mineral = "argentum", h_amount = 0, m_amount = 0 },
- { herb = "skullcap", mineral = "azurite", h_amount = 0, m_amount = 0 }, -- blindness
- { herb = "bayberry", mineral = "arsenic", h_amount = 0, m_amount = 0 }, -- blindness
- { herb = "cohosh", mineral = "gypsum", h_amount = 0, m_amount = 0 }, -- insomnia
- { herb = "hawthorn", mineral = "calamine", h_amount = 0, m_amount = 0 }, -- deafness
- { herb = "kola", mineral = "quartz", h_amount = 0, m_amount = 0 }, -- kola
- { herb = "myrrh", mineral = "bisemutum", h_amount = 0, m_amount = 0 }, -- scholasticism
- { herb = "echinacea", mineral = "dolomite", h_amount = 0, m_amount = 0 }, -- thirdeye
- { herb = "skullcap", mineral = "malachite", h_amount = 0, m_amount = 0 }, -- rebounding
- { herb = "sileris", mineral = "quicksilver",h_amount = 0, m_amount = 0 }, -- fangbarrier
- { herb = "moss", mineral = "potash", h_amount = 0, m_amount = 0 },
- }
- -- change riftcols value in Rift-stop trigger to change number of cols displayed</script>
- <triggerType>0</triggerType>
- <conditonLineDelta>1</conditonLineDelta>
- <mStayOpen>0</mStayOpen>
- <mCommand></mCommand>
- <packageName></packageName>
- <mFgColor>#ff0000</mFgColor>
- <mBgColor>#ffff00</mBgColor>
- <mSoundFile></mSoundFile>
- <colorTriggerFgColor>#000000</colorTriggerFgColor>
- <colorTriggerBgColor>#000000</colorTriggerBgColor>
- <regexCodeList>
- <string>^Glancing into your rift, you see\:$</string>
- <string>^-{78}$</string>
- </regexCodeList>
- <regexCodePropertyList>
- <integer>1</integer>
- <integer>1</integer>
- </regexCodePropertyList>
- </Trigger>
- <Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
- <name>Rift-capture</name>
- <script>for amount, curative in string.gmatch(matches[1], "%[%s*(%d+)%]([^[]+)") do
- local unknown = true
- for k, v in pairs(riftcuratives) do
- if string.match(curative, "%s" .. v.herb) then
- if v.herb == "ash" then misc:print("<blue>" .. v.herb .. ":" .. curative) end
- v.h_amount = tonumber(amount) unknown = false break
- elseif string.match(curative, "%s" .. v.mineral) then
- v.m_amount = tonumber(amount) unknown = false break
- end
- end
- if unknown then table.insert(riftcuratives, { herb = "unknown", mineral = curative, h_amount = tonumber(amount) }) end
- end
- deleteLine()</script>
- <triggerType>0</triggerType>
- <conditonLineDelta>0</conditonLineDelta>
- <mStayOpen>0</mStayOpen>
- <mCommand></mCommand>
- <packageName></packageName>
- <mFgColor>#ff0000</mFgColor>
- <mBgColor>#ffff00</mBgColor>
- <mSoundFile></mSoundFile>
- <colorTriggerFgColor>#000000</colorTriggerFgColor>
- <colorTriggerBgColor>#000000</colorTriggerBgColor>
- <regexCodeList>
- <string>^\[\s*\d+\]\s\w+.*$</string>
- </regexCodeList>
- <regexCodePropertyList>
- <integer>1</integer>
- </regexCodePropertyList>
- </Trigger>
- <Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
- <name>Rift-herbs/mineral</name>
- <script>deleteLine()</script>
- <triggerType>0</triggerType>
- <conditonLineDelta>0</conditonLineDelta>
- <mStayOpen>0</mStayOpen>
- <mCommand></mCommand>
- <packageName></packageName>
- <mFgColor>#ff0000</mFgColor>
- <mBgColor>#ffff00</mBgColor>
- <mSoundFile></mSoundFile>
- <colorTriggerFgColor>#000000</colorTriggerFgColor>
- <colorTriggerBgColor>#000000</colorTriggerBgColor>
- <regexCodeList>
- <string>^Herbs$</string>
- <string>^Minerals$</string>
- </regexCodeList>
- <regexCodePropertyList>
- <integer>1</integer>
- <integer>1</integer>
- </regexCodePropertyList>
- </Trigger>
- <Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
- <name>Rift-stop</name>
- <script>disableTrigger("Rift-capture")
- disableTrigger("Rift-herbs/mineral")
- disableTrigger("Rift-stop")
- local riftstring, riftcols = "", 3
- for k, v in pairs(riftcuratives) do
- if v.herb == "unknown" then
- riftstring = riftstring .. "<forest_green>[" .. (((v.h_amount < 200) and "<red>") or "<gray>") .. string.rep(" ", 5-string.len(v.h_amount)) .. v.h_amount .. "<forest_green>]<gray>" .. v.mineral .. string.rep(" ", 24 - string.len(v.mineral))
- else
- riftstring = riftstring .. "<forest_green>[" .. (((v.h_amount + v.m_amount < 200) and "<red>") or "<gray>") .. string.rep(" ", 5-string.len(v.h_amount)) .. v.h_amount .. string.rep(" ", 5-string.len(v.m_amount)) .. v.m_amount .. "<forest_green>] <gray>" .. string.sub(v.herb .. "/" .. v.mineral, 1, 18) .. string.rep(" ", 17 - string.len(v.herb .. v.mineral))
- end
- if (k / riftcols) == math.floor(k / riftcols) or table.getn(riftcuratives) == k then
- riftstring = riftstring .. "\n"
- end
- end
- selectString(matches[1], 1)
- replace("")
- cecho("<olive_drab>Herb & Minerals\n" .. riftstring .. "<olive_drab>Elixirs\n")</script>
- <triggerType>0</triggerType>
- <conditonLineDelta>0</conditonLineDelta>
- <mStayOpen>0</mStayOpen>
- <mCommand></mCommand>
- <packageName></packageName>
- <mFgColor>#ff0000</mFgColor>
- <mBgColor>#ffff00</mBgColor>
- <mSoundFile></mSoundFile>
- <colorTriggerFgColor>#000000</colorTriggerFgColor>
- <colorTriggerBgColor>#000000</colorTriggerBgColor>
- <regexCodeList>
- <string>^Elixirs$</string>
- </regexCodeList>
- <regexCodePropertyList>
- <integer>1</integer>
- </regexCodePropertyList>
- </Trigger>
- </TriggerGroup>
- </TriggerPackage>
- </MudletPackage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement