summaryrefslogtreecommitdiff
path: root/npc/commands/mobinfo.txt
blob: b5ec1eff449d801d52c23c546fce06a0bea245a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// TMW2 Script
//
// @monsterinfo <monsterAegis>
// Sends @mobinfo with a delay (moved from atcommand.conf)
// 
-	script	@monsterinfo	32767,{
    end;

// @monsterinfo uses the same delayer as RSync
OnCall:
    if (@rsync_delay > gettimetick(2)) {
        dispbottom l("Not doing that to prevent flood.");
        end;
    }
    atcommand("@mobinfo " + implode(.@atcmd_parameters$, " "));
    @rsync_delay=gettimetick(2)+rand(2,3);
    end;

OnInit:
    bindatcmd "monsterinfo", "@monsterinfo::OnCall", 0, 80, 0;
    end;
}