summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/purification_potion.txt14
1 files changed, 4 insertions, 10 deletions
diff --git a/npc/items/purification_potion.txt b/npc/items/purification_potion.txt
index 9f3c7e5e..85b07010 100644
--- a/npc/items/purification_potion.txt
+++ b/npc/items/purification_potion.txt
@@ -1,15 +1,13 @@
-//
-
-function script PurificationPotion {
- set @PURIFICATIONPOTION, 733;
+// THis is the function to use the PurificationPotion
+function script usePurificationPotion {
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;
+ getitem "PurificationPotion", 1;
+ return;
L_Wyara_Pond:
set @Q_MASK, NIBBLE_2_MASK;
@@ -29,8 +27,4 @@ L_Wyara_Pond:
(QUEST_MAGIC2 & ~(@Q_MASK)
| (@Q_status << @Q_SHIFT));
return;
-
-L_NoUse:
- message strcharinfo(0), "You don't know what to do with this.";
- return;
}