From 3a33fdcbb4d21c73f2a2ab21a7698dcf6ce6b125 Mon Sep 17 00:00:00 2001 From: eaac Date: Wed, 26 Apr 2006 16:45:57 +0000 Subject: * functions_kafra.txt was pretty buggy, including a zeny exploit (free warps). Thanks to OZ over IRC for pointing out. It needs more optimization too. [erKURITA] * eAAC Update: quest_warper.txt [erKURITA] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6293 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/kafras/functions_kafras.txt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'npc/kafras') diff --git a/npc/kafras/functions_kafras.txt b/npc/kafras/functions_kafras.txt index 831e0f01b..a210e9a53 100644 --- a/npc/kafras/functions_kafras.txt +++ b/npc/kafras/functions_kafras.txt @@ -30,6 +30,8 @@ //= 4.0 Added Kafra storage password protection. [Lupus] //= to block Kafra Password, read comments at 350 line //= Note: You can change '1337' value to another to raise password protection +//= 5.0 Fixed the close2;....close; end; lines. Who let them slip away? =/ [erKURITA] +//= Also, the kafra upon warp was giving back the zeny. Removed. [erKURITA] //============================================================ @@ -138,7 +140,6 @@ function script F_KafStor { close2; openstorage; cutin "", 255; - close; end; sL_JbLvl: @@ -160,7 +161,6 @@ L_Guild: mes "right now. Please wait until that person is finished."; close2; cutin "", 255; - close; end; } @@ -217,10 +217,7 @@ function script F_KafTele { if (@wrpD$[@num] == "Orc Dungeon") warp "gef_fild10.gat", 52, 326; if (@wrpD$[@num] == "Umbala") warp "umbala.gat", 130, 130; if (@wrpD$[@num] == "Yuno") warp "yuno.gat", 157, 123; - close2; // this part safegaurds against errors/typos - set zeny, zeny + @wrpP[@num]; cutin "", 255; - close; end; sL_CantTele: @@ -228,7 +225,6 @@ function script F_KafTele { mes "Dear you don't have enough money. Please check your funds again."; close2; cutin "", 255; - close; end; } @@ -414,7 +410,7 @@ function script F_CheckKafCode { dispbottom "Wrong storage password."; close2; cutin "",255; - close; + end; } set @kafcode_try,0; set @code_,0; @@ -501,7 +497,7 @@ L_ZENY: M_END: close2; cutin "",255; - close; + end; } // Basic Password Validation Function ==================== -- cgit v1.2.3-60-g2f50