summaryrefslogtreecommitdiff
path: root/npc/magic/level1-grow-plants.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/magic/level1-grow-plants.txt')
-rw-r--r--npc/magic/level1-grow-plants.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/npc/magic/level1-grow-plants.txt b/npc/magic/level1-grow-plants.txt
new file mode 100644
index 00000000..66e105b4
--- /dev/null
+++ b/npc/magic/level1-grow-plants.txt
@@ -0,0 +1,29 @@
+// 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;
+ default: return;
+ }
+ if (getarg(0, true)) {
+ // Consume reagents
+ delitem Root, 1;
+ delitem .@it, 1;
+ }
+ // Continue but with a special flag
+ SK_summon(.@mobId, 2, 1, false);
+ return;
+}
+