|
jroper73 Novice
Joined: 03 Aug 2006 Posts: 30
|
Posted: Thu Aug 10, 2006 8:52 pm
Checking if a session is active |
How would you check to see if a session is online, or not, from another session.
I tried something like this, and it did not work
Code: |
#if (!@MyHealerSesName) {
say EEK - lost my healer
}
|
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Wed Aug 16, 2006 12:57 am |
Check the session's %ctime twice and see if it changes?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Aug 16, 2006 1:50 am |
I think you'll have to store %ctime for it to be visible to other sessions:
#if (@Session2.ctime != @session2.ctimeold) {#say Session2 is connected!} {#say Session2 is offline!} |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|