summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-02-19 02:44:00 -0300
committerJesusaves <cpntb1@ymail.com>2019-02-19 02:44:00 -0300
commit1f322dacebe70d6a3bed3afcd3825856a9cd01fd (patch)
tree79951f228d12d6ce93351e16d53c6b0442a7205e
parent8327bb80c9e9117136a7094881838a176bae70a2 (diff)
downloadserverdata-1f322dacebe70d6a3bed3afcd3825856a9cd01fd.tar.gz
serverdata-1f322dacebe70d6a3bed3afcd3825856a9cd01fd.tar.bz2
serverdata-1f322dacebe70d6a3bed3afcd3825856a9cd01fd.tar.xz
serverdata-1f322dacebe70d6a3bed3afcd3825856a9cd01fd.zip
So many untracked files, it is hard to see bad commits >.<
Perhaps I should move some of these to tools/ and add to Makefile
-rw-r--r--npc/commands/mobinfo.txt22
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;
+}