summaryrefslogtreecommitdiff
path: root/npc/commands/mobinfo.txt
blob: 691bfb68493b0322c5f625ea3da317eb078ed35b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
}