summaryrefslogtreecommitdiff
path: root/npc/013-1/sagatha.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-17 16:07:04 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-17 16:07:04 -0300
commit14f7af0b7b3839f0e1b35c31bf3bd17e70cf366f (patch)
treed9a501ffc748bca4cf19a56942d91bdd82d5eeb5 /npc/013-1/sagatha.txt
parentbd9d7c6142986a30f6fcd355efe22704f5bf4be4 (diff)
downloadserverdata-14f7af0b7b3839f0e1b35c31bf3bd17e70cf366f.tar.gz
serverdata-14f7af0b7b3839f0e1b35c31bf3bd17e70cf366f.tar.bz2
serverdata-14f7af0b7b3839f0e1b35c31bf3bd17e70cf366f.tar.xz
serverdata-14f7af0b7b3839f0e1b35c31bf3bd17e70cf366f.zip
Refactor Sagatha functions. Add shear spell (reusing ML code)
Diffstat (limited to 'npc/013-1/sagatha.txt')
-rw-r--r--npc/013-1/sagatha.txt27
1 files changed, 3 insertions, 24 deletions
diff --git a/npc/013-1/sagatha.txt b/npc/013-1/sagatha.txt
index 786da773..702e261c 100644
--- a/npc/013-1/sagatha.txt
+++ b/npc/013-1/sagatha.txt
@@ -1,26 +1,4 @@
-
-function script QuestSagathaHappy {
- .@value = getarg(0, @value);
- .@unhappiness = (QUEST_MAGIC & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT;
- if (.@unhappiness < .@value)
- .@unhappiness = 0;
-
- .@unhappiness = .@unhappiness - .@value;
-
- QUEST_MAGIC = (QUEST_MAGIC & ~NIBBLE_3_MASK) | (.@unhappiness << NIBBLE_3_SHIFT);
- return;
-}
-
-function script QuestSagathaAnnoy {
- .@value = getarg(0, @value);
- .@unhappiness = (QUEST_MAGIC & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT;
- if ((.@unhappiness + .@value) > 15)
- .@unhappiness = 15;
-
- .@unhappiness = .@unhappiness + .@value;
- QUEST_MAGIC = (QUEST_MAGIC & ~NIBBLE_3_MASK) | (.@unhappiness << NIBBLE_3_SHIFT);
- return;
-}
+// (C) The Mana World Developers
function script SagathaStatus {
if (isequippedcnt(MoubooHead, FluffyHat))
@@ -242,7 +220,8 @@ L_Teach_N14:
mes "\"Some forest creatures sometimes overgrow their fur or hide. That makes them uncomfortable.\"";
next;
mesn .@n$;
- mesq l("You can help them with shearing magic. Press your hands together and say '" + get(.invocation$, "shear") + "'. Then touch them with your hands, and brush off any excess.");
+ mesq l("You can help them with shearing magic. Press your hands together and say '%s'. Then touch them with your hands, and brush off any excess.", b("Chipchip"));
+ learnskill SKILL_CHIPCHIP;
next;
mesn .@n$;
mesq l("The spell is strong, so you only need to do this once. Be careful not to cut them. Some things they shed are useful. Often they will leave them to you as a thank-you.");