summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorKarLaeda <KarLaeda@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-12 11:16:19 +0000
committerKarLaeda <KarLaeda@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-12 11:16:19 +0000
commit9b1082f4075d45f6d484d856d49013b6eb1e515a (patch)
tree16d8e27eb5f9744afc414fb3d7797942f4b3c5ac /npc
parent7203756c266a967390e417981592acc3c5879ea6 (diff)
downloadhercules-9b1082f4075d45f6d484d856d49013b6eb1e515a.tar.gz
hercules-9b1082f4075d45f6d484d856d49013b6eb1e515a.tar.bz2
hercules-9b1082f4075d45f6d484d856d49013b6eb1e515a.tar.xz
hercules-9b1082f4075d45f6d484d856d49013b6eb1e515a.zip
Fixed exploits in Valentine Event Scripts
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9646 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc')
-rw-r--r--npc/Changelog.txt3
-rw-r--r--npc/events/custom/valentinesdayexp.txt2
-rw-r--r--npc/events/valentinesday.txt2
3 files changed, 4 insertions, 3 deletions
diff --git a/npc/Changelog.txt b/npc/Changelog.txt
index 130b3e74c..6e0cffb89 100644
--- a/npc/Changelog.txt
+++ b/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
diff --git a/npc/events/custom/valentinesdayexp.txt b/npc/events/custom/valentinesdayexp.txt
index ce519513a..ac6f6816c 100644
--- a/npc/events/custom/valentinesdayexp.txt
+++ b/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;
diff --git a/npc/events/valentinesday.txt b/npc/events/valentinesday.txt
index 75ca8e298..5be84fcab 100644
--- a/npc/events/valentinesday.txt
+++ b/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;