|
LethalBlueSmurf Beginner
Joined: 12 Oct 2002 Posts: 13 Location: USA
|
Posted: Thu Oct 17, 2002 4:18 am
Zmud Alert When Certain Text Appears |
On my mud, there is an option to show people that log on/off. I want to make it so it beeps/alerts me when one of my friends get on, and not the other people...Is this possible?
|
|
|
|
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: Thu Oct 17, 2002 4:37 am |
sure, its a pretty simple thing to do. if the mud sends you this output when someone logs on:
Aplayer has entered the game.
make your trigger like this:
Pattern: ^(%w) has entered the game.$
commands:
#if(%ismember(%1, @friends)) {#beep;#echo %1 is here}
then use this command to construct the friends variable
#var friends Butch|Razor|Mudguy|Jane
(but replace Butch etc. with the names of your actual friends ) You can use the variables button on the toolbar to edit this list. if you want more details, post the exact message you get when someone logs on. |
|
|
|
LethalBlueSmurf Beginner
Joined: 12 Oct 2002 Posts: 13 Location: USA
|
Posted: Thu Oct 17, 2002 5:12 am |
Thanks!
|
|
|
|
LethalBlueSmurf Beginner
Joined: 12 Oct 2002 Posts: 13 Location: USA
|
Posted: Sat Oct 19, 2002 1:44 am |
Ok...I tried it, created the variables, the trigger, but it still doesnt work...Please help?
|
|
|
|
AzCowboy Adept
Joined: 09 Nov 2000 Posts: 222 Location: USA
|
Posted: Sat Oct 19, 2002 4:24 am |
quote:
if you want more details, post the exact message you get when someone logs on.
It helps if you read and follow directions. There's literally THOUSANDS of muds out there... how the hell are we supposed to guess which one you're on, and what the text is that you want to build the trigger on????? |
|
|
|
LethalBlueSmurf Beginner
Joined: 12 Oct 2002 Posts: 13 Location: USA
|
Posted: Sat Oct 19, 2002 7:53 pm |
I changed the pattern to what it shows for my mud, and it still doesn't work
The message is Name just arrived in the world. |
|
|
|
AzCowboy Adept
Joined: 09 Nov 2000 Posts: 222 Location: USA
|
Posted: Sat Oct 19, 2002 9:00 pm |
quote:
I changed the pattern to what it shows for my mud, and it still doesn't work
The message is Name just arrived in the world.
*sigh* The only problem I see is if there is ANYTHING on the line before the name, (space, >, whatever) the trigger won't fire, because of the '^' in the pattern... Also, with the '$' at the end of the line, if there is even a space after the period, it also won't work... try removing those. |
|
|
|
LethalBlueSmurf Beginner
Joined: 12 Oct 2002 Posts: 13 Location: USA
|
Posted: Sun Oct 20, 2002 1:41 am |
It's not working...
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Oct 20, 2002 3:49 am |
quote:
It's not working...
Once again, we can't help you without details. We need them, and we won't get hurt if you throw too many of them in our general direction.
li'l shmoe of Dragon's Gate MUD |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Oct 20, 2002 8:18 am |
Pattern: (%w) just arrived in the world
commands:
#if(%ismember(%1, @friends)) {#beep;#echo %1 is here}
Or from the command line:
#TR {(%w) just arrived in the world} {#IF (%ismember(%1, @friends)) {#BEEP;#ECHO {%1 is here}}}
Another method:
#TR {({@friends}) just arrived in the world} {#BEEP;#SAY {%1 is here}}
These all depend on having a stringlist variable named @friends. The best way to create one is
#VAR friends %null //to get rid of anything you had before
#ADDITEM friends Emit
#ADDITEM friends AzCowboy
#ADDITEM friends MattLofton
#ADDITEM friends LightBulb
and so on...
Use braces {} around any multi-word entries
ADDITEM friends {Lethal Blue Smurf}
And yes, "it's not working..." is pretty much meaningless as far as coming up with a solution.
LightBulb
Senior Member |
|
|
|
LethalBlueSmurf Beginner
Joined: 12 Oct 2002 Posts: 13 Location: USA
|
Posted: Sun Oct 20, 2002 7:36 pm |
Ok...I have a separate window for the arrivals, which is on the top right of the screen...Is that the reason it isn't working?
I copied the triggers/variables to both windows. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Oct 20, 2002 8:51 pm |
1. What do you mean by "it's not working"? This is meaningless information since we can't see your computer
2. Which triggers did you copy?
A. The version for the editor?
B. The command line version, which produces the identical trigger to the editor version?
C. The alternate command line trigger?
You should only be using one.
3. Why would you copy the variables? Do you actually have friends named Emit, AzCowboy, MattLofton, and LightBulb on your MUD? Or Butch, Razor, Mudguy, and Jane? Emit and I told you methods for making your own variable, there's no point copying ours because we don't know the names of your friends.
Take a look at all the posts in this topic. All of your posts are one to three lines. Most of the answers are several times as long. This is backwards. This makes me think you care so little about the problem you can't bother to spend more than a few seconds typing in "it still doesn't work". If you don't care enough to provide details, don't expect anyone else to either.
LightBulb
Senior Member |
|
|
|
LethalBlueSmurf Beginner
Joined: 12 Oct 2002 Posts: 13 Location: USA
|
Posted: Sun Oct 20, 2002 9:50 pm |
I copied the problems into both windows, not the ones that you gave me. The triggers in each window are different. I don't exactly see how to be any more descriptive...It's not working. I made the variables, i changed the pattern to what it says on my mud (which is Dragon's Gate), and yet it still does nothing. My Zmud is version 6.34.
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Oct 20, 2002 11:42 pm |
quote:
I copied the problems into both windows, not the ones that you gave me. The triggers in each window are different. I don't exactly see how to be any more descriptive...It's not working. I made the variables, i changed the pattern to what it says on my mud (which is Dragon's Gate), and yet it still does nothing. My Zmud is version 6.34.
That's what I thought. While I don't see ANY reason why the above triggers wouldn't work, the full message for logins looks like this:
** Firstname Lastname just arrived in the world.
The trigger would look like this:
#trigger { ~*~* (%*) just arrived in the world.} {#if(%ismember(%1, @friends)) {#beep;#echo %1 is here}}
The %* is there because we have certain PC's who are given a single-word name (these are adult 3rd/4th-stage dragon PCs, and they get named like this: Michael'a).
There are two other messages to handle disconnections and logouts, and these messages can be combined to form a single trigger:
#trigger {^ ~*~* (%*) ({just arrived in the world|has left the world|has left the world unexpectedly}).$} {#if(%ismember("%1", @friends)) {#beep;#case (%ismember("%2", "just arrived in the world|has left the world|has left the world unexpectedly")) {#echo %1 is here} {#echo %1 has left} {#echo %1 has disco'd}}}
EDIT: if you want a faster response in regards to DGate mud-client scripting, you really should post to the EZBoards forum about it first.
To our Game Interface folder:
http://pub13.ezboard.com/fdragonsgatefrm69
li'l shmoe of Dragon's Gate MUD |
|
|
|
Tarn GURU
Joined: 10 Oct 2000 Posts: 873 Location: USA
|
Posted: Mon Oct 21, 2002 12:00 am |
quote:
While I don't see ANY reason why the above triggers wouldn't work,
Now that we have all of the information, my guess would be that he wasn't matching up his trigger pattern with his friends list: using the %w with first or full names in the list, using first only with the {@friends} wildcard, or simply not matching, in the case of Emit's.
Of course, your trigger should catch exactly what he wants, provided that he puts full names in his friends list.
-Tarn |
|
|
|
LethalBlueSmurf Beginner
Joined: 12 Oct 2002 Posts: 13 Location: USA
|
Posted: Mon Oct 21, 2002 3:51 am |
Ok...This is not the reason why it wasn't working (i changed all the patterns and everything) but my window is set to change the arrivals to {First Last} arrived at *time displayed here*, the leaves as {First Last} left at *time displayed here*, and disconnects as {First Last} disco'd at *time displayed here*, and a post above said that the $ would cause the trigger to not work...Is that true?
|
|
|
|
Castaway GURU
Joined: 10 Oct 2000 Posts: 793 Location: Swindon, England
|
Posted: Mon Oct 21, 2002 7:50 am |
How about you post the _exact text_ you get when someone enters the mud? How about you post the _exact triggers_ you have used?
I'm amazed that anyone is helping you at all with so little information.. Are we supposed to be telepathic or something??
Lady C. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Oct 21, 2002 10:15 pm |
No need to repost the text messages, Castaway. I didn't write them out neatly like the arrivals message, but all of them are contained in the second trigger I provided.
Anywho, since one cannot change the MUD-side format that the messages come Smurfie can eliminate the extra triggers he's using to change it as he is. That change can be easily incorporated into the aforementioned trigger:
#if (%ismember("%1",@Friends)) {#beep;#substitute {%1 %case(%ismember("%2","just arrived in the world|has left the world|has left the world unexpectedly"),arrived,left, disco'd) at %time("hh:nn:ss ampm").}} {#noop do whatever else you want to do for non-friends}
Unless Smurfie wants to send all that to a child window, that's all he'll need.
li'l shmoe of Dragon's Gate MUD |
|
|
|
LethalBlueSmurf Beginner
Joined: 12 Oct 2002 Posts: 13 Location: USA
|
Posted: Wed Oct 23, 2002 12:14 am |
Child window? And it already changes the text for me in my arrival window...It just shows up Name Name arrived at time am/pm, Name Name left at time am/pm, Name Name disco'd at time am/pm
|
|
|
|
AzCowboy Adept
Joined: 09 Nov 2000 Posts: 222 Location: USA
|
Posted: Wed Oct 23, 2002 2:11 am |
Ok, let's spell it out for morons....
quote: Child window? And it already changes the text for me in my arrival window...It just shows up Name Name arrived at time am/pm, Name Name left at time am/pm, Name Name disco'd at time am/pm
my arrival window: This is a child window...
And it already changes the text for me in my arrival window: Means that you already HAVE some kind of trigger for this
Alter your trigger you already have to do what you want... if you don't understand any of this, pressing 'F1' at the top of your keyboard does wonders.
Alternately: JUST POST A COPY OF THE EXACT TEXT YOU RECEIVE to the board, and someone will doubtless do all the work for you, seeing as someone has already done the rest for you, maybe you could talk to that person and they would be willing to help? |
|
|
|
LethalBlueSmurf Beginner
Joined: 12 Oct 2002 Posts: 13 Location: USA
|
Posted: Thu Oct 24, 2002 3:51 am |
Random person:
Darktalon Llywyllyn arrived at 7:37 pm (with the space at the beginning) |
|
|
|
seamer Magician
Joined: 26 Feb 2001 Posts: 358 Location: Australia
|
Posted: Fri Oct 25, 2002 3:38 pm |
is that right, characters have a surname? that explains why the triggers werent working, spaces in variables have to be treated differently :/
er...hmm...
@friends data should look like "a friend"|"a friend 1"|"another friend"|"yep more friends" and so on...making me think about zmud right now is evil, my head hurts from a too-long hiatus from mudding!
Why oh WHY did I have pass door on... |
|
|
|
|
|