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/013-3_Cave/sword_chest.txt | |
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/013-3_Cave/sword_chest.txt')
-rw-r--r-- | npc/013-3_Cave/sword_chest.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/013-3_Cave/sword_chest.txt b/npc/013-3_Cave/sword_chest.txt index c570bfcd..5d2c97b7 100644 --- a/npc/013-3_Cave/sword_chest.txt +++ b/npc/013-3_Cave/sword_chest.txt @@ -12,11 +12,11 @@ close; L_Yes: - if(countitem(537) < 10) goto L_Not_Enough; + if(countitem("TreasureKey") < 10) goto L_Not_Enough; getinventorylist; - if (@inventorylist_count == 100 && countitem(537) > 10) goto L_TooMany; - delitem 537, 10; - getitem 536, 1; + if (@inventorylist_count == 100 && countitem("TreasureKey") > 10) goto L_TooMany; + delitem "TreasureKey", 10; + getitem "ShortSword", 1; mes "[Chest]"; mes "You opened it and found a short sword!"; set ChestQuest, ChestQuest | 2; |