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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion

Joined: 17 Dec 2001
Posts: 11
Location: USA

PostPosted: Tue Jun 12, 2018 11:41 pm   

Last seen list and script
OK this is my idea...

I'd like to capture the MOB's and PC's that I've seen

Seems like in the particular mud the sends all the PC's and Mobs with a 32m code
*from debugger*
06:42:49.064p | <ESC>[35mA handsome-looking, pot-bellied young man<ESC>[0m is sitting here.<ESC>[0m <CR><LF>

but sometimes its like this
06:42:49.064p | <ESC>[35mA red cheeked boy with a lazy eye is here.<ESC>[0m <CR><LF>

Ideally there would be a way to check the mud output against the @seen list

then Update the @seen list with a new time

Once I have that Info I'd like to put buttons with the last ten MOBs seen in my left bar (Like a list but displayed better I think)

Anyone got any ideas for how to actually do that?
Reply with quote

Joined: 04 Aug 2002
Posts: 3706
Location: Pensacola, FL, USA

PostPosted: Wed Jun 13, 2018 12:24 am   
Well that is just how it delivers the color information to the client.
I have never had much luck with a variable ansi trigger myself, but you could to that with a static trigger easily enough.

If you copy the text from the scrollback buffer, and go to make a new trigger, make sure to check the ANSI box down at the bottom before pasting the line in.
It should but the appropriate ansi code tags in.

As for the body of the trigger it could do something like...

#ADDITEM seen {%concat(%line, "---", %time)}
#WHILE (%numitems(@seen)>10) {#CALL %pop(seen)}

Might be easier to just use a child window which you dock accordingly.

#EXECWIN MobTracker {#CLR}
#FORALL @seen {#WIN MobTracker {%i}}
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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