diff options
author | MasterOfMuppets <MasterOfMuppets@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-14 11:21:40 +0000 |
---|---|---|
committer | MasterOfMuppets <MasterOfMuppets@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-14 11:21:40 +0000 |
commit | 6665c6ea96121c41dcdf3ada357509e10ef58415 (patch) | |
tree | 7fda8b3f2337ad8a1d603a7de2f60daa11783a9a /npc | |
parent | 3b8ed17cbcd7ab72f7706c0031122bb564bf3329 (diff) | |
download | hercules-6665c6ea96121c41dcdf3ada357509e10ef58415.tar.gz hercules-6665c6ea96121c41dcdf3ada357509e10ef58415.tar.bz2 hercules-6665c6ea96121c41dcdf3ada357509e10ef58415.tar.xz hercules-6665c6ea96121c41dcdf3ada357509e10ef58415.zip |
Fixed an exploit in the comodo gambling script.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7156 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc')
-rw-r--r-- | npc/Changelog.txt | 2 | ||||
-rw-r--r-- | npc/other/comodo_gambling.txt | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/npc/Changelog.txt b/npc/Changelog.txt index 9505cb48c..acfc1b46b 100644 --- a/npc/Changelog.txt +++ b/npc/Changelog.txt @@ -36,6 +36,8 @@ Musashiden Date Added
======
+06/14
+ * Fixed an exploit in the comodo gambling script, thanks to reddozen [MasterOfMuppets]
06/13
* Fixed exploit in Louyang NPC [Playtester]
* More Abyss/Thanatos spawn updates according to info from Tharis [Playtester]
diff --git a/npc/other/comodo_gambling.txt b/npc/other/comodo_gambling.txt index 76fa1ac6b..23c56e9e6 100644 --- a/npc/other/comodo_gambling.txt +++ b/npc/other/comodo_gambling.txt @@ -13,6 +13,7 @@ //= 0.2- fixed some spelling errors and set zeny,zeny - (@amount * 55000)[Cypress]
//= 0.3- Revised the gambling NPC using the official Aegis script [MasterOfMuppets]
//= for information. Thanks to Zefris for doing it for me.
+//= 0.4- Fixed an exploit. thanks to reddozen [MasterOfMuppets]
//============================================================
mjolnir_02.gat,85,364,3 script Blacksmith Miner 726,{
@@ -60,7 +61,7 @@ mjolnir_02.gat,85,364,3 script Blacksmith Miner 726,{ set @amount, 0;
input @amount;
if(@amount<1) goto L_Cancel;
- if(@amount*55000>zeny) goto L_BadAmnt;
+ if((@amount*55000>zeny) || (@amount>500)) goto L_BadAmnt;
goto L_Buy;
L_Cancel:
|