HI .. I just switched over to MUSHclient *hooray .. from using Zmud.
These are the triggers i used in old client. I need help to make them into mushclent triggers. I didnt make these i just copied it from someone else. All i has to do was to copy and paste it on the promp box.
autohunt -
#ALIAS hunt {#T+ autohunt;huntmob=%1;hun @huntmob}
#TRIGGER {* is (%w) from here.} {#IF (%1 =~ {north|south|east|west|up|down}) {huntmobdirection=%1;%1;hun @huntmob}} {autohunt}
#TRIGGER {* is here~!} {huntstop} {autohunt}
#TRIGGER {* is closed~.$} {open @huntmobdirection} {autohunt}
#TRIGGER {The door is locked and you lack the key~.$} {huntstop;#say "Locked Door!"} {autohunt}
#TRIGGER {Magical wards around * bounce you back~.} {#T- autohunt} {autohunt}
#TRIGGER {No-one in this area by that name~.$} {huntstop;#say "Mob not in this area! Try another mob keyword?"} {autohunt}
#TRIGGER {You couldn~'t find a path to *} {huntstop;#say "Mob not in this part of town! Try hunting again after portals or in another part of the area"} {autohunt}
#TRIGGER {No way~! You are still fighting~!$} {huntstop;#say "Try hunting again when combat ends"} {autohunt}
#ALIAS huntstop {#T- autohunt;huntmob="";huntmobdirection=""}
disarm -
#TRIGGER {DISARMS you and sends your * flying~!} {get @weapon;wear @weapon} {rearm}
#TRIGGER {DISARMS you and you struggle not to drop your weapon~!} {wear @weapon} {rearm}
#ALIAS weapon {#var weapon}
The triggers and aliases below should behave the same way. I have shown the zMUD equivalents to aid others in converting similar ones. You will need to copy and paste between the lines (once for each group) and then go to the File menu -> Import -> Clipboard to import them.
<aliases>
<!--
zMUD alias:
#ALIAS hunt {#T+ autohunt;huntmob=%1;hun @huntmob}
-->
<alias
match="hunt *"
enabled="y"
send_to="12"
sequence="100"
>
<send>EnableTriggerGroup "autohunt", vbTrue
SetVariable "huntmob", "%1"
Send "hun %1"
</send>
</alias>
<!--
zMUD alias:
#ALIAS huntstop
{#T- autohunt;huntmob="";huntmobdirection=""}
-->
<alias
match="huntstop"
enabled="y"
send_to="12"
sequence="100"
>
<send>EnableTriggerGroup "autohunt", vbFalse
SetVariable "huntmob", ""
Note "Hunt stopped."
SetVariable "huntmobdirection", ""</send>
</alias>
</aliases>
<triggers>
<!--
zMUD trigger:
#TRIGGER {* is closed~.$}
{open @huntmobdirection} {autohunt}
-->
<trigger
expand_variables="y"
group="autohunt"
match="* is closed."
sequence="100"
>
<send>open @huntmobdirection
</send>
</trigger>
<!--
zMUD trigger:
#TRIGGER {* is here~!}
{huntstop} {autohunt}
-->
<trigger
custom_colour="2"
group="autohunt"
match="* is here!"
send_to="10"
sequence="100"
>
<send>huntstop</send>
</trigger>
<!--
zMUD trigger:
#TRIGGER {* is (%w) from here.}
{#IF (%1 =~ {north|south|east|west|up|down}) {huntmobdirection=%1;%1;hun @huntmob}}
{autohunt}
-->
<trigger
group="autohunt"
match=".* is (north|south|east|west|up|down) from here\."
expand_variables="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>SetVariable "huntmobdirection", "%1"
Send "%1"
Send "hun @huntmob"
</send>
</trigger>
<!--
zMUD trigger:
#TRIGGER {Magical wards around * bounce you back~.}
{#T- autohunt} {autohunt}
-->
<trigger
custom_colour="2"
group="autohunt"
match="Magical wards around * bounce you back."
send_to="10"
sequence="100"
>
<send>huntstop</send>
</trigger>
<!--
zMUD trigger:
#TRIGGER {No way~! You are still fighting~!$}
{huntstop;#say "Try hunting again when combat ends"}
{autohunt}
-->
<trigger
custom_colour="2"
group="autohunt"
match="No way! You are still fighting!"
send_to="12"
sequence="100"
>
<send>Note "Try hunting again when combat ends"
world.Execute "huntstop"</send>
</trigger>
<!--
zMUD trigger:
#TRIGGER {No-one in this area by that name~.$}
{huntstop;#say "Mob not in this area! Try another mob keyword?"}
{autohunt}
-->
<trigger
custom_colour="2"
group="autohunt"
match="No-one in this area by that name."
send_to="12"
sequence="100"
>
<send>Note "Mob not in this area! Try another mob keyword?"
world.Execute "huntstop"</send>
</trigger>
<!--
zMUD trigger:
#TRIGGER {The door is locked and you lack the key~.$}
{huntstop;#say "Locked Door!"} {autohunt}
-->
<trigger
custom_colour="2"
group="autohunt"
match="The door is locked and you lack the key."
send_to="12"
sequence="100"
>
<send>Note "Locked Door!"
world.Execute "huntstop"</send>
</trigger>
<!--
zMUD trigger:
#TRIGGER {You couldn~'t find a path to *}
{huntstop;#say "Mob not in this part of town!
Try hunting again after portals or in another part of the area"} {autohunt}
-->
<trigger
custom_colour="2"
group="autohunt"
match="You couldn't find a path to *"
send_to="12"
sequence="100"
>
<send>Note "Mob not in this part of town! " _
& "Try hunting again after portals or in another part of the area"
world.Execute "huntstop"</send>
</trigger>
</triggers>
disarm
<aliases>
<!--
zMUD alias:
#ALIAS weapon {#var weapon}
-->
<alias
match="weapon *"
enabled="y"
variable="weapon"
send_to="9"
sequence="100"
>
<send>%1</send>
</alias>
</aliases>
<!--
zMUD trigger:
#TRIGGER {DISARMS you and sends your * flying~!}
{get @weapon;wear @weapon} {rearm}
-->
<triggers>
<trigger
custom_colour="2"
enabled="y"
expand_variables="y"
group="rearm"
match="DISARMS you and sends your .* flying\!"
regexp="y"
sequence="100"
>
<send>get @weapon
wear @weapon</send>
</trigger>
<!--
zMUD trigger:
#TRIGGER {DISARMS you and you struggle not to drop your weapon~!}
{wear @weapon} {rearm}
-->
<trigger
custom_colour="2"
enabled="y"
expand_variables="y"
group="rearm"
match="DISARMS you and you struggle not to drop your weapon\!"
regexp="y"
sequence="100"
>
<send>wear @weapon</send>
</trigger>
</triggers>
Well I am thrilled to have have found this. I've been looking everwhere for Mush stuff for Aard. My question though *yes I am very dumb* is now how to a paste this? I am not sure which items to paste where, and how to title the aliases so on and so on. Or am I supposed to copy all of this and paste it somewhere else? I'm confused...
Things are (usually) in a XML type format. Individual triggers are within a <trigger></trigger> block, while a group (including a group of one) is within a <triggers></triggers> block (same for alias/aliases, timer/timers, and variable/variables)
You copy the WHOLE group of the item to the clipboard (<triggers> to </triggers>) and then click 'paste' in the configuration window for that type (the one that lists ALL of that type in a grid) and then you'll paste all of the (whatevers) into it.
The other option is to copy multiple types (which again could be a single type) and import the XML (via either the importXML function and a variable, or through the file > import and doing it that way).