summaryrefslogtreecommitdiff
path: root/npc/items/purification_potion.txt
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-01-23 11:26:10 +0000
committerJared Adams <jaxad0127@gmail.com>2009-01-23 11:26:10 +0000
commit29bb178e6ac12d8edb32b89c336d46178421bd83 (patch)
tree24a48296f8cd496aef7f089e0a51b366f22b3a58 /npc/items/purification_potion.txt
parent35226b190bef9791fcf252e57f647e51c5a434e8 (diff)
downloadserverdata-29bb178e6ac12d8edb32b89c336d46178421bd83.tar.gz
serverdata-29bb178e6ac12d8edb32b89c336d46178421bd83.tar.bz2
serverdata-29bb178e6ac12d8edb32b89c336d46178421bd83.tar.xz
serverdata-29bb178e6ac12d8edb32b89c336d46178421bd83.zip
Adjust purification potion to not work early
Diffstat (limited to 'npc/items/purification_potion.txt')
-rw-r--r--npc/items/purification_potion.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/npc/items/purification_potion.txt b/npc/items/purification_potion.txt
new file mode 100644
index 00000000..9f3c7e5e
--- /dev/null
+++ b/npc/items/purification_potion.txt
@@ -0,0 +1,36 @@
+//
+
+function script PurificationPotion {
+ set @PURIFICATIONPOTION, 733;
+
+ if (isat("011-1.gat", 88,67))
+ goto L_Wyara_Pond;
+
+L_NoUse:
+ message strcharinfo(0), "You don't know what to do with this.";
+ getitem @PURIFICATIONPOTION, 1;
+ close;
+
+L_Wyara_Pond:
+ set @Q_MASK, NIBBLE_2_MASK;
+ set @Q_SHIFT, NIBBLE_2_SHIFT;
+ set @Q_status, (QUEST_MAGIC2 & @Q_MASK) >> @Q_SHIFT;
+
+ if (@Q_status < 1)
+ goto L_NoUse;
+ if (@Q_status == 2)
+ set @Q_status, 3;
+ if (@Q_status < 2)
+ set @Q_status, 3;
+
+ message strcharinfo(0), "You pour the potion into the pond.";
+
+ set QUEST_MAGIC2,
+ (QUEST_MAGIC2 & ~(@Q_MASK)
+ | (@Q_status << @Q_SHIFT));
+ return;
+
+L_NoUse:
+ message strcharinfo(0), "You don't know what to do with this.";
+ return;
+}