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
jenwin
Beginner


Joined: 05 Jul 2003
Posts: 24
Location: Sweden

PostPosted: Sat Mar 27, 2004 11:28 pm   

Tell and time challenge
 
Very Happy[8D]Very Happy
Heya,

I got this idea in my head but dunno really how to get it to work... See I am right now capturing tells that are sent to me and using the following triggers etc
(%w) tells you
#cap %1

oki, that works pretty good, but now I want to add to the text at what time the tell came in, how do I timestamp the event and send it to the #cap window? and can it be that there is a way to get the timestand after the message
for instals Killer tells you "yadadayd" thursday 16.30pm

Thanx for your time
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Sun Mar 28, 2004 12:42 am   
 
Sure can.

This little trigger will do it for you.
#TRIGGER {(%w) tells you} {#IF (%ismember(%1,%names)=0) {#WIN %1;:%1:#TRIGGER {^(*)$} {#PSUB {%%%1 %time("aaaa h.nna/p")%cr} %%%x1} "" {color|notrig};#CAP %1;#EXEC %concat(%window,":#NOOP")} {#CAP %1}}
Reply with quote
jenwin
Beginner


Joined: 05 Jul 2003
Posts: 24
Location: Sweden

PostPosted: Sun Mar 28, 2004 1:28 am   
 
Thank you kindly
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