summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Friis <peavey@inspircd.org>2009-06-19 09:50:02 +0200
committerDennis Friis <peavey@inspircd.org>2009-06-19 09:50:02 +0200
commitf7b8085b549f16230ce3a812c6d10de4c288433c (patch)
treeadb63050016af8daf4e01caa9f08c9fcaf6cba20
parent8bcd47cd5453ea1b5836f8e520bd79f012e072e3 (diff)
downloadserverdata-f7b8085b549f16230ce3a812c6d10de4c288433c.tar.gz
serverdata-f7b8085b549f16230ce3a812c6d10de4c288433c.tar.bz2
serverdata-f7b8085b549f16230ce3a812c6d10de4c288433c.tar.xz
serverdata-f7b8085b549f16230ce3a812c6d10de4c288433c.zip
Fix up some old quests for security and make them match our current style.
-rw-r--r--npc/001-1_Tulimshar/vincent.txt12
-rw-r--r--npc/010-2_Dimonds_Cove/doug.txt10
2 files changed, 15 insertions, 7 deletions
diff --git a/npc/001-1_Tulimshar/vincent.txt b/npc/001-1_Tulimshar/vincent.txt
index ec803827..cef10c02 100644
--- a/npc/001-1_Tulimshar/vincent.txt
+++ b/npc/001-1_Tulimshar/vincent.txt
@@ -86,15 +86,21 @@ L_Progress:
close;
L_Have:
- delitem "BugLeg", 30;
mes "[Vincent]";
mes "\"Excellent! Finally I can complete the model!!\"";
next;
+
+ if(countitem("BugLeg") < 30) goto L_Progress;
+ delitem "BugLeg", 30;
+ set zeny, zeny + 1000;
+ set Bugleg, 2;
+
mes "[Vincent]";
mes "\"Here you go, a little of my appreciation!\"";
+ mes "";
+ mes "[1000 gold]";
next;
- set zeny, zeny + 1000;
- set Bugleg, 2;
+
close;
L_Done:
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: