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
➜ Lua
➜ Prompt line parsing and output parsing.
Prompt line parsing and output parsing.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Madjack
Ukraine (16 posts) Bio
|
Date
| Fri 15 Apr 2005 10:50 PM (UTC) |
Message
| I need to set trigger for mud prompt. But triiger fires when prompt you send something to mud and prompt displays in output. For example:
<20/20 100/100 100/100> <--- HERE FIRES OK
say Hello
You saying: Hello
<20/20 100/100 100/100> <--- HERE FIRES OK
<20/20 100/100 100/100> <--- HERE NOT FIRES
------------------------------------------------
What i can do, to hook mud prompt? |
Macbook pro late 2008 (MB471) | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #1 on Fri 15 Apr 2005 11:55 PM (UTC) |
Message
| Does the prompt occur everytime you send something? (and other times on its own, of course)
Can you copy/paste some output from the server here? We'll need to see the exact spacing of the prompt (use the [code] [/code] tags to keep the forum from eating whitespace). |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Madjack
Ukraine (16 posts) Bio
|
Date
| Reply #2 on Sat 16 Apr 2005 02:31 AM (UTC) Amended on Sat 16 Apr 2005 02:35 AM (UTC) by Madjack
|
Message
| I'am not a newbie in programming :-) And problem in other things. I'am from russian, so sorry for bad english:-)
look
131/131 154/154 115/115 3 | evil | "Underground" | 11587 | UD#
131/131 154/154 115/115 3 | evil | "Underground" | 11587 | UD#
131/131 154/154 115/115 4 | evil | "Underground" | 11587 | UD#
Mud address: aladon.sovintel.ru:9000
First bottom line is server prompt. When i send something to mud, prompt dublicates up to output and after that triggers fires. But! In this sample you can see, that in server prompt line time = 4, but triggers can't fire and set var to 4. When i send something to mud prompt sends to output and triggers fires. |
Macbook pro late 2008 (MB471) | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Mon 18 Apr 2005 07:08 AM (UTC) |
Message
| Triggers are evaluated at the newline character (\n) so possibly your problem is that the line has not been terminated by a newline. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Madjack
Ukraine (16 posts) Bio
|
Date
| Reply #4 on Mon 18 Apr 2005 07:22 PM (UTC) |
Message
| Yes. Prompt don't have new line symbol. And i don't think, that i can insert a new line symbol at the end of my prompt line. Can you add special trigger for hooking prompt line? |
Macbook pro late 2008 (MB471) | Top |
|
Posted by
| Larkin
(278 posts) Bio
|
Date
| Reply #5 on Mon 18 Apr 2005 08:50 PM (UTC) |
Message
| One of the key changes in version 3.66 allows you to add a carriage return to the end of most MUD prompts. You'll find an option to replace the IAC GA/EOR bytes with CR/LF bytes. Try that and see if it helps you with your triggers. | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #6 on Mon 18 Apr 2005 09:16 PM (UTC) |
Message
| |
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.
25,445 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top