summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-08 17:32:56 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-01 18:34:16 +0000
commit273e8bb199237cfb38a04a0f74653f93d640319a (patch)
treef7c2c66e235aca90c952a889f464662d68453396 /npc
parentc5ba93a8cfbb511cbe7c0efcd5ddb3ba0b077742 (diff)
downloadserverdata-273e8bb199237cfb38a04a0f74653f93d640319a.tar.gz
serverdata-273e8bb199237cfb38a04a0f74653f93d640319a.tar.bz2
serverdata-273e8bb199237cfb38a04a0f74653f93d640319a.tar.xz
serverdata-273e8bb199237cfb38a04a0f74653f93d640319a.zip
Add EVOL_MONSTER_IDENTIFY skill.
Allow players with this skill to use both `/mi` and `@monsterinfo` commands. The skill still isn't obtainable anywhere. Single level.
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",