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
Snoop Bob
Beginner


Joined: 05 Sep 2003
Posts: 23

PostPosted: Mon Sep 22, 2003 1:51 pm   

Wholist help
 
ok, I have set up a trigger that captures the who list...

Players found: %1
=
#var online %1
#ad online 2
#cap @online wholist


What I want to do now, is have it list right away of=
1.-People that are on the list, that wern't last time I checked it. AND
2.-People that arn't on the list, that were last time I checked.

---
Thanks for the help guys!
Reply with quote
Darkmere
Novice


Joined: 23 May 2003
Posts: 31

PostPosted: Mon Sep 22, 2003 9:27 pm   
 
Give an example of the who list format
Reply with quote
Snoop Bob
Beginner


Joined: 05 Sep 2003
Posts: 23

PostPosted: Mon Sep 22, 2003 10:17 pm   
 
Ok, thanks
Reply with quote
Snoop Bob
Beginner


Joined: 05 Sep 2003
Posts: 23

PostPosted: Mon Sep 22, 2003 10:18 pm   
 
[ ] Anrhan Go'lemn, Voice of the Wolf
[ ] Atolm
[ ] Cestal
[ ] Delaris Zu'Kedas
[ ] Erystis Seranivyl
[ ] Exander Mirkiniau
[ ] Garsinica Aldea
[ ] Gork Feldak
[ ] Hargaron Tel'Simalyr, Elysian Ambassador to Lanakh
[ ] Jalanari Galadran
[ ] Jindayn Sasvairn, Oracle of the Sands
[ ] Johny Kin'da
[ ] Jumiah Ba'rual
[ ] Karzon Feldak
[ ] Kril Awas
[ ] Meladus Lailak
[ ] Nazhuk
[ ] Raccia Dell'Ario
[ ] Seljuk Aitkean
[ ] Sirbis
[ ] Valdor
[ ] Vincent Aurelius, Ghurka of the Burning Sands
[Hit Return to continue]

[ ] Vought Cors, Scythe of the Eternal
[ ] Zusralnexahael

Players found: 24

--------- AND
[ ] Anrhan Go'lemn, Voice of the Wolf
[ ] Atolm
[ ] Delaris Zu'Kedas
[ ] Exander Mirkiniau
[ ] Garsinica Aldea
[ ] Gork Feldak
[ ] Hargaron Tel'Simalyr, Elysian Ambassador to Lanakh
[ ] Jindayn Sasvairn, Oracle of the Sands
[ ] Jumi
[ ] Kril Awas
[ ] Lladarn
[ ] Nazhuk
[ ] Raccia Dell'Ario
[ ] Rilath, Traitor of Labyria
[ ] Seljuk Aitkean
[ ] Sirbis
[ ] Valdor
[ ] Vought Cors, Scythe of the Eternal
[ ] Zusralnexahael

Players found: 18

------
Needs to work with the longer list which contains the "[Hit Return to continue]" too :)
Reply with quote
Snoop Bob
Beginner


Joined: 05 Sep 2003
Posts: 23

PostPosted: Wed Sep 24, 2003 12:34 pm   
 
PLEASE? :'(
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Sep 24, 2003 5:17 pm   
 
In order to determine who's online now and wasn't the last time you checked, you have to know who's online now and who was online the last time you checked. The same is true for determining who's not online now but was the last time you checked.

Obviously, you have to start with a trigger to store who's online at a particular time. You'll also need at least two variables.

#AL who {#VAR who2 {@who1};#VAR who4 {@who1};#VAR who1 {};#T+ whotrig1;#T+ whotrig2;~who}
#TR whotrig1 {~] (*)} {#ADDI who1 {%1}}
#TR whotrig2 {^Players found:} {#T- whotrig1;#T- whotrig2;#VAR who3 {@who1};whocompare}
#AL whocompare {#FORALL @who1 {#DELI who4 {%i}};#FORALL @who2 {#DELI who3 {%i}};#SAY {1.-People who are on the list, that weren't last time I checked it.};#SAY {%expandlist( @who3, %cr)};#SAY {2.-People who aren't on the list, that were last time I checked.};#SAY {%expandlist( @who4, %cr)}}

Settings Editor Version
Aliases
Name:
who
Value:
#VAR who2 {@who1}
#VAR who4 {@who1}
#VAR who1 {}
#T+ whotrig1
#T+ whotrig2
~who

Name:
whocompare
Value:
#FORALL @who1 {#DELI who4 {%i}}
#FORALL @who2 {#DELI who3 {%i}}
#SAY {1.-People who are on the list, that weren't last time I checked it.}
#SAY {%expandlist( @who3, %cr)}
#SAY {2.-People who aren't on the list, that were last time I checked.}
#SAY {%expandlist( @who4, %cr)}}

Triggers
Pattern:
~] (*)
Value:
#ADDI who1 {%1}
ID:
whotrig1

Pattern:
^Players found:
Value:
#T- whotrig1
#T- whotrig2
#VAR who3 {@who1}
whocompare
ID:
whotrig2
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