Advertisement
Guest User

autoroller

a guest
Feb 27th, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 14.18 KB | None | 0 0
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE muclient>
  3. <!-- Saved on Saturday, August 04, 2018, 11:03 AM -->
  4. <!-- MuClient version 4.94 -->
  5. <!-- Written by Nick Gammon -->
  6. <!-- Home Page: http://www.mushclient.com/ -->
  7. <muclient>
  8. <world
  9.   muclient_version="4.94"
  10.   world_file_version="15"
  11.   date_saved="2018-08-04 11:03:10"
  12.  
  13.   auto_say_override_prefix="-"
  14.   auto_say_string="say "
  15.   chat_name="Name-not-set"
  16.   command_stack_character=";"
  17.   id="9d782f4c1d92c96c73222bfb"
  18.   input_font_name="Consolas"
  19.   mapping_failure="Alas, you cannot go that way."
  20.   name="raven"
  21.   new_activity_sound="(No sound)"
  22.   output_font_name="Consolas"
  23.   script_editor="notepad"
  24.   script_editor_argument="%file"
  25.   script_language="JScript"
  26.   site="ravenmud.com"
  27.   spam_message="look"
  28.   speed_walk_prefix="#"
  29.   terminal_identification="mushclient"
  30.  
  31.   arrows_change_history="y"
  32.   arrow_keys_wrap="y"
  33.   auto_pause="y"
  34.   auto_repeat="y"
  35.   auto_resize_minimum_lines="1"
  36.   auto_resize_maximum_lines="20"
  37.   chat_foreground_colour="red"
  38.   chat_background_colour="black"
  39.   chat_port="4050"
  40.   confirm_before_replacing_typing="y"
  41.   confirm_on_paste="y"
  42.   confirm_on_send="y"
  43.   ctrl_z_goes_to_end_of_buffer="y"
  44.   default_trigger_sequence="100"
  45.   default_alias_sequence="100"
  46.   detect_pueblo="y"
  47.   display_my_input="y"
  48.   echo_colour="15"
  49.   echo_hyperlink_in_output_window="y"
  50.   edit_script_with_notepad="y"
  51.   enable_aliases="y"
  52.   enable_beeps="y"
  53.   enable_command_stack="y"
  54.   enable_scripts="y"
  55.   enable_timers="y"
  56.   enable_triggers="y"
  57.   enable_trigger_sounds="y"
  58.   history_lines="1000"
  59.   hyperlink_adds_to_command_history="y"
  60.   hyperlink_colour="#0080FF"
  61.   indent_paras="y"
  62.   input_background_colour="white"
  63.   input_font_height="9"
  64.   input_font_weight="400"
  65.   input_font_charset="1"
  66.   input_text_colour="black"
  67.   keypad_enable="y"
  68.   line_information="y"
  69.   log_output="y"
  70.   max_output_lines="5000"
  71.   mud_can_change_link_colour="y"
  72.   mud_can_change_options="y"
  73.   naws="y"
  74.   note_text_colour="#040000"
  75.   output_font_height="9"
  76.   output_font_weight="400"
  77.   output_font_charset="1"
  78.   paste_delay_per_lines="1"
  79.   pixel_offset="1"
  80.   port="6060"
  81.   proxy_port="1080"
  82.   script_errors_to_output_window="y"
  83.   send_file_delay_per_lines="1"
  84.   send_mxp_afk_response="y"
  85.   show_connect_disconnect="y"
  86.   show_italic="y"
  87.   show_underline="y"
  88.   spam_line_count="20"
  89.   tab_completion_lines="200"
  90.   timestamp_input_text_colour="maroon"
  91.   timestamp_notes_text_colour="blue"
  92.   timestamp_output_text_colour="white"
  93.   timestamp_input_back_colour="black"
  94.   timestamp_notes_back_colour="black"
  95.   timestamp_output_back_colour="black"
  96.   tool_tip_visible_time="5000"
  97.   tool_tip_start_time="400"
  98.   treeview_triggers="y"
  99.   treeview_aliases="y"
  100.   treeview_timers="y"
  101.   underline_hyperlinks="y"
  102.   unpause_on_send="y"
  103.   use_custom_link_colour="y"
  104.   utf_8="y"
  105.   warn_if_scripting_inactive="y"
  106.   wrap="y"
  107.   wrap_column="160"
  108.   write_world_name_to_log="y"
  109.   > <!-- end of general world attributes -->
  110.  
  111. </world>
  112.  
  113. <!-- triggers -->
  114.  
  115. <triggers
  116.   muclient_version="4.94"
  117.   world_file_version="15"
  118.   date_saved="2018-08-04 11:03:10"
  119.  >
  120.   <trigger
  121.   enabled="y"
  122.   match="^\s+Str\s+\[(.*?)\s*\]\s+Int\s+\[(.*?)\s*\]\s+Wis\s+\[(.*?)\s*\]$"
  123.   regexp="y"
  124.   send_to="12"
  125.   sequence="1"
  126.  >
  127.   <send>SetVariable("rolled_str", "%1");
  128. SetVariable("rolled_int", "%2");
  129. SetVariable("rolled_wis", "%3");
  130.  
  131. if ("%1" == GetVariable("max_str")) {
  132.  SetVariable("max_str_cnt", parseInt(GetVariable("max_str_cnt"))+1);
  133. }
  134.  
  135. if ("%2" == GetVariable("max_int")) {
  136.  SetVariable("max_int_cnt", parseInt(GetVariable("max_int_cnt"))+1);
  137. }
  138.  
  139. if ("%3" == GetVariable("max_wis")) {
  140.  SetVariable("max_wis_cnt", parseInt(GetVariable("max_wis_cnt"))+1);
  141. }</send>
  142.   </trigger>
  143.   <trigger
  144.   enabled="y"
  145.   match="^\s+Dex\s+\[(.*?)\s*\]\s+Con\s+\[(.*?)\s*\]\s+Cha\s+\[(.*?)\s*\]$"
  146.   regexp="y"
  147.   send_to="12"
  148.   sequence="51"
  149.  >
  150.   <send>SetVariable("rolled_dex", "%1");
  151. SetVariable("rolled_con", "%2");
  152. SetVariable("rolled_cha", "%3");
  153.  
  154. if ("%1" == GetVariable("max_dex")) {
  155.  SetVariable("max_dex_cnt", parseInt(GetVariable("max_dex_cnt"))+1);
  156. }
  157.  
  158. if ("%2" == GetVariable("max_con")) {
  159.  SetVariable("max_con_cnt", parseInt(GetVariable("max_con_cnt"))+1);
  160. }
  161.  
  162. Note("rolled_int: '"+GetVariable("rolled_int")+"'");
  163. Note("rolled_wis: '"+GetVariable("rolled_wis")+"'");
  164. Note("rolled_str: '"+GetVariable("rolled_str")+"'");
  165. Note("rolled_dex: '"+GetVariable("rolled_dex")+"'");
  166. Note("rolled_con: '"+GetVariable("rolled_con")+"'");
  167.  
  168. rc = parseInt(GetVariable("roll_count"));
  169. if (rc &gt; 1000) {
  170.  SetVariable("roll_count", 0);
  171.  Disconnect();
  172.  Execute("delete");
  173. } else {
  174. if (ok_con() &amp;&amp; ok_dex() &amp;&amp; ok_str()) {
  175.     Note("Found a good roll.");
  176.     Send("n");
  177.     Send(" ");
  178.     Send("1");
  179. } else {
  180.     Send("y");
  181.     SetVariable("roll_count", parseInt(GetVariable("roll_count"))+1);
  182.     SetVariable("rolled_dex", "");
  183.     SetVariable("rolled_con", "");
  184.     SetVariable("rolled_cha", "");
  185.     SetVariable("rolled_int", "");
  186.     SetVariable("rolled_wis", "");
  187.     SetVariable("rolled_str", "");
  188. }
  189. }
  190.  
  191. function ok_str() {
  192.     vals = GetVariable("strength").split(",");
  193.     for (i = 0; i &lt; vals.length; i++) {
  194.         if (vals[i] == GetVariable("rolled_str")) {
  195.             return true
  196.         }
  197.     }
  198.     return false
  199. }
  200.  
  201. function ok_int() {
  202.     vals = GetVariable("intelligence").split(",");
  203.     for (i = 0; i &lt; vals.length; i++) {
  204.         if (vals[i] == GetVariable("rolled_int")) {
  205.             return true
  206.         }
  207.     }
  208.     return false
  209. }
  210.  
  211. function ok_wis() {
  212.     vals = GetVariable("wisdom").split(",");
  213.     for (i = 0; i &lt; vals.length; i++) {
  214.         if (vals[i] == GetVariable("rolled_wis")) {
  215.             return true
  216.         }
  217.     }
  218.     return false
  219. }
  220.  
  221. function ok_dex() {
  222.     vals = GetVariable("dexterity").split(",");
  223.     for (i = 0; i &lt; vals.length; i++) {
  224.         if (vals[i] == GetVariable("rolled_dex")) {
  225.             return true
  226.         }
  227.     }
  228.     return false
  229. }
  230.  
  231. function ok_con() {
  232.     vals = GetVariable("constitution").split(",");
  233.     for (i = 0; i &lt; vals.length; i++) {
  234.         if (vals[i] == GetVariable("rolled_con")) {
  235.             return true
  236.         }
  237.     }
  238.     return false
  239. }
  240.  
  241.  
  242. </send>
  243.   </trigger>
  244.   <trigger
  245.   enabled="y"
  246.   match="^Character .* deleted\! Goodbye\.$"
  247.   regexp="y"
  248.   send_to="12"
  249.   sequence="100"
  250.  >
  251.   <send>Disconnect();
  252. Execute("create");</send>
  253.   </trigger>
  254. </triggers>
  255.  
  256. <!-- aliases -->
  257.  
  258. <aliases
  259.   muclient_version="4.94"
  260.   world_file_version="15"
  261.   date_saved="2018-08-04 11:03:10"
  262.  >
  263.   <alias
  264.   match="create"
  265.   enabled="y"
  266.   send_to="12"
  267.   sequence="100"
  268.  >
  269.   <send>Connect();
  270. DoAfter(3, GetVariable("name"));
  271. DoAfter(4, "y");
  272. DoAfter(5, GetVariable("pass"));
  273. DoAfter(6, GetVariable("pass"));
  274. DoAfter(7, GetVariable("age"));
  275. DoAfter(8, GetVariable("gender"));
  276. DoAfter(9, GetVariable("race"));
  277. DoAfter(10, GetVariable("breath"));
  278. DoAfter(11, GetVariable("class"));</send>
  279.   </alias>
  280.   <alias
  281.   match="delete"
  282.   enabled="y"
  283.   send_to="12"
  284.   sequence="100"
  285.  >
  286.   <send>Connect();
  287. DoAfter(3, GetVariable("name"));
  288. DoAfter(4, GetVariable("pass"));
  289. DoAfter(5, "5");
  290. DoAfter(6, GetVariable("pass"));
  291. DoAfter(7, "yes");
  292. DoAfter(8, " ");</send>
  293.   </alias>
  294. </aliases>
  295.  
  296. <!-- timers -->
  297.  
  298. <timers
  299.   muclient_version="4.94"
  300.   world_file_version="15"
  301.   date_saved="2018-08-04 11:03:10"
  302.  >
  303. </timers>
  304.  
  305. <!-- macros -->
  306.  
  307. <macros
  308.   muclient_version="4.94"
  309.   world_file_version="15"
  310.   date_saved="2018-08-04 11:03:10"
  311.  >
  312.  
  313.   <macro name="up" type="send_now" >
  314.   <send>up</send>
  315.  
  316.   </macro>
  317.  
  318.   <macro name="down" type="send_now" >
  319.   <send>down</send>
  320.  
  321.   </macro>
  322.  
  323.   <macro name="north" type="send_now" >
  324.   <send>north</send>
  325.  
  326.   </macro>
  327.  
  328.   <macro name="south" type="send_now" >
  329.   <send>south</send>
  330.  
  331.   </macro>
  332.  
  333.   <macro name="east" type="send_now" >
  334.   <send>east</send>
  335.  
  336.   </macro>
  337.  
  338.   <macro name="west" type="send_now" >
  339.   <send>west</send>
  340.  
  341.   </macro>
  342.  
  343.   <macro name="examine" type="replace" >
  344.   <send>examine </send>
  345.  
  346.   </macro>
  347.  
  348.   <macro name="look" type="replace" >
  349.   <send>look </send>
  350.  
  351.   </macro>
  352.  
  353.   <macro name="page" type="replace" >
  354.   <send>page </send>
  355.  
  356.   </macro>
  357.  
  358.   <macro name="say" type="replace" >
  359.   <send>say </send>
  360.  
  361.   </macro>
  362.  
  363.   <macro name="whisper" type="replace" >
  364.   <send>whisper </send>
  365.  
  366.   </macro>
  367.  
  368.   <macro name="doing" type="send_now" >
  369.   <send>DOING</send>
  370.  
  371.   </macro>
  372.  
  373.   <macro name="who" type="send_now" >
  374.   <send>WHO</send>
  375.  
  376.   </macro>
  377.  
  378.   <macro name="drop" type="replace" >
  379.   <send>drop </send>
  380.  
  381.   </macro>
  382.  
  383.   <macro name="take" type="replace" >
  384.   <send>take </send>
  385.  
  386.   </macro>
  387.  
  388.   <macro name="logout" type="send_now" >
  389.   <send>LOGOUT</send>
  390.  
  391.   </macro>
  392.  
  393.   <macro name="quit" type="send_now" >
  394.   <send>QUIT</send>
  395.  
  396.   </macro>
  397. </macros>
  398.  
  399. <!-- variables -->
  400.  
  401. <variables
  402.   muclient_version="4.94"
  403.   world_file_version="15"
  404.   date_saved="2018-08-04 11:03:10"
  405.  >
  406.   <variable name="age">35</variable>
  407.   <variable name="breath">1</variable>
  408.   <variable name="class">m</variable>
  409.   <variable name="constitution">Sturdy,Rugged,Tough,Hardy</variable>
  410.   <variable name="dexterity">Deft,Adroit,Smooth,Above Avg</variable>
  411.   <variable name="gender">f</variable>
  412.   <variable name="intelligence">Intellignt,Exceptnl,Brilliant</variable>
  413.   <variable name="max_con">Tough</variable>
  414.   <variable name="max_con_cnt">25</variable>
  415.   <variable name="max_dex">Smooth</variable>
  416.   <variable name="max_dex_cnt">41</variable>
  417.   <variable name="max_int">Brilliant</variable>
  418.   <variable name="max_int_cnt">311</variable>
  419.   <variable name="max_str">Potent</variable>
  420.   <variable name="max_str_cnt">17</variable>
  421.   <variable name="max_wis">Shrewd</variable>
  422.   <variable name="max_wis_cnt">120</variable>
  423.   <variable name="name">Fenelyus</variable>
  424.   <variable name="pass">Coronach84</variable>
  425.   <variable name="race">i</variable>
  426.   <variable name="roll_count">863</variable>
  427.   <variable name="rolled_cha">Hideous</variable>
  428.   <variable name="rolled_con">Hardy</variable>
  429.   <variable name="rolled_dex">Deft</variable>
  430.   <variable name="rolled_int">Exceptnl</variable>
  431.   <variable name="rolled_str">Muscular</variable>
  432.   <variable name="rolled_wis">Keen</variable>
  433.   <variable name="strength">Muscular,Potent,Strong,Powerful,Heroic,Atlantian,Herculean</variable>
  434.   <variable name="wisdom">Keen,Crafty,Shrewd</variable>
  435. </variables>
  436.  
  437. <!-- colours -->
  438.  
  439. <colours
  440.   muclient_version="4.94"
  441.   world_file_version="15"
  442.   date_saved="2018-08-04 11:03:10"
  443.  >
  444.  
  445. <ansi>
  446.  
  447.  <normal>
  448.    <colour seq="1" rgb="black" />
  449.    <colour seq="2" rgb="maroon" />
  450.    <colour seq="3" rgb="green" />
  451.    <colour seq="4" rgb="olive" />
  452.    <colour seq="5" rgb="navy" />
  453.    <colour seq="6" rgb="purple" />
  454.    <colour seq="7" rgb="teal" />
  455.    <colour seq="8" rgb="silver" />
  456.  
  457.  </normal>
  458.  
  459.  <bold>
  460.    <colour seq="1" rgb="gray" />
  461.    <colour seq="2" rgb="red" />
  462.    <colour seq="3" rgb="lime" />
  463.    <colour seq="4" rgb="yellow" />
  464.    <colour seq="5" rgb="blue" />
  465.    <colour seq="6" rgb="magenta" />
  466.    <colour seq="7" rgb="cyan" />
  467.    <colour seq="8" rgb="white" />
  468.  
  469.  </bold>
  470.  
  471. </ansi>
  472.  
  473. <custom>
  474.   <colour seq="1" name="Custom1" text="#FF8080" back="black" />
  475.   <colour seq="2" name="Custom2" text="#FFFF80" back="black" />
  476.   <colour seq="3" name="Custom3" text="#80FF80" back="black" />
  477.   <colour seq="4" name="Custom4" text="#80FFFF" back="black" />
  478.   <colour seq="5" name="Custom5" text="#0080FF" back="black" />
  479.   <colour seq="6" name="Custom6" text="#FF80C0" back="black" />
  480.   <colour seq="7" name="Custom7" text="red" back="black" />
  481.   <colour seq="8" name="Custom8" text="#0080C0" back="black" />
  482.   <colour seq="9" name="Custom9" text="magenta" back="black" />
  483.   <colour seq="10" name="Custom10" text="#804040" back="black" />
  484.   <colour seq="11" name="Custom11" text="#FF8040" back="black" />
  485.   <colour seq="12" name="Custom12" text="teal" back="black" />
  486.   <colour seq="13" name="Custom13" text="#004080" back="black" />
  487.   <colour seq="14" name="Custom14" text="#FF0080" back="black" />
  488.   <colour seq="15" name="Custom15" text="green" back="black" />
  489.   <colour seq="16" name="Custom16" text="blue" back="black" />
  490.  
  491. </custom>
  492. </colours>
  493.  
  494. <!-- keypad -->
  495.  
  496. <keypad
  497.   muclient_version="4.94"
  498.   world_file_version="15"
  499.   date_saved="2018-08-04 11:03:10"
  500.  >
  501.  
  502.   <key name="0" >
  503.   <send>look</send>
  504.   </key>
  505.  
  506.   <key name="1" >
  507.   <send>sw</send>
  508.   </key>
  509.  
  510.   <key name="2" >
  511.   <send>south</send>
  512.   </key>
  513.  
  514.   <key name="3" >
  515.   <send>se</send>
  516.   </key>
  517.  
  518.   <key name="4" >
  519.   <send>west</send>
  520.   </key>
  521.  
  522.   <key name="5" >
  523.   <send>look</send>
  524.   </key>
  525.  
  526.   <key name="6" >
  527.   <send>east</send>
  528.   </key>
  529.  
  530.   <key name="7" >
  531.   <send>nw</send>
  532.   </key>
  533.  
  534.   <key name="8" >
  535.   <send>north</send>
  536.   </key>
  537.  
  538.   <key name="9" >
  539.   <send>ne</send>
  540.   </key>
  541.  
  542.   <key name="." >
  543.   <send>hide</send>
  544.   </key>
  545.  
  546.   <key name="/" >
  547.   <send>inventory</send>
  548.   </key>
  549.  
  550.   <key name="*" >
  551.   <send>score</send>
  552.   </key>
  553.  
  554.   <key name="-" >
  555.   <send>up</send>
  556.   </key>
  557.  
  558.   <key name="+" >
  559.   <send>down</send>
  560.   </key>
  561.  
  562.   <key name="Ctrl+0" >
  563.   </key>
  564.  
  565.   <key name="Ctrl+1" >
  566.   </key>
  567.  
  568.   <key name="Ctrl+2" >
  569.   </key>
  570.  
  571.   <key name="Ctrl+3" >
  572.   </key>
  573.  
  574.   <key name="Ctrl+4" >
  575.   </key>
  576.  
  577.   <key name="Ctrl+5" >
  578.   </key>
  579.  
  580.   <key name="Ctrl+6" >
  581.   </key>
  582.  
  583.   <key name="Ctrl+7" >
  584.   </key>
  585.  
  586.   <key name="Ctrl+8" >
  587.   </key>
  588.  
  589.   <key name="Ctrl+9" >
  590.   </key>
  591.  
  592.   <key name="Ctrl+." >
  593.   </key>
  594.  
  595.   <key name="Ctrl+/" >
  596.   </key>
  597.  
  598.   <key name="Ctrl+*" >
  599.   </key>
  600.  
  601.   <key name="Ctrl+-" >
  602.   </key>
  603.  
  604.   <key name="Ctrl++" >
  605.   </key>
  606. </keypad>
  607.  
  608. <!-- printing -->
  609.  
  610. <printing
  611.   muclient_version="4.94"
  612.   world_file_version="15"
  613.   date_saved="2018-08-04 11:03:10"
  614.  >
  615.  
  616. <ansi>
  617.  
  618.  <normal>
  619.  
  620.  </normal>
  621.  
  622.  <bold>
  623.    <style seq="1" bold="y" />
  624.    <style seq="2" bold="y" />
  625.    <style seq="3" bold="y" />
  626.    <style seq="4" bold="y" />
  627.    <style seq="5" bold="y" />
  628.    <style seq="6" bold="y" />
  629.    <style seq="7" bold="y" />
  630.    <style seq="8" bold="y" />
  631.  
  632.  </bold>
  633.  
  634. </ansi>
  635. </printing>
  636. </muclient>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement