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