<commit_before><?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- This Source Code Form is subject to the terms of the Mozilla Public -->
<!-- License, v. 2.0. If a copy of the MPL was not distributed with this -->
<!-- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!-- Saved on Saturday, August 18, 2012, 3:39 PM -->
<!-- MuClient version 4.81 -->

<!-- Plugin "mume_castor_spell_translator" generated by Plugin Wizard -->

<muclient>
<plugin
   name="mume_castor_spell_translator"
   author="<NAME>"
   id="<PASSWORD>"
   language="Lua"
   purpose="Translates a castor's incantation in to a valid spell name."
   date_written="2012-08-18 15:38:24"
   requires="4.70"
   version="1.0"
   >

</plugin>


<!--  Get our standard constants -->

<include name="constants.lua"/>

<!--  Triggers  -->

<triggers>
  <trigger
   enabled="y"
   group="mume_castor_spell_translator"
   match="^(?:ENEMY:)?(?P&lt;castor&gt;.+?)(?::ENEMY)? utters the word[s]? \'(?P&lt;spell&gt;[a-z ]+)\'$"
   name="translate_spell"
   omit_from_output="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>translate("%&lt;castor&gt;", "%&lt;spell&gt;")</send>
  </trigger>
  <trigger
   enabled="y"
   group="mume_castor_spell_translator"
   match="^(?:ENEMY:)?(?P&lt;castor&gt;.+?)(?::ENEMY)? begins some strange incantations\.\.\.$"
   name="shorten_casting_message"
   omit_from_output="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>	CallPlugin(screenReader, "sayNote", "%&lt;castor&gt; is casting!", casting_interrupt == true)
  </send>
  </trigger>
  <trigger
   enabled="y"
   group="mume_castor_spell_translator"
   match="^(?:ENEMY:)?(?P&lt;target&gt;.+?)(?::ENEMY)? seems to be blinded\!$"
   name="shorten_blinded_message"
   omit_from_output="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>	CallPlugin(screenReader, "sayNote", "blinded %&lt;target&gt;!", casting_interrupt == true)
  </send>
  </trigger>
  <trigger
   enabled="y"
   group="mume_castor_spell_translator"
   match="^Your victim is already blind\.$"
   name="already_blinded_message"
   omit_from_output="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>	CallPlugin(screenReader, "sayNote", "Already blinded!", casting_interrupt == true)
  </send>
  </trigger>
  <trigger
   enabled="y"
   group="mume_castor_spell_translator"
   match="^Nothing seems to happen\.$"
   name="shorten_fail_casting_message"
   omit_from_output="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>	CallPlugin(screenReader, "sayNote", "Failed cast!", casting_interrupt == true)
  </send>
  </trigger>
</triggers>

<!--  Script  -->


<script>
<![CDATA[
screenReader = "925cdd0331023d9f0b8f05a7"
config = "d19a2f0a604c96b7318aa67f"
return_code, casting_interrupt = CallPlugin(config, "get", "casting_interrupt")

spells = {
	["abrawajf"] = "armour",
	["bfzahp ay bfugtizgg"] = "breath of briskness",
	["bfzat eaaf"] = "break door",
	["braqt bfzahp"] = "black breath",
	["braqt eaaf"] = "block door",
	["qarr yawuruabra"] = "call familiar",
	["canduswazz judifgz"] = "remove curse",
	["canduswazz saugai"] = "remove poison",<commit_msg>Fix the Nothing seems to happen trigger, as the message can be received for reasons other than a failed cast.<commit_after><?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- This Source Code Form is subject to the terms of the Mozilla Public -->
<!-- License, v. 2.0. If a copy of the MPL was not distributed with this -->
<!-- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!-- Saved on Saturday, August 18, 2012, 3:39 PM -->
<!-- MuClient version 4.81 -->

<!-- Plugin "mume_castor_spell_translator" generated by Plugin Wizard -->

<muclient>
<plugin
   name="mume_castor_spell_translator"
   author="<NAME>"
   id="8b4e5dd676d8477dc5f14376"
   language="Lua"
   purpose="Translates a castor's incantation in to a valid spell name."
   date_written="2012-08-18 15:38:24"
   requires="4.70"
   version="1.0"
   >

</plugin>


<!--  Get our standard constants -->

<include name="constants.lua"/>

<!--  Triggers  -->

<triggers>
  <trigger
   enabled="y"
   group="mume_castor_spell_translator"
   match="^(?:ENEMY:)?(?P&lt;castor&gt;.+?)(?::ENEMY)? utters the word[s]? \'(?P&lt;spell&gt;[a-z ]+)\'$"
   name="translate_spell"
   omit_from_output="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>translate("%&lt;castor&gt;", "%&lt;spell&gt;")</send>
  </trigger>
  <trigger
   enabled="y"
   group="mume_castor_spell_translator"
   match="^(?:ENEMY:)?(?P&lt;castor&gt;.+?)(?::ENEMY)? begins some strange incantations\.\.\.$"
   name="shorten_casting_message"
   omit_from_output="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>	CallPlugin(screenReader, "sayNote", "%&lt;castor&gt; is casting!", casting_interrupt == true)
  </send>
  </trigger>
  <trigger
   enabled="y"
   group="mume_castor_spell_translator"
   match="^(?:ENEMY:)?(?P&lt;target&gt;.+?)(?::ENEMY)? seems to be blinded\!$"
   name="shorten_blinded_message"
   omit_from_output="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>	CallPlugin(screenReader, "sayNote", "blinded %&lt;target&gt;!", casting_interrupt == true)
  </send>
  </trigger>
  <trigger
   enabled="y"
   group="mume_castor_spell_translator"
   match="^Your victim is already blind\.$"
   name="already_blinded_message"
   omit_from_output="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>	CallPlugin(screenReader, "sayNote", "Already blinded!", casting_interrupt == true)
  </send>
  </trigger>
  <trigger
   enabled="y"
   group="mume_castor_spell_translator"
   match="^Nothing seems to happen\.$"
   name="shorten_fail_message"
   omit_from_output="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>	CallPlugin(screenReader, "sayNote", "Nothing happens!", casting_interrupt == true)
  </send>
  </trigger>
</triggers>

<!--  Script  -->


<script>
<![CDATA[
screenReader = "925cdd0331023d9f0b8f05a7"
config = "d19a2f0a604c96b7318aa67f"
return_code, casting_interrupt = CallPlugin(config, "get", "casting_interrupt")

spells = {
	["abrawajf"] = "armour",
	["bfzahp ay bfugtizgg"] = "breath of briskness",
	["bfzat eaaf"] = "break door",
	["braqt bfzahp"] = "black breath",
	["braqt eaaf"] = "block door",
	["qarr yawuruabra"] = "call familiar",
	["canduswazz judifgz"] = "remove curse",
	["canduswazz saugai"] = "remove poison",
{'fraction_non_alphanumeric': 0.18546132339235788, 'fraction_numerical': 0.032929481205343274, 'mean_word_length': 4.415475189234651, 'pattern_counts': {'":': 0, '<': 84, '<?xml version=': 2, '>': 82, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2266752', 'n_tokens_mistral': 2635, 'n_tokens_neox': 2476, 'n_words': 488}