diff options
Diffstat (limited to 'npc/commands/mobinfo.txt')
-rw-r--r-- | npc/commands/mobinfo.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/npc/commands/mobinfo.txt b/npc/commands/mobinfo.txt new file mode 100644 index 000000000..b5ec1eff4 --- /dev/null +++ b/npc/commands/mobinfo.txt @@ -0,0 +1,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; +} |