if (($did(QTool,66).text > $did(QTool,68).text) && (%count < 18)) {
while ( %x > 0 ) {
if $istok($gettok($gettok(%qtool.players,%x,13),4,32),blue,32) {
did -a QTool 61 $replace($gettok($gettok(%qtool.players,%x,13),2,34),^,$chr(32))
did -a QTool 62 $gettok($gettok(%qtool.players,%x,13),1,32)
did -a QTool 64 $gettok($gettok(%qtool.players,%x,13),2,32)
did -a QTool 63 Blue
inc %count
}
dec %x
}
%x = %qtool.clients
while ( %x > 0 ) {
if ($istok($gettok($gettok(%qtool.players,%x,13),4,32),red,32) && (%count < 18)) {
did -a QTool 61 $replace($gettok($gettok(%qtool.players,%x,13),2,34),^,$chr(32))
did -a QTool 62 $gettok($gettok(%qtool.players,%x,13),1,32)
did -a QTool 64 $gettok($gettok(%qtool.players,%x,13),2,32)
did -a QTool 63 Red
inc %count
}
dec %x
}
}
else {
while ( %x > 0 ) {
if ($istok($gettok($gettok(%qtool.players,%x,13),4,32),red,32) && (%count < 18)) {
did -a QTool 61 $replace($gettok($gettok(%qtool.players,%x,13),2,34),^,$chr(32))
did -a QTool 62 $gettok($gettok(%qtool.players,%x,13),1,32)
did -a QTool 64 $gettok($gettok(%qtool.players,%x,13),2,32)
did -a QTool 63 Red
inc %count
}
dec %x
}
%x = %qtool.clients
while ( %x > 0 ) {
if ($istok($gettok($gettok(%qtool.players,%x,13),4,32),blue,32) && (%count < 18)) {
did -a QTool 61 $replace($gettok($gettok(%qtool.players,%x,13),2,34),^,$chr(32))
did -a QTool 62 $gettok($gettok(%qtool.players,%x,13),1,32)
did -a QTool 64 $gettok($gettok(%qtool.players,%x,13),2,32)
did -a QTool 63 Blue
inc %count
}
dec %x
}
}
%x = %qtool.clients
while ( %x > 0 ) {
if (($left($gettok($gettok(%qtool.players,%x,13),4,32),4) == play) && (%count < 18)) {
if ($gettok($gettok(%qtool.players,%x,13),4,32) == play1) { did -a QTool 61 $replace($gettok($gettok(%qtool.players,%x,13),2,34),^,$chr(32)) $+ $chr(32) $+ (Red) }
elseif ($gettok($gettok(%qtool.players,%x,13),4,32) == play2) { did -a QTool 61 $replace($gettok($gettok(%qtool.players,%x,13),2,34),^,$chr(32)) $+ $chr(32) $+ (Blue) }
else { did -a QTool 61 $replace($gettok($gettok(%qtool.players,%x,13),2,34),^,$chr(32)) }
did -a QTool 62 $gettok($gettok(%qtool.players,%x,13),1,32)
did -a QTool 64 $gettok($gettok(%qtool.players,%x,13),2,32)
did -a QTool 63 Play
inc %count
}
dec %x
}
%x = %qtool.clients
while ( %x > 0 ) {
if ($istok($gettok($gettok(%qtool.players,%x,13),4,32),none,32) && (%count < 18)) {
did -a QTool 61 $replace($gettok($gettok(%qtool.players,%x,13),2,34),^,$chr(32))
did -a QTool 62 $gettok($gettok(%qtool.players,%x,13),1,32)
did -a QTool 64 $gettok($gettok(%qtool.players,%x,13),2,32)
did -a QTool 63 $iif(($gettok(%qtool.activep,1,32) != $null),Spec)
inc %count
}
dec %x
}
if (($did(QTool,68) == $null) && ($gettok(%qtool.activep,3,32) == $null)) {
%x = %qtool.clients
while ( %x > 0 ) {
if ($gettok($gettok(%qtool.players,%x,13),4,32) == play1) { did -a QTool 68 $gettok($gettok(%qtool.players,%x,13),1,32) }
if ($gettok($gettok(%qtool.players,%x,13),4,32) == play2) { did -a QTool 66 $gettok($gettok(%qtool.players,%x,13),1,32) }
dec %x
}
}
unset qtactive
did -o QTool 30 1 Ready
pbwebcheck
wolfcheck
}
alias -l pbwebcheck {
if ($left($did(QTool,17),4) == Wolf) {
if ($exists(" $+ $nofile($wexe) $+ pb\pbweb.exe")) { did -e QTool 2 }
else { did -b QTool 2 }
}
elseif ($left($did(QTool,17),2) == ET) {
if ($exists(" $+ $nofile($eexe) $+ pb\pbweb.exe")) { did -e QTool 2 }
else { did -b QTool 2 }
}
else {
if ($exists(" $+ $nofile($q3exe) $+ pb\pbweb.exe")) { did -e QTool 2 }
else { did -b QTool 2 }
}
}
alias -l wolfvars {
var %temp = $remove($1-,^1,^2,^3,^4,^5,^6,^7,^8,^9,^0,^b,^n,^,)
if $istok(%temp,g_gametype,92) { set %qt.wgametype $gettok(%temp, $calc($findtok(%temp,g_gametype, 1, 92) + 1), 92) }
if $istok(%temp,g_friendlyFire,92) { set %qt.wfriendlyFire $gettok(%temp, $calc($findtok(%temp,g_friendlyFire, 1, 92) + 1), 92) }
}
alias -l wolfcheck {
if ($left($did(QTool,17),4) == Wolf) {
did -ub QTool 174
if ($compact == 1) {
did -o QTool 44 1 FF:
}
else {
did -o QTool 44 1 F.Fire:
}
did -g QTool 172 " $+ $scriptdir $+ qtool\none.bmp"
did -g QTool 38 " $+ $scriptdir $+ qtool\connect.bmp"
if ($did(QTool,112).text == $null) {
did -o QTool 112 1 No
did -g QTool 122 " $+ $scriptdir $+ qtool\ok.bmp"
}
did -g QTool 124 " $+ $scriptdir $+ qtool\wolfmaps\unknownmap.jpg"