Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Loading Triggers
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| WRTIII
Canada (76 posts) Bio
|
Date
| Sun 08 Jun 2003 04:26 PM (UTC) |
Message
| How do I load triggers
I need to have like 50 of the same triggers just with different item names
NAME - (artifact name)
SEND - Get (artifact name)
Enabled
Colour - Custom 8
Ignore case
Keep Evaluating
Regular Expression
Repeat on same line
Group - ARTIFACTS
I need 50 triggers setup like that How do I format that so I can just copy and paste all the info and just have to type out the artifact name in each.
Or could someone pelase tell me the easiest way to get them all loaded in.
thanks
wrtiii | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 08 Jun 2003 09:40 PM (UTC) |
Message
| The simplest thing would be to use the "or" feature of regular expressions, and have just one trigger. It would look like this (use the "..." button to open a bigger box to type it in)...
Match: (name1|name2|name3| .... name50)
Send: get %1
Regular expression: checked
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| WRTIII
Canada (76 posts) Bio
|
Date
| Reply #2 on Sun 08 Jun 2003 11:10 PM (UTC) |
Message
| Wow that really is easy, Thanks never knew you could do that. | Top |
|
Posted by
| WRTIII
Canada (76 posts) Bio
|
Date
| Reply #3 on Mon 05 Jan 2004 02:30 AM (UTC) |
Message
| Match: (advertising flyer|armour of agemennion|bejewelled casket|bishops mitre|black sceptre|blue cloak|bronze headband|cardinal's shield|cloak de treville|chalice of eternal life|chunk of silver ore|crucifix|cup of our lord|dagger of the ancients|father mazarin's pipe|golden branches|gold fob-watch|hammer of the underworld|helm of artemides|horn of the great boar|jade bracelet|king's snuff box|libram of herbal alchemy|libram of ineffable damnation|lyre of memnon|owl of athena|painting of paris by night|pair of winged shoes|piece of iron ore|queen's silver mirror|rustic shovel|shroud of mourning|silver amulet|silver goblet|silver ring|silver scimitar|staff of hermes|stethoscope|thin telescope|toy scabbard with many scuff marks)
Send: get %1
Regular expression: checked
Ok So I did that and I put this in... It didn't work
So I do this
<triggers>
<trigger
custom_colour="9"
enabled="y"
ignore_case="y"
keep_evaluating="y"
match="advertising flyer|armour of agemennion|bejewelled casket|bishops mitre|black sceptre|blue cloak|bronze headband|cardinal's shield|cloak de treville|chalice of eternal life|chunk of silver ore|crucifix|cup of our lord|dagger of the ancients|father mazarin's pipe|golden branches|gold fob-watch|hammer of the underworld|helm of artemides|horn of the great boar|jade bracelet|king's snuff box|libram of herbal alchemy|libram of ineffable damnation|lyre of memnon|owl of athena|painting of paris by night|pair of winged shoes|piece of iron ore|queen's silver mirror|rustic shovel|shroud of mourning|silver amulet|silver goblet|silver ring|silver scimitar|staff of hermes|stethoscope|thin telescope|toy scabbard with many scuff marks"
name="artget"
regexp="y"
repeat="y"
sequence="100"
other_text_colour="black"
other_back_colour="black"
>
<send>get %1</send>
</trigger>
</triggers>
It works to match but on return it only changes colour and sends GET to the game
I need it to GET then the item it matched on...
| Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #4 on Mon 05 Jan 2004 06:51 AM (UTC) |
Message
| You need to have the match text be in parenthesis (), since that tells MC to count that as a variable that may need to be used later, without the parenthesis, while the trigger still matches, nothing gets returned in the array except the whole line (%0) |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #5 on Mon 05 Jan 2004 07:01 PM (UTC) |
Message
|
Quote:
Match: (advertising flyer|...|stethoscope|thin telescope|toy scabbard with many scuff marks)
Send: get %1
Regular expression: checked
Ok So I did that and I put this in... It didn't work
In what what did it not work? I tried that and it matched and did a "get (whatever)". Are you saying it wouldn't match multiple items? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
16,172 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top