View unanswered posts | View active topics It is currently Sun Apr 19, 2026 5:37 am



Reply to topic  [ 4 posts ] 
 Persistent Script 
Author Message
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post Persistent Script
What is added to a script that has a similar way of staying running like mombot does?

Example if I hit $z all scripts stop except mombot in TWX. I have a few other scripts I run that I would like to add that same type of control over so if I have a script go bad I do not have to restart them all.

Thanks in Advance.

_________________
T0yman (Permanently Retired since 2012)
Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.


Thu Nov 04, 2010 3:56 pm
Profile ICQ YIM WWW
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post Re: Persistent Script
"systemscript"

is the command that does this....$sx will not kill it. Make sure this is what u want. You must kill the script with $sk(number) or internally with a "halt" command OR with another script with the "stop" command.

Exact syntax for these commands is in the twx help file that opens with a browser.

_________________
Coconut Telegraph (ICQ)#586137616
Team Speak3@ 220.244.125.70:9987
Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
Image
Jesus wounldn't Subspace Crawl


Thu Nov 04, 2010 4:04 pm
Profile ICQ YIM
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post Re: Persistent Script
T0yman wrote:
What is added to a script that has a similar way of staying running like mombot does?

Example if I hit $z all scripts stop except mombot in TWX. I have a few other scripts I run that I would like to add that same type of control over so if I have a script go bad I do not have to restart them all.

Thanks in Advance.



When I run scripts in groups I make one script the master script and use the "load" command to start the others.


#:9_dupescripts~scriptcheck
:scriptcheck
#set array
listActiveScripts $scripts
listActiveScripts $scriptsx
#end load background scripts check for duplicates
:duplicates
setvar $a 1
:duplicates0
while ($a <= $scripts)
setvar $b 1
lowercase $scripts[$a]
lowercase $scriptsx[$a]
while ($b <= $scripts)
lowercase $scriptsx[$b]
if (($a <> $b) and ($scripts[$a] = $scriptsx[$b]))
stop $scripts[$a]
goto :scriptcheck
end
add $b 1
end
add $a 1
end
return


Subroutine to prevent dupe scripts running

_________________
Coconut Telegraph (ICQ)#586137616
Team Speak3@ 220.244.125.70:9987
Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
Image
Jesus wounldn't Subspace Crawl


Thu Nov 04, 2010 4:27 pm
Profile ICQ YIM
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post Re: Persistent Script
PH, thanks that is what I was looking for. I just test so many things I hate having to reload stuff I would normally run all the time if something went boom :)

_________________
T0yman (Permanently Retired since 2012)
Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.


Thu Nov 04, 2010 5:16 pm
Profile ICQ YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 13 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.