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


Joined: 27 Sep 2005
Posts: 11

PostPosted: Tue Sep 27, 2005 6:15 pm   

help please *solved*
 
I am very new to zmud, well i have used it for 2 years now and now that i can getting more into the client based stuff i am having alot of questions.

what i am trying to do is make a alias to look up to see if a char has a multi on and what multis they have.

when i type

last armand

i get

Code:
[ 8397] [50 Wz] Armand       : 123.123.123.123     : Tue Sep 27 11:58:57 2005



then i have to type

userlist -h 123.123.123.123

and i get what i am looking for

Code:
st (0-57) () (123.123.123.123) (Any Class) (Any Race) (Any Clan) (Any Brand)
 Id   Lv  Flags Name               
 8397 [50] [   ] armand             
26276 [50] [   ] sinagel           
2 players listed.



anyone have any idea's how to do this. what i mainly get lost on is the ip address

thank you in advance for your help.

Editted by Vijilante to add code tags so we could see the formatting.


Last edited by Mudimm on Wed Sep 28, 2005 1:57 am; edited 1 time in total
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Sep 27, 2005 8:58 pm   
 
#CLASS TrackMultis
#VARIABLE Seeking {} {}
#VARIABLE CapturedNames {} {}
#ONINPUT {^last (%w)$} {#ADDKEY Seeking Name {%1}}
#COND {^~[&5~] ~[&5~] {@Seeking}%s: ([0-9.])} {#ADDKEY Seeking IP {%1}};userlist -h %1;CapturedNames="";#T+ PlayerCaptures}
#COND {^%d players listed.$} {#T- PlayerCaptures;#NOOP Any further processing you want here.}
#TRIGGER "PlayerCaptures" {^&5 ~[%d~] ~[&3~] (%w)} {#ADDITEM CapturedNames {%1}}
#CLASS 0

That should about do it. I preformed no testing on this simply typed it out, so there may be a missing )]} or such.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Mudimm
Beginner


Joined: 27 Sep 2005
Posts: 11

PostPosted: Wed Sep 28, 2005 1:55 am   
 
thank you so much..i did not think about going that way to get the info i needed
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