summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-02 00:50:21 +0000
committerJesusaves <cpntb1@ymail.com>2020-02-02 00:50:21 +0000
commit636bff9256dd837b34e8d0ca268438e9af614ae3 (patch)
treef7c2c66e235aca90c952a889f464662d68453396 /npc
parentc5ba93a8cfbb511cbe7c0efcd5ddb3ba0b077742 (diff)
parent273e8bb199237cfb38a04a0f74653f93d640319a (diff)
downloadserverdata-636bff9256dd837b34e8d0ca268438e9af614ae3.tar.gz
serverdata-636bff9256dd837b34e8d0ca268438e9af614ae3.tar.bz2
serverdata-636bff9256dd837b34e8d0ca268438e9af614ae3.tar.xz
serverdata-636bff9256dd837b34e8d0ca268438e9af614ae3.zip
Merge branch 'jesusalva/identify' into 'master'
Add EVOL_MONSTER_IDENTIFY skill. See merge request evol/serverdata!217
Diffstat (limited to 'npc')
-rw-r--r--npc/commands/mobinfo.txt29
-rw-r--r--npc/scripts.conf1
2 files changed, 30 insertions, 0 deletions
diff --git a/npc/commands/mobinfo.txt b/npc/commands/mobinfo.txt
new file mode 100644
index 00000000..691bfb68
--- /dev/null
+++ b/npc/commands/mobinfo.txt
@@ -0,0 +1,29 @@
+// The Mana World Script
+//
+// @monsterinfo <monsterAegis>
+// Sends @mobinfo with a delay (moved from atcommand.conf)
+// Requires EVOL_MONSTER_IDENTIFY
+//
+- script @monsterinfo 32767,{
+ end;
+
+OnCall:
+ // Check for skill level
+ if (!getskilllv(EVOL_MONSTER_IDENTIFY))
+ end;
+
+ // ...
+ if (@rsync_delay > gettimetick(2)) {
+ dispbottom l("Not doing that to prevent flood.");
+ end;
+ }
+
+ // Send @mobinfo and set a cooldown of 3 seconds.
+ atcommand("@mobinfo " + implode(.@atcmd_parameters$, " "));
+ @rsync_delay=gettimetick(2)+3;
+ end;
+
+OnInit:
+ bindatcmd "monsterinfo", "@monsterinfo::OnCall", 0, 60, 0;
+ end;
+}
diff --git a/npc/scripts.conf b/npc/scripts.conf
index 16619850..cce40899 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -115,6 +115,7 @@
"npc/commands/zeny.txt",
"npc/commands/motd-debug-text.txt",
"npc/commands/motd.txt",
+"npc/commands/mobinfo.txt",
"npc/commands/scheduled-broadcasts.txt",
"npc/commands/rate-management.txt",
"npc/commands/event.txt",