summaryrefslogtreecommitdiff
path: root/npc/014-5-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-01 22:19:14 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-01 22:19:14 -0300
commit8a445cbe1b05c63b4b8d4285b69ffe93cb208ffd (patch)
tree9cf43a950929684c7fab60f9cbe97dd75d86a60f /npc/014-5-1
parentd56dd53791a0f0b8d6c5fb284ef44a770525f27a (diff)
downloadserverdata-8a445cbe1b05c63b4b8d4285b69ffe93cb208ffd.tar.gz
serverdata-8a445cbe1b05c63b4b8d4285b69ffe93cb208ffd.tar.bz2
serverdata-8a445cbe1b05c63b4b8d4285b69ffe93cb208ffd.tar.xz
serverdata-8a445cbe1b05c63b4b8d4285b69ffe93cb208ffd.zip
Sagratha Score
Diffstat (limited to 'npc/014-5-1')
-rw-r--r--npc/014-5-1/sagratha.txt38
1 files changed, 38 insertions, 0 deletions
diff --git a/npc/014-5-1/sagratha.txt b/npc/014-5-1/sagratha.txt
index e3c6fe799..d9cf0585b 100644
--- a/npc/014-5-1/sagratha.txt
+++ b/npc/014-5-1/sagratha.txt
@@ -4,6 +4,44 @@
// Description:
// Sagratha
+// SaggyScoreUpdate( amount )
+function script SaggyScoreUpdate {
+ .@val=getarg(0);
+ SAGRATHA_SCORE=max(-50, min(50, SAGRATHA_SCORE+.@val));
+ return;
+}
+
+function script SaggyMobCount {
+ switch (killedrid) {
+ // She gets angry
+ case Mouboo:
+ case AlphaMouboo:
+ SaggyScoreUpdate(-5);
+ break;
+ case Pollet:
+ case Fluffy:
+ case IcedFluffy:
+ SaggyScoreUpdate(-3);
+ break;
+ case Squirrel:
+ case SpringSquirrel:
+ case LofSquirrel:
+ case FrozenSquirrel:
+ case FairysSquirrel:
+ case Pinkie:
+ SaggyScoreUpdate(-2);
+ break;
+
+ // She gets happy
+ case ViciousSquirrel:
+ case WickedMushroom:
+ case Bluepar:
+ SaggyScoreUpdate(1);
+ break;
+ }
+ return;
+}
+
014-5-1,33,37,0 script Sagratha NPC_SAGRATHA,{
goodbye; end;