This topic contains 3 replies, has 2 voices, and was last updated by  Kilroymcduff 1 week ago.
Viewing 4 posts - 1 through 4 (of 4 total)
    • Kilroymcduff Participant
      December 2, 2017 at 11:49 pm #30559

      <?xml version=”1.0″ encoding=”iso-8859-1″?>
      <!DOCTYPE muclient>
      <!– Saved on Saturday, February 25, 2017, 12:07 PM –>
      <!– MuClient version 4.94 –>

      <!– Plugin “LotJ_FullHeal” generated by Plugin Wizard –>

      <muclient>
      <plugin
      name=”LotJ_FullHeal”
      author=”Khamael”
      id=”4066bf955e247fbfc2dd8af7″
      language=”Lua”
      purpose=”Assists with the First Aid skill to heal your character to full health”
      save_state=”y”
      date_written=”2017-02-25 12:06:01″
      requires=”4.94″
      version=”1.0″
      >

      </plugin>

      <!– Get our standard constants –>

      <include name=”constants.lua”/>

      <!– Triggers –>

      <triggers>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”Your medpac seems to be empty.”
      sequence=”100″
      >
      <send>throw @medpac
      hold @medpac
      first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname has a few bruises.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname has many nasty wounds.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      enabled=”y”
      expand_variables=”y”
      group=”InfoCapture”
      lines_to_match=”2″
      keep_evaluating=”y”
      match=”^Covering armor masks you as: (.*)$”
      regexp=”y”
      send_to=”12″
      sequence=”100″
      >
      <send>SetVariable(“restring”,”%1″)
      SetVariable(“healname”,”%1″)
      Note(“Restring set to “..”%1″)</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname has several wounds.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      enabled=”y”
      expand_variables=”y”
      group=”InfoCapture”
      lines_to_match=”2″
      keep_evaluating=”y”
      match=”^Current comlink\: (.*)\nYou have learned (.*)\Z”
      multi_line=”y”
      regexp=”y”
      send_to=”12″
      sequence=”100″
      >
      <send>SetVariable(“healname”,”@charname”)
      Note(“You are not wearing concealing armor.”)</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname has some cuts.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      enabled=”y”
      expand_variables=”y”
      group=”InfoCapture”
      match=”^Given name\: (\S*)(.*)$”
      regexp=”y”
      send_to=”12″
      sequence=”100″
      >
      <send>SetVariable(“charname”,”%1″)
      Note(“Character name set to “..”%1″)</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is DYING.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is almost dead.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is bleeding freely.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is in perfect health.”
      name=”FullHealEnd”
      send_to=”12″
      sequence=”100″
      >
      <send>EnableTriggerGroup (“FullHeal”, false)
      Send (“rem @medpac”)
      Send (“draw”)</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is covered in blood.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is leaking guts.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      expand_variables=”y”
      group=”FullHeal”
      match=”@healname is slightly scratched.”
      sequence=”100″
      >
      <send>first</send>
      </trigger>
      <trigger
      enabled=”y”
      expand_variables=”y”
      group=”InfoCapture”
      lines_to_match=”2″
      match=”^Current comlink\: (.*)\nMarried to\: (.*)\Z”
      multi_line=”y”
      regexp=”y”
      send_to=”12″
      sequence=”100″
      >
      <send>SetVariable(“healname”,”@charname”)
      Note(“You are not wearing concealing armor.”)</send>
      </trigger>
      </triggers>

      <!– Aliases –>

      <aliases>
      <alias
      name=”UseMed”
      match=”usemed *”
      enabled=”y”
      expand_variables=”y”
      group=”FullHeal”
      send_to=”12″
      sequence=”100″
      >
      <send>SetVariable(“medpac”,tostring(“%1”))
      Note(“Now using “..”%1″..” for first aid.”)</send>
      </alias>
      <alias
      name=”FullHeal”
      match=”fullheal”
      enabled=”y”
      expand_variables=”y”
      group=”Combat”
      send_to=”12″
      sequence=”100″
      >
      <send>EnableTriggerGroup(“FullHeal”,1)
      Send(“hols”)
      Send(“hold “..”@medpac”)
      Send(“first”)</send>
      </alias>
      </aliases>

      <!– Variables –>

      <variables>
      <variable name=”restring”>A being in desert shrouds</variable>
      <variable name=”healname”>Kaya</variable>
      <variable name=”medpac”>medpac</variable>
      <variable name=”charname”>Kaya</variable>
      </variables>

      </muclient>

    • Kilroymcduff Participant
      December 2, 2017 at 11:52 pm #30561

      Khamael wrote this, just so you all know, so if he pops up PLEASE let him know you appreciate it.

      This is nifty and can span multiple characters. When you use “score” it’ll capture your name, your concealed armor desc, and even if you get married it’ll catch that too (there were issues with that when this was first made.)

      Usemed will select a medkit for you to use. So for example, if I have a bunch of First-Aid Kits, I’d type “usemed first” and it’ll set that as the medkit.

      It holsters, and draws when healing is done. Also throws down empty pack automatically. The whole nine yards. Most of you probably already have triggers or aliases for this, but it’s nice to have one script you can use for all characters/medkits.

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Skip to toolbar