summaryrefslogtreecommitdiff
path: root/npc/magic/level1-grow-plants.txt
blob: c3b21bad5a99ae1a19ccdfa958eb074c64307316 (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
// The Mana World script
// Author: Jesusalva <jesusalva@themanaworld.org>
//
// Magic Script: Multiple (Level 1)
// School: Nature 1

function	script	SK_GrowPlants	{
    // Setup
    switch (@skillId) {
    case SKILL_MODRIPHOO:
        .@it = AlizarinHerb; .@mobId = AlizarinPlant; break;
    case SKILL_MODRISUMP:
        .@it = CobaltHerb; .@mobId = CobaltPlant; break;
    case SKILL_MODRIYIKAM:
        .@it = GambogeHerb; .@mobId = GambogePlant; break;
    case SKILL_MODRILAX:
        .@it = MauveHerb; .@mobId = MauvePlant; break;
    }
    // Consume reagents
    delitem Root, 1;
    delitem .@it, 1;
    // Continue but with a special flag
    SK_summon(.@mobId, 2, 1, false);
    return;
}