diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/magic/final.txt | 5 | ||||
-rw-r--r-- | npc/magic/level1-grow-plants.txt | 23 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
3 files changed, 29 insertions, 0 deletions
diff --git a/npc/magic/final.txt b/npc/magic/final.txt index 7c1e48a0..1cd93e40 100644 --- a/npc/magic/final.txt +++ b/npc/magic/final.txt @@ -44,6 +44,11 @@ function script HUB_SkillInvoke { SK_Itenplz(); break; case SKILL_FLAR: SK_Flar(); break; + case SKILL_MODRIPHOO: + case SKILL_MODRISUMP: + case SKILL_MODRIYIKAM: + case SKILL_MODRILAX: + SK_GrowPlants(); break; // Level 2 // Level 3 // Level 4 diff --git a/npc/magic/level1-grow-plants.txt b/npc/magic/level1-grow-plants.txt new file mode 100644 index 00000000..c3a1a102 --- /dev/null +++ b/npc/magic/level1-grow-plants.txt @@ -0,0 +1,23 @@ +// 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; + } + // Continue but with a special flag + SK_summon(.@mobId, 2, 1, false); + return; +} + diff --git a/npc/scripts.conf b/npc/scripts.conf index f6c7387c..6a0c79b8 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -71,6 +71,7 @@ "npc/magic/level1-aggravate.txt", "npc/magic/level1-experience.txt", "npc/magic/level1-flare-dart.txt", +"npc/magic/level1-grow-plants.txt", "npc/magic/final.txt", // Commands |