From 4e98d4621f225766abb32d30ab6cea8d2739a419 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 23 Jan 2009 16:52:05 +0000 Subject: Start converting scripts over to "ItemName" Instead of using the item number. A few small bug fixes are also here. --- npc/items/purification_potion.txt | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'npc/items/purification_potion.txt') 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; } -- cgit v1.2.3-70-g09d2