alias -l tool2_init_dcx {
.timerreload_tool2 -mo 0 1000 reload_tool2
}
alias reload_tool2 {
if ($status != connected) {
xdid -v tool2 1001 0
xdid -i tool2 1001 N/A
xdid -T tool2 1001 N/A
}
else {
xdid -i tool2 1001 $calc(%lag / 1000)
; xdid -r tool2 1001 0 1000 --> 0 100 or 0 1000 or 10000... ;
xdid -r tool2 1001 0 1000
xdid -v tool2 1001 %lag
xdid -T tool2 1001 Lag is %lag ms
}
}
on ^*:pong: { if ($gettok($2,1,46) == lag) { set %lag $calc($ticks - $gettok($2,2,46)) | halt } }
on *:connect: { .timerlag 0 5 vlag }
alias vlag { if ($server) { !ping lag $+ . $+ $ticks } }