summaryrefslogtreecommitdiff
path: root/npc/magic/level2-toxic-dart.txt
blob: df21b89c7e02bd9aed63dbf9d00b74cb07d00f3b (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
// The Mana World script
// Author: Jesusalva <jesusalva@themanaworld.org>
//
// Magic Script: SKILL_PHLEX (Level 1)
// School: Dark 2

function	script	SK_Phlex	{
    // Charge code, item check is in skill_db.conf (FIXME)
    mcharge(Root, SKILL_MAGIC_DARK, 1);
    .@PW=100+(10*@skillLv);
    // Effective magic code
    .@dmg=AdjustSpellpower(.@PW);
    harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Dark);
    // May inflict poison
    .@sc=(getskilllv(SKILL_MAGIC_DARK) > 3 ? SC_DPOISON : SC_POISON);
    .@time=(1+.@dmg/33)*1000;
    .@cth=1+rand2(.@time)/15;
    sc_start .@sc, .@time, 1, .@cth, SCFLAG_NONE, @skillTarget;
    GetManaExp(@skillId, 2);
    return;
}