Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.17 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE MudletPackage>
  3. <MudletPackage version="1.0">
  4.     <TriggerPackage>
  5.         <Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="yes" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
  6.             <name>Grid Status Gate</name>
  7.             <script>--Clear modules and init the status so it doesnt try to reopen the gate on new modules
  8. system.aetherModules = {}
  9. tempGridStatus = true
  10.  
  11. if matches[5] == "no" then matches[5] = "none" end
  12. if matches[6] == "" or matches[6] == nil then matches[6] = "unmanned" end
  13.  
  14. system.aetherModules[matches[2] .. matches[3]] = {moduleIdentifier = matches[3]:gsub("%s*$",""), damage = matches[5], name = matches[6]:gsub("[%[%]]","") or "unmanned", infectionStatus = matches[7] or "healthy"}
  15.  
  16. if matches[6] ~="" and matches[6] ~="unmanned" and matches[7] then
  17.     local infectedPerson = matches[6]:gsub("[%[%]]","")
  18.     send("shipt Slivven on " .. matches[4] .. " at " .. infectedPerson .. "!")
  19.     elseif matches[6] == "unmanned" and matches[7] then
  20.         local infectedModule = matches[4]:gsub("%s*$","")
  21.         send("shipt Slivven on " .. infectedModule .. "!")
  22. end</script>
  23.             <triggerType>0</triggerType>
  24.             <conditonLineDelta>0</conditonLineDelta>
  25.             <mStayOpen>100</mStayOpen>
  26.             <mCommand></mCommand>
  27.             <mFgColor>#ff0000</mFgColor>
  28.             <mBgColor>#ffff00</mBgColor>
  29.             <mSoundFile></mSoundFile>
  30.             <colorTriggerFgColor>#000000</colorTriggerFgColor>
  31.             <colorTriggerBgColor>#000000</colorTriggerBgColor>
  32.             <regexCodeList>
  33.                 <string>^\"([a-z]+)(\d+)\"\s+([A-Za-z ]+)\s+\d+\%\s+\/\s+([a-z]+) damage( \[[A-Za-z]+\])?( PARASITE!)?$</string>
  34.                 <string>return not tempGridStatus</string>
  35.             </regexCodeList>
  36.             <regexCodePropertyList>
  37.                 <integer>1</integer>
  38.                 <integer>4</integer>
  39.             </regexCodePropertyList>
  40.             <Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
  41.                 <name>Module</name>
  42.                 <script>if matches[5] == "no" then matches[5] = "none" end
  43. if matches[6] == "" or matches[6] == nil then matches[6] = "unmanned" end
  44.  
  45. system.aetherModules[matches[2] .. matches[3]] = {moduleIdentifier = matches[3]:gsub("%s*$",""), damage = matches[5], name = matches[6]:gsub("[%[%]]","") or "unmanned", infectionStatus = matches[7] or "healthy"}
  46.  
  47. if matches[6] ~="" and matches[6] ~="unmanned" and matches[7] then
  48.     local infectedPerson = matches[6]:gsub("[%[%]]","")
  49.     send("shipt Slivven on " .. matches[4] .. " at " .. infectedPerson .. "!")
  50.     elseif matches[6] == "unmanned" and matches[7] then
  51.         local infectedModule = matches[4]:gsub("%s*$","")
  52.         send("shipt Slivven on " .. infectedModule .. "!")
  53. end</script>
  54.                 <triggerType>0</triggerType>
  55.                 <conditonLineDelta>0</conditonLineDelta>
  56.                 <mStayOpen>0</mStayOpen>
  57.                 <mCommand></mCommand>
  58.                 <mFgColor>#ff0000</mFgColor>
  59.                 <mBgColor>#ffff00</mBgColor>
  60.                 <mSoundFile></mSoundFile>
  61.                 <colorTriggerFgColor>#000000</colorTriggerFgColor>
  62.                 <colorTriggerBgColor>#000000</colorTriggerBgColor>
  63.                 <regexCodeList>
  64.                     <string>^\"([a-z]+)(\d+)\"\s+([A-Za-z ]+)\s+\d+\%\s+\/\s+([a-z]+) damage( \[[A-Za-z]+\])?( PARASITE!)?$</string>
  65.                 </regexCodeList>
  66.                 <regexCodePropertyList>
  67.                     <integer>1</integer>
  68.                 </regexCodePropertyList>
  69.             </Trigger>
  70.             <Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
  71.                 <name>Close Grid Status and Process Damage</name>
  72.                 <script>--Close the gate and reset the switch
  73.  
  74. tempGridStatus = false
  75. setTriggerStayOpen("Grid Status Gate", 0)
  76.  
  77. --Process the damage
  78. system.moduleList = getDamagedModules()
  79. cureNextDamaged()
  80.  
  81.  
  82. </script>
  83.                 <triggerType>0</triggerType>
  84.                 <conditonLineDelta>99</conditonLineDelta>
  85.                 <mStayOpen>0</mStayOpen>
  86.                 <mCommand></mCommand>
  87.                 <mFgColor>#ff0000</mFgColor>
  88.                 <mBgColor>#ffff00</mBgColor>
  89.                 <mSoundFile></mSoundFile>
  90.                 <colorTriggerFgColor>#000000</colorTriggerFgColor>
  91.                 <colorTriggerBgColor>#000000</colorTriggerBgColor>
  92.                 <regexCodeList>
  93.                     <string>return isPrompt()</string>
  94.                 </regexCodeList>
  95.                 <regexCodePropertyList>
  96.                     <integer>4</integer>
  97.                 </regexCodePropertyList>
  98.             </Trigger>
  99.         </Trigger>
  100.     </TriggerPackage>
  101. </MudletPackage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement