From f7b8085b549f16230ce3a812c6d10de4c288433c Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Fri, 19 Jun 2009 09:50:02 +0200 Subject: Fix up some old quests for security and make them match our current style. --- npc/010-2_Dimonds_Cove/doug.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'npc/010-2_Dimonds_Cove') diff --git a/npc/010-2_Dimonds_Cove/doug.txt b/npc/010-2_Dimonds_Cove/doug.txt index 1c3d1162..e97837cc 100644 --- a/npc/010-2_Dimonds_Cove/doug.txt +++ b/npc/010-2_Dimonds_Cove/doug.txt @@ -83,11 +83,16 @@ L_State2: close; L_Have: - delitem "CaveSnakeLamp", 20; mes "[Doug]"; mes "\"Cool! Now I can make this light!\""; next; + if(countitem("CaveSnakeLamp") < 20) goto L_State2; + delitem "CaveSnakeLamp", 20; + set zeny, zeny + 5000; + getexp 5000, 0; + set CaveSnakeLamp, 2; + mes "[Doug]"; mes "\"Here's what I got to give you!\""; mes ""; @@ -95,9 +100,6 @@ L_Have: mes "[5000 gold]"; next; - set zeny, zeny + 5000; - getexp 5000, 0; - set CaveSnakeLamp, 2; close; L_Done: -- cgit v1.2.3-70-g09d2