From 8a445cbe1b05c63b4b8d4285b69ffe93cb208ffd Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 1 Jun 2019 22:19:14 -0300 Subject: Sagratha Score --- npc/014-5-1/sagratha.txt | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'npc/014-5-1') 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; -- cgit v1.2.3-70-g09d2