View unanswered posts | View active topics It is currently Thu Apr 23, 2026 4:53 pm



Reply to topic  [ 5 posts ] 
 Monior Who's on line 
Author Message
1st Sergeant
User avatar

Joined: Fri Sep 13, 2002 2:00 am
Posts: 38
Location: New Zealand
Unread post Monior Who's on line
I'm having trouble trying to ceate a script which regularly monitors who is in the game. When my "enemy" logs out I want to log out also to conserve time. I want to remain in the game as long as the "Enemy" does. I can send # at timed intervals np. but sorting the info after that is the problem. Say "Enemy" is somebody.

" Who's on line "

Private 1st Class motrax [1]
Private 1st Class somebody [2]
Lieutenant Commander vid [3]

The Rakata are on the move!

Citadel command (?=help)

How can I trigger something when "somebody" has left?

_________________
"Let slip the carrion dogs of war"


Tue Sep 15, 2009 8:30 pm
Profile ICQ YIM WWW
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post Re: Monior Who's on line
Did you take a look at LoneStar's Who's Online script? The link is:

http://www.spaceballtw.com/Mine/Who.002.ts

It does a monitor and plays a sound when there is a change to Who's Online.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Tue Sep 15, 2009 9:37 pm
Profile
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post Re: Monior Who's on line
Very quick and very dirty:

:begin
send "#"
waitfor " on line"
setTextTrigger here :here "somebody"
setDelayTrigger sec3Wait :sec3Wait 3000
pause
:here
killtrigger sec3Wait
setDelayTrigger sec20Wait :begin 20000
pause

:sec3Wait
killtrigger here
# he is gone
# do whatever you want

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Tue Sep 15, 2009 9:42 pm
Profile ICQ
1st Sergeant
User avatar

Joined: Fri Sep 13, 2002 2:00 am
Posts: 38
Location: New Zealand
Unread post Re: Monior Who's on line
Thanks Guys. The delays helped the script to work. I had tried triggers but with no sucess

_________________
"Let slip the carrion dogs of war"


Tue Sep 15, 2009 10:42 pm
Profile ICQ YIM WWW
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post Re: Monior Who's on line
Promethius wrote:
Very quick and very dirty:

:begin
send "#"
waitfor " on line"
setTextTrigger here :here "somebody"
setDelayTrigger sec3Wait :sec3Wait 3000
pause
:here
killtrigger sec3Wait
setDelayTrigger sec20Wait :begin 20000
pause

:sec3Wait
killtrigger here
# he is gone
# do whatever you want


That works too ;)

Actually I use a similar idea on the Computer Player script we are writing.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Tue Sep 15, 2009 11:05 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 27 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.