|
Lalaynya Wanderer
Joined: 23 Aug 2002 Posts: 96
|
Posted: Thu Oct 17, 2002 9:22 pm
%lastcom or %lastinput |
Ok, on my mud, if someone is idle when you send a tell, the mud sends back a message that they're idle, but doesn't echo the text that you sent back...
What I'd like to do is trigger off of the idle message, and then send the lastinput to the tell window, but I can't seem to get it to work... my work around is to do #CAP 2 tells , to grab my echoed command, but this sometimes backfires, and grabs the wrong line... any other way to do this? |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Oct 17, 2002 10:17 pm |
To write something to another window, you can use the #WIN command:
#WIN tell {%lastinput}
Kjata |
|
|
|
Lalaynya Wanderer
Joined: 23 Aug 2002 Posts: 96
|
Posted: Thu Oct 17, 2002 10:25 pm |
Hmm... I thought I tried #WIN... maybe the braces will make a difference...
What I kept getting was either nothing passed (I think the window RECEIVEING this was trying to parse lastinput???) or '%lastinput' to the window...
Will try again when I get home, I guess. |
|
|
|
Lalaynya Wanderer
Joined: 23 Aug 2002 Posts: 96
|
Posted: Fri Oct 18, 2002 7:38 am |
Ok, maybe I'm confused, but shouldn't %lastinput be the last thing entered on the command line? It's returning the last command executed...
Anyway, I figured a way to do it... I'll post it in finished scripts tomorrow. |
|
|
|
cingulli Wanderer
Joined: 30 Aug 2001 Posts: 53 Location: Finland
|
Posted: Fri Oct 18, 2002 8:33 am |
its #win tell {%lastcom}
so try something like #tr {person is idle} {#win tell {%lastcom}} |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Oct 18, 2002 6:28 pm |
Perhaps capture the tells as you send them?
#AL tell {#VAR lasttell {tell %-1};~tell %-1}
LightBulb
Senior Member |
|
|
|
Lalaynya Wanderer
Joined: 23 Aug 2002 Posts: 96
|
Posted: Fri Oct 18, 2002 10:18 pm |
Hmmm... I could probably do that... the solution I came up with was #his, then gag everything except the last line (1, it counts backwards) and capture that...
I guess I could just capture tells as I send them, and take out my trigger for a non-idle tell... Think I will do that. The only downside is that it messes up the colors for Imm names, but I guess I could live with that. |
|
|
|
|
|