Maeve Morgan
ZOMG Resmod!
Join date: 2 Apr 2004
Posts: 1,512
|
11-29-2004 09:20
I'm a mediocre scripter and I need a script that will tell me whn someone leaves the property for something I am working on if anyone could help me I'd greatly appreciate it. I should be in world all day. Thanks
|
Carnildo Greenacre
Flight Engineer
Join date: 15 Nov 2003
Posts: 1,044
|
11-30-2004 00:17
The basic method is to keep a list of everyone who is on your property. When the script finds that someone was on the list from the previous scan, but isn't on the list from the current scan, you know they've left.
_____________________
perl -le '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++;'
|