From 34cc9e06787f02f462299785cc19e89fddb7afe4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 31 Jul 2019 23:24:27 -0300 Subject: New GM command: @checkidle Like @ipcheck, it returns the idle time of a player. This is useful for GMs. Even if they cannot hugo at someone, they can still botcheck them (@checkidle, /msg and @botcheck) --- npc/commands/ipcheck.txt | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/npc/commands/ipcheck.txt b/npc/commands/ipcheck.txt index a610c84cd..a1f9345c2 100644 --- a/npc/commands/ipcheck.txt +++ b/npc/commands/ipcheck.txt @@ -20,6 +20,34 @@ OnCall: end; OnInit: - bindatcmd "ipcheck", "@ipcheck::OnCall", 80, 80, 1; + bindatcmd "ipcheck", "@ipcheck::OnCall", 80, 100, 1; end; } + +// TMW2 script +// Author: Jesusalva +// +// @checkidle +// #checkidle +// +// Returns user idle time in seconds. +// Useful when the game prohibits warping to player. + + +- script @checkidle 32767,{ + end; + +OnCall: + if (.@atcmd_numparameters == 0) + .@request$ = strcharinfo(0); + else + .@request$ = implode(.@atcmd_parameters$, " "); + dispbottom strip(.@request$)+" idle time: "+checkidle(.@request$); + //dispbottom strcharinfo(0)+": IP "+getcharip(.@request$); + end; + +OnInit: + bindatcmd "checkidle", "@checkidle::OnCall", 60, 80, 1; + end; +} + -- cgit v1.2.3-70-g09d2