From 2ae00cb42e371ddbaecb49d7f597b4173a67cd3f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 4 Jun 2019 11:09:48 -0300 Subject: Sagratha reacts to happiness value and hat attack (not functional otherwise) --- npc/014-5-1/sagratha.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'npc/014-5-1/sagratha.txt') 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; -- cgit v1.2.3-60-g2f50