|
newbie23452 Newbie
Joined: 25 Feb 2004 Posts: 4 Location: USA
|
Posted: 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 |
|
|
|
Theragil Apprentice
Joined: 13 Feb 2004 Posts: 157 Location: USA
|
Posted: 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. |
|
|
|
Eyeless Wanderer
Joined: 02 Dec 2001 Posts: 80 Location: Canada
|
Posted: 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} |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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} |
|
|
|
Theragil Apprentice
Joined: 13 Feb 2004 Posts: 157 Location: USA
|
Posted: 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.
|
|
|
|
|
|