Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Lalaynya
Wanderer


Joined: 23 Aug 2002
Posts: 96

PostPosted: 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?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Oct 17, 2002 10:17 pm   
 
To write something to another window, you can use the #WIN command:
#WIN tell {%lastinput}

Kjata
Reply with quote
Lalaynya
Wanderer


Joined: 23 Aug 2002
Posts: 96

PostPosted: 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.
Reply with quote
Lalaynya
Wanderer


Joined: 23 Aug 2002
Posts: 96

PostPosted: 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.
Reply with quote
cingulli
Wanderer


Joined: 30 Aug 2001
Posts: 53
Location: Finland

PostPosted: Fri Oct 18, 2002 8:33 am   
 
its #win tell {%lastcom}
so try something like #tr {person is idle} {#win tell {%lastcom}}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Lalaynya
Wanderer


Joined: 23 Aug 2002
Posts: 96

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net