From 1f322dacebe70d6a3bed3afcd3825856a9cd01fd Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 19 Feb 2019 02:44:00 -0300 Subject: So many untracked files, it is hard to see bad commits >.< Perhaps I should move some of these to tools/ and add to Makefile --- npc/commands/mobinfo.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 npc/commands/mobinfo.txt 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 +// 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; +} -- cgit v1.2.3-60-g2f50