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
newbie23452
Newbie


Joined: 25 Feb 2004
Posts: 4
Location: USA

PostPosted: Fri Mar 12, 2004 5:56 am   

Help on alias please
 
how would I setup a alias to pick up the following.

on the mud If i type last playername
i get the following

[ 8740] [50 Ro] Caine : 192.168.1.1 : Thu Mar 11 21:56:28 2004

then i need to type

userl -h 192.168.1.1

to check for multi's

is there a way i can make an alias to pick up the ip addy and then enter the command userl -h ip.

Could someone point me in the right direction.

thank you
Reply with quote
Theragil
Apprentice


Joined: 13 Feb 2004
Posts: 157
Location: USA

PostPosted: Fri Mar 12, 2004 4:09 pm   
 
I'd do this (keep in mind I don't know what bits of the trigger text are variable, so I'm just guessing):

#alias checkmulti {#temp {~[%d Ro~] %w : (%d).(%d).(%d).(%d) :} {userl -h %1.%2.%3.%4};last playername}

This is entirely untested. You'll probably have to fiddle the trigger in the #temp to get it to match what really varies in your output. If it works, "checkmulti" will do what you want.
Reply with quote
Eyeless
Wanderer


Joined: 02 Dec 2001
Posts: 80
Location: Canada

PostPosted: Fri Mar 12, 2004 5:22 pm   
 
problem with Your setup is that he wouldnt have the information he wanted when he wanted... after he typed checkmulti, then a temp trigger would be enabled... which would fire the next time an individual logged on (too late for the current user)

Id do this myself (assuming [] are mud outputs):
#TR {*~:%s(*)%s~:*} {#VAR ipaddress %1}
#ALIAS checkmulti {userl -h @ipaddress}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Mar 12, 2004 6:08 pm   
 
#AL last {#T+ multitrig;~last}
#TR multitrig {%p(%d.%d.%d.%d)} {#T- multitrig;userl -h %1} {} {disable}
Reply with quote
Theragil
Apprentice


Joined: 13 Feb 2004
Posts: 157
Location: USA

PostPosted: Fri Mar 12, 2004 6:18 pm   
 
The temp trigger should be fired by the "last playername" command -- if the O.P. told the truth about how that works.
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