summaryrefslogtreecommitdiff
path: root/npc/014-5-1/sagratha.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-05 13:22:56 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-05 13:22:56 -0300
commit920f2637034833ecbed0a551421babd773b7d160 (patch)
tree8475a4ad5a8a1fe9ff2aba7f79270c0a4f32e8df /npc/014-5-1/sagratha.txt
parentcc8218d431f2a4b576d5357ca8a7b404df2b1712 (diff)
downloadserverdata-920f2637034833ecbed0a551421babd773b7d160.tar.gz
serverdata-920f2637034833ecbed0a551421babd773b7d160.tar.bz2
serverdata-920f2637034833ecbed0a551421babd773b7d160.tar.xz
serverdata-920f2637034833ecbed0a551421babd773b7d160.zip
Sagratha .@good is a local variable right now...
Diffstat (limited to 'npc/014-5-1/sagratha.txt')
-rw-r--r--npc/014-5-1/sagratha.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/npc/014-5-1/sagratha.txt b/npc/014-5-1/sagratha.txt
index f59e277c9..7abcd392b 100644
--- a/npc/014-5-1/sagratha.txt
+++ b/npc/014-5-1/sagratha.txt
@@ -2,7 +2,7 @@
// Authors:
// Jesusalva
// Description:
-// Sagratha
+// Sagratha (variables SAGRATHA_SCORE and SAGRATHA_FRIENDSHIP)
// SaggyScoreUpdate( amount )
function script SaggyScoreUpdate {
@@ -67,11 +67,11 @@ function script SaggyMobCount {
mesn;
- if (.@good >= 2)
+ if (SAGRATHA_FRIENDSHIP >= 2)
mesc l("@@ nods as she notices you.", .name$);
- if (.@good == 1)
+ else if (SAGRATHA_FRIENDSHIP == 1)
mesc l("@@ raises an eyebrow as you address her.", .name$);
- if (.@good == 0)
+ else
mesc l("@@ glances at you, suspicion evident in her eyes.", .name$);
mesq l("Hello.");
@@ -86,7 +86,6 @@ function script SaggyMobCount {
// TODO: Learn Magic
// TODO: Request help with stuff (eg. protecting mouboos?)
// TODO: Get Mouboo Milk :>
- // TODO: Maybe never update her score with kills and make her more pacifist?
close;
@@ -127,6 +126,7 @@ L_Finish:
getitem AlchemyBlueprintB, 1;
getexp 24000, 0; // ~70% from level 40 (quest estimate level)
Zeny+=3000; // About 50 carps sold
+ SAGRATHA_FRIENDSHIP+=1;
setq HurnscaldQuest_Sagratha, 7;
close;
@@ -178,6 +178,7 @@ L_Reward:
mesn;
mesq l("It's my duty to protect the beings in the forest... Not all of them are monsters as @@s like you think.", get_race());
compareandsetq HurnscaldQuest_InjuriedMouboo, 3;
+ SAGRATHA_FRIENDSHIP+=1;
close;
L_HatAttack: