diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-01-08 17:32:56 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-01-08 17:32:56 -0300 |
commit | c07e913c0b2286dec4f989d0ded9d94ecd58377f (patch) | |
tree | 50e6c1f47fcdd1264a2ca1664df411ca1ce1554c /npc/commands | |
parent | 7645bb2991977972bad62973cd8cb03028e77819 (diff) | |
download | serverdata-jesusalva/identify.tar.gz serverdata-jesusalva/identify.tar.bz2 serverdata-jesusalva/identify.tar.xz serverdata-jesusalva/identify.zip |
Add EVOL_MONSTER_IDENTIFY skill.jesusalva/identify
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/commands')
-rw-r--r-- | npc/commands/mobinfo.txt | 29 |
1 files changed, 29 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; +} |