Created
March 20, 2018 03:46
-
-
Save epsilon-phase/89da67a672bdc6a2b08311a040f1ba14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>Link Stuffs</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="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no"> | |
<name>Exits</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> | |
<string>Obvious Exits:</string> | |
</regexCodeList> | |
<regexCodePropertyList> | |
<integer>2</integer> | |
</regexCodePropertyList> | |
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no"> | |
<name>FinalExit</name> | |
<script>debugc("final exit match:" .. matches[2]) | |
debugc("Exit name:" .. matches[3]) | |
if selectCaptureGroup(3) > -1 then | |
setLink([[send("]] .. matches[2] .. [[")]],matches[2]) | |
end | |
-- showCaptureGroups()</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>^Obvious Exits: \[([^,]+?)\]([^,]+?)$</string> | |
</regexCodeList> | |
<regexCodePropertyList> | |
<integer>1</integer> | |
</regexCodePropertyList> | |
</Trigger> | |
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="yes" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no"> | |
<name>ExitLinky</name> | |
<script>for i, v in ipairs(matches) do | |
-- debugc(tostring(i) .. ":" .. matches[i]) | |
if i % 2 == 0 then | |
-- debugc("Selecting:" .. matches[i - 1]) | |
if selectString(matches[i - 1], 1) > -1 then | |
setLink([[send("]] .. matches[i] .. [[")]], matches[i]) | |
else | |
-- debugc("Could not select:" .. matches[i-1]) | |
end | |
end | |
end | |
debugc(matches[#matches]) | |
debugc(matches[#matches-1]) | |
-- Seems to need special handling for the final exit, for some reason :/ | |
if selectString(matches[#matches-1],1) > -1 then | |
setLink([[send("]] .. matches[#matches] .. [[")]], matches[#matches]) | |
else | |
local index = string.find(line, ",[^,]*$") | |
if selectSection(index,#line-index) then | |
-- debugc("Hmm...Got something") | |
setLink([[send("]] .. matches[#matches] .. [[")]], matches[#matches]) | |
end | |
-- debugc("Hmm...") | |
end | |
deselect()</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>\[(.+?)\][^,]+,?</string> | |
</regexCodeList> | |
<regexCodePropertyList> | |
<integer>1</integer> | |
</regexCodePropertyList> | |
</Trigger> | |
</Trigger> | |
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="yes" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no"> | |
<name>ClickableUrls</name> | |
<script>for i,v in ipairs(matches) do | |
selectString(matches[i], 1) | |
setLink([[openUrl("]]..matches[i]..[[")]], matches[i]) | |
end</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>\b(?:(?:(?:https?|ftp|telnet)://[\w\d:#@%/;$()~_?\+\-=&]+|www|ftp)(?:\.[\w\d:#@%/;$()~_?\+\-=&]+)+|[\w\d._%+\-]+@[\w\d.\-]+\.[\w]{2,4})\b</string> | |
</regexCodeList> | |
<regexCodePropertyList> | |
<integer>1</integer> | |
</regexCodePropertyList> | |
</Trigger> | |
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no"> | |
<name>Pinvite Linky</name> | |
<script>selectCaptureGroup(2) | |
setLink([[send("]]..matches[2]..[[")]], matches[2])</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>^You have been invited to join [a-zA-Z]+'s party\. Type (pjoin [a-zA-Z]+) to accept and meet them\.$</string> | |
<string>wishes to join your party\. Type (pinvite [a-zA-Z]+) to accept\.$</string> | |
</regexCodeList> | |
<regexCodePropertyList> | |
<integer>1</integer> | |
<integer>1</integer> | |
</regexCodePropertyList> | |
</Trigger> | |
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no"> | |
<name>PlayerLinks</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> | |
<string>Players:</string> | |
</regexCodeList> | |
<regexCodePropertyList> | |
<integer>2</integer> | |
</regexCodePropertyList> | |
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="yes" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no"> | |
<name>PlayerLookLink</name> | |
<script>for i, v in ipairs(matches) do | |
if i%2==0 and selectString(matches[i],1) ~= -1 then | |
setLink([[send("look ]] .. matches[i] .. [[")]], matches[i]) | |
end | |
end</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>\] ([a-zA-Z]+)(?:\(|,)</string> | |
</regexCodeList> | |
<regexCodePropertyList> | |
<integer>1</integer> | |
</regexCodePropertyList> | |
</Trigger> | |
</Trigger> | |
</TriggerGroup> | |
</TriggerPackage> | |
</MudletPackage> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment