diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-04 11:09:48 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-04 11:09:48 -0300 |
commit | 2ae00cb42e371ddbaecb49d7f597b4173a67cd3f (patch) | |
tree | 78889f3aa43d6add78f3ba8a5731dcd9e169615b /npc/014-5-1/sagratha.txt | |
parent | 2bec6e61b98e9d86b6962dfa075de5b220835ca9 (diff) | |
download | serverdata-2ae00cb42e371ddbaecb49d7f597b4173a67cd3f.tar.gz serverdata-2ae00cb42e371ddbaecb49d7f597b4173a67cd3f.tar.bz2 serverdata-2ae00cb42e371ddbaecb49d7f597b4173a67cd3f.tar.xz serverdata-2ae00cb42e371ddbaecb49d7f597b4173a67cd3f.zip |
Sagratha reacts to happiness value and hat attack (not functional otherwise)
Diffstat (limited to 'npc/014-5-1/sagratha.txt')
-rw-r--r-- | npc/014-5-1/sagratha.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/npc/014-5-1/sagratha.txt b/npc/014-5-1/sagratha.txt index 11b1e5e5a..704beeb6f 100644 --- a/npc/014-5-1/sagratha.txt +++ b/npc/014-5-1/sagratha.txt @@ -50,9 +50,40 @@ function script SaggyMobCount { } 014-5-1,33,37,0 script Sagratha NPC_SAGRATHA,{ + if (array_find(.SaggyHats, getequipid(EQI_HEAD_TOP)) >= 0) + goto L_HatAttack; + if (SAGRATHA_SCORE < 0) + goto L_Unhappy; + goodbye; end; +L_HatAttack: + mesn; + mesc l("@@ seems to be trembling with disgust as she stares at your headgear.", .name$); + mes l("\"Do you think that is funny?\" she snarls."); + next; + mesn; + mesq l("You have no idea what that poor creature felt!"); + next; + mesn; + mesc l("She snaps her fingers."); + mesq l("Let me show you..."); + specialeffect 312, SELF, getcharid(3); + heal -300, 0; + close; + +L_Unhappy: + mesn; + mesc l("@@ glares at you in anger.", .name$); + mesq l("I wonder if you can still sleep after killing those innocent forest creatures!"); + next; + mesn; + mesq l("I am sure that they will come back to haunt you in your dreams!"); + close; + OnInit: + setarray .SaggyHats, FluffyHat, MoubooHat, AlphaMoubooHat; + .distance=5; npcsit; end; |