summaryrefslogtreecommitdiff
path: root/npc/kafras
diff options
context:
space:
mode:
authoreaac <eaac@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-26 16:45:57 +0000
committereaac <eaac@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-26 16:45:57 +0000
commit3a33fdcbb4d21c73f2a2ab21a7698dcf6ce6b125 (patch)
treed5d7edbd3b8427e1106676c8fa39bff14bb237ae /npc/kafras
parentd865e6b3af8dddcd0db3d7281ae2cfd3b28b0e27 (diff)
downloadhercules-3a33fdcbb4d21c73f2a2ab21a7698dcf6ce6b125.tar.gz
hercules-3a33fdcbb4d21c73f2a2ab21a7698dcf6ce6b125.tar.bz2
hercules-3a33fdcbb4d21c73f2a2ab21a7698dcf6ce6b125.tar.xz
hercules-3a33fdcbb4d21c73f2a2ab21a7698dcf6ce6b125.zip
* 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
Diffstat (limited to 'npc/kafras')
-rw-r--r--npc/kafras/functions_kafras.txt12
1 files changed, 4 insertions, 8 deletions
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 ====================