summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorDennis Friis <peavey@inspircd.org>2009-06-06 19:28:39 +0200
committerDennis Friis <peavey@inspircd.org>2009-06-06 19:28:39 +0200
commit8ef2642d867b5e355d59b57c80134b9a64ae1b85 (patch)
tree9a9ada1cd9607a30c431bdf0b19b7e704db76283 /npc
parent7ce17612f22115fd7f96e3267f2d766c0703e572 (diff)
downloadserverdata-8ef2642d867b5e355d59b57c80134b9a64ae1b85.tar.gz
serverdata-8ef2642d867b5e355d59b57c80134b9a64ae1b85.tar.bz2
serverdata-8ef2642d867b5e355d59b57c80134b9a64ae1b85.tar.xz
serverdata-8ef2642d867b5e355d59b57c80134b9a64ae1b85.zip
Add Sagatha reaction to wearing hats of forest creatures.
Diffstat (limited to 'npc')
-rw-r--r--npc/013-1_Woodland_hills/sagatha.txt31
1 files changed, 27 insertions, 4 deletions
diff --git a/npc/013-1_Woodland_hills/sagatha.txt b/npc/013-1_Woodland_hills/sagatha.txt
index b2e094cc..9bdad8a9 100644
--- a/npc/013-1_Woodland_hills/sagatha.txt
+++ b/npc/013-1_Woodland_hills/sagatha.txt
@@ -34,9 +34,28 @@ L_write:
return;
}
+//----------------------------------------
+function script SagathaHatAttack {
+ mes "She fumes at you shouting: \"I shall avenge my forest friends!\"";
+ next;
+ mes "She mutters a barely audible invocation.";
+ misceffect 4, strcharinfo(0);
+ misceffect 4;
+ heal -300, 0;
+ next;
+ return;
+}
+
+//----------------------------------------
function script SagathaStatus {
+ if (getequipid(equip_head) != 1216 && getequipid(equip_head) != 752)
+ goto L_next;
+ set @value, 15;
+ callfunc "QuestSagathaAnnoy";
+
+L_next:
set @mexp, MAGIC_EXPERIENCE & 65535;
- set @has_magic, getskilllv(SKILL_MAGIC);
+ set @has_magic, getskilllv(SKILL_MAGIC);
set @evil, 0;
set @good, 0;
set @unhappy, (QUEST_MAGIC & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT;
@@ -44,9 +63,9 @@ function script SagathaStatus {
if (@mouboo == 3)
set @good, @good + 1;
- if (@mouboo == 2)
+ if (@mouboo == 2)
set @evil, 1;
- if (@mouboo == 1)
+ if (@mouboo == 1)
set @evil, 1;
if (MAGIC_FLAGS & MFLAG_DID_CUTTREE)
@@ -60,7 +79,7 @@ function script SagathaStatus {
//----------------------------------------
013-1.gat,131,24,0 script Sagatha#_M 167,{
- callfunc "SagathaStatus";
+ callfunc "SagathaStatus";
set @Q_MASK, NIBBLE_4_MASK | NIBBLE_5_MASK;
set @Q_SHIFT, NIBBLE_4_SHIFT;
@@ -81,6 +100,10 @@ function script SagathaStatus {
if (!(MAGIC_FLAGS & MFLAG_KNOWS_SAGATHA))
mes "[Witch]";
+ // if fluffyhat
+ if (getequipid(equip_head) == 752)
+ callfunc "SagathaHatAttack";
+
if (@evil)
goto L_evil;