summaryrefslogtreecommitdiff
path: root/npc/magic/level1-summon-maggots.txt
blob: 2f2b333b411b015deedcb60852f071e4cf54b360 (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
// The Mana World script
// Author: Jesusalva <jesusalva@themanaworld.org>
//
// Magic Script: SKILL_KALMURK (Level 1)
// School: Astral 1

function	script	SK_Kalmurk	{
    delitem Root, 1;
    delitem .@it, 1;
    specialeffect(FX_MAGIC_MAGGOT_CAST, AREA, getcharid(3));
    sleep2(cap_value(5400-AdjustSpellpower(100)-@skillLv*400, 500, 5000));
    SK_summon(Maggot, 2, 1);
    return;
}

function	script	SK_Jande	{
    delitem TinyManaElixir, 1;
    specialeffect(FX_MAGIC_MAGGOT_CAST, AREA, getcharid(3));
    sleep2(cap_value(15400-AdjustSpellpower(100)-@skillLv*400, 10000, 15000));
    .@lifetime=59+@skillLv;
    .@lifetime = .@lifetime * (50 + abizit() * rand2(5,6)) / 100;
    .@lifetime = max(.@lifetime, 75);
    .@lifetime *= 1000;
    summon("Summoned Monster", ManaGuard, .@lifetime);
    return;
}