summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorkobra_k88 <kobra_k88@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-14 12:24:28 +0000
committerkobra_k88 <kobra_k88@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-14 12:24:28 +0000
commitf96f7e6fd0a90340b972007223b9fb4c9ac7c192 (patch)
tree794c6b5401ef95e1c49f3bbab66eac4d1feb2540 /npc
parent48b71ef3cb6f8ea109f5d8d464ae5f3cbbd2753b (diff)
downloadhercules-f96f7e6fd0a90340b972007223b9fb4c9ac7c192.tar.gz
hercules-f96f7e6fd0a90340b972007223b9fb4c9ac7c192.tar.bz2
hercules-f96f7e6fd0a90340b972007223b9fb4c9ac7c192.tar.xz
hercules-f96f7e6fd0a90340b972007223b9fb4c9ac7c192.zip
Added error/typo safeguard for teleport option.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@168 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc')
-rw-r--r--npc/kafras/functions_kafras.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/npc/kafras/functions_kafras.txt b/npc/kafras/functions_kafras.txt
index ad0547f3d..2bf04f1f6 100644
--- a/npc/kafras/functions_kafras.txt
+++ b/npc/kafras/functions_kafras.txt
@@ -89,8 +89,8 @@ function script F_KafStor {
set Zeny, Zeny-@fee;
set RESRVPTS, RESRVPTS + (@fee/5);
openstorage;
- callfunc "F_KafEnd",getarg(0),0;
- end;
+ cutin "", 255;
+ close;
sL_JbLvl:
mes "[Kafra]";
@@ -102,8 +102,8 @@ function script F_KafStor {
return;
L_Guild:
if(guildopenstorage(0) == 1) goto L_InUse;
- callfunc "F_KafEnd",0,0;
- end;
+ cutin "", 255;
+ close;
L_InUse:
mes "[Kafra]";
@@ -166,6 +166,9 @@ function script F_KafTele {
if (@wrpD$[@num] == "Comodo Pharos Lighthouse") warp "cmd_fild07.gat", 127, 134;
if (@wrpD$[@num] == "Orc Dungeon") warp "gef_fild10.gat", 52, 326;
if (@wrpD$[@num] == "Umbala") warp "umbala.gat", 130, 130;
+ close2; // this part safegaurds against errors/typos
+ set zeny, zeny + @wrpP[@num];
+ cutin "", 255;
end;
sL_CantTele: