summaryrefslogtreecommitdiff
path: root/npc/013-3_Cave
diff options
context:
space:
mode:
Diffstat (limited to 'npc/013-3_Cave')
-rw-r--r--npc/013-3_Cave/sword_chest.txt8
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;