Advertisement
Guest User

bookcopy.xml

a guest
Mar 27th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.47 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE MudletPackage>
  3. <MudletPackage version="1.0">
  4.     <AliasPackage>
  5.         <AliasGroup isActive="yes" isFolder="yes">
  6.             <name>Book Copy</name>
  7.             <script></script>
  8.             <command></command>
  9.             <packageName></packageName>
  10.             <regex></regex>
  11.             <Alias isActive="yes" isFolder="no">
  12.                 <name>bookcopy</name>
  13.                 <script>bookcopy_bookid = matches[2]
  14. bookcopy_page = matches[3]
  15. bookcopy_on = 1
  16.  
  17. enableTrigger(&quot;Book Copy - Get Lines&quot;)
  18. enableTrigger(&quot;Book Copy - Prompt&quot;)
  19. send(&quot;read &quot; .. bookcopy_bookid .. &quot; page &quot; .. bookcopy_page)</script>
  20.                 <command></command>
  21.                 <packageName></packageName>
  22.                 <regex>^bookcopy (\d+) (\d+)$</regex>
  23.             </Alias>
  24.         </AliasGroup>
  25.     </AliasPackage>
  26.     <TriggerPackage>
  27.         <TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
  28.             <name>Book Copy</name>
  29.             <script>bookcopy_lines = &quot;&quot;
  30. bookcopy_bookid = &quot;&quot;
  31. bookcopy_page = &quot;&quot;
  32. bookcopy_on = 0
  33. </script>
  34.             <triggerType>0</triggerType>
  35.             <conditonLineDelta>0</conditonLineDelta>
  36.             <mStayOpen>0</mStayOpen>
  37.             <mCommand></mCommand>
  38.             <packageName></packageName>
  39.             <mFgColor>#ff0000</mFgColor>
  40.             <mBgColor>#ffff00</mBgColor>
  41.             <mSoundFile></mSoundFile>
  42.             <colorTriggerFgColor>#000000</colorTriggerFgColor>
  43.             <colorTriggerBgColor>#000000</colorTriggerBgColor>
  44.             <regexCodeList/>
  45.             <regexCodePropertyList/>
  46.             <Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
  47.                 <name>Book Copy - Get Lines</name>
  48.                 <script>if bookcopy_on == 1 then
  49.     bookcopy_lines = bookcopy_lines .. &quot;\n&quot; .. line
  50. end</script>
  51.                 <triggerType>0</triggerType>
  52.                 <conditonLineDelta>0</conditonLineDelta>
  53.                 <mStayOpen>0</mStayOpen>
  54.                 <mCommand></mCommand>
  55.                 <packageName></packageName>
  56.                 <mFgColor>#ff0000</mFgColor>
  57.                 <mBgColor>#ffff00</mBgColor>
  58.                 <mSoundFile></mSoundFile>
  59.                 <colorTriggerFgColor>#000000</colorTriggerFgColor>
  60.                 <colorTriggerBgColor>#000000</colorTriggerBgColor>
  61.                 <regexCodeList>
  62.                     <string>return true</string>
  63.                 </regexCodeList>
  64.                 <regexCodePropertyList>
  65.                     <integer>4</integer>
  66.                 </regexCodePropertyList>
  67.             </Trigger>
  68.             <Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
  69.                 <name>Book Copy - Prompt</name>
  70.                 <script>if bookcopy_on == 1 then
  71.     disableTrigger(&quot;Book Copy - Get Lines&quot;)
  72.     local filename = &quot;/tmp/&quot; .. bookcopy_bookid .. &quot;-&quot; .. bookcopy_page .. &quot;.txt&quot;
  73.     local f = io.open(filename, &quot;w+&quot;)
  74.     f:write(bookcopy_lines)
  75.     f:close()
  76.     bookcopy_on = 0
  77.     diableTrigger(&quot;Book Copy - Prompt&quot;)
  78. end</script>
  79.                 <triggerType>0</triggerType>
  80.                 <conditonLineDelta>0</conditonLineDelta>
  81.                 <mStayOpen>0</mStayOpen>
  82.                 <mCommand></mCommand>
  83.                 <packageName></packageName>
  84.                 <mFgColor>#ff0000</mFgColor>
  85.                 <mBgColor>#ffff00</mBgColor>
  86.                 <mSoundFile></mSoundFile>
  87.                 <colorTriggerFgColor>#000000</colorTriggerFgColor>
  88.                 <colorTriggerBgColor>#000000</colorTriggerBgColor>
  89.                 <regexCodeList>
  90.                     <string>return isPrompt()</string>
  91.                 </regexCodeList>
  92.                 <regexCodePropertyList>
  93.                     <integer>4</integer>
  94.                 </regexCodePropertyList>
  95.             </Trigger>
  96.         </TriggerGroup>
  97.     </TriggerPackage>
  98. </MudletPackage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement