diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-01-23 16:52:05 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-01-23 16:52:05 +0000 |
commit | 4e98d4621f225766abb32d30ab6cea8d2739a419 (patch) | |
tree | 1ca67ca0a8465848870c91dfdf60baffc9767ba4 /npc/items | |
parent | 29bb178e6ac12d8edb32b89c336d46178421bd83 (diff) | |
download | serverdata-4e98d4621f225766abb32d30ab6cea8d2739a419.tar.gz serverdata-4e98d4621f225766abb32d30ab6cea8d2739a419.tar.bz2 serverdata-4e98d4621f225766abb32d30ab6cea8d2739a419.tar.xz serverdata-4e98d4621f225766abb32d30ab6cea8d2739a419.zip |
Start converting scripts over to "ItemName"
Instead of using the item number. A few small bug fixes are also here.
Diffstat (limited to 'npc/items')
-rw-r--r-- | npc/items/purification_potion.txt | 14 |
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; } |