ソースを参照

Fixed exploits in Valentine Event Scripts

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9646 54d463be-8e91-2dee-dedb-b68131a5f0ec
KarLaeda 18 年 前
コミット
60f4e80cc1

+ 2 - 1
npc/Changelog.txt

@@ -33,7 +33,8 @@ KarLaeda
 
 Date		Added
 ======
-
+2007/01/12
+	* Fixed exploits in Valentine Event Scripts [KarLaeda]
 2007/01/11
 	* Update to the new locations, adds more warps (thor_camp) [ultramage]
 2007/01/09

+ 1 - 1
npc/events/custom/valentinesdayexp.txt

@@ -104,7 +104,7 @@ M_CHOCO:
 	next;
 	set @needmon,0;
 	input @flag_num;
-	if (@flag_num == 0) goto L_NONE;
+	if (@flag_num <= 0) goto L_NONE;
 	if (@flag_num > 5) goto L_ERR;
 	set @needmon,@flag_num*5000;
 	if (Zeny < @needmon) goto L_NOTENO;

+ 1 - 1
npc/events/valentinesday.txt

@@ -44,7 +44,7 @@ M_CHOCO:
 	next;
 	set @needmon,0;
 	input @flag_num;
-	if (@flag_num == 0) goto L_NONE;
+	if (@flag_num <= 0) goto L_NONE;
 	if (@flag_num > 5) goto L_ERR;
 	set @needmon,@flag_num*5000;
 	if (Zeny < @needmon) goto L_NOTENO;