diff options
Diffstat (limited to 'npc/custom/eAAC_Scripts/kafraExpress/ke_main.txt')
-rw-r--r-- | npc/custom/eAAC_Scripts/kafraExpress/ke_main.txt | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/npc/custom/eAAC_Scripts/kafraExpress/ke_main.txt b/npc/custom/eAAC_Scripts/kafraExpress/ke_main.txt index 42fcba9b3..79daa71d5 100644 --- a/npc/custom/eAAC_Scripts/kafraExpress/ke_main.txt +++ b/npc/custom/eAAC_Scripts/kafraExpress/ke_main.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= Skotlex //===== Current Version: ===================================== -//= 5.4 +//= 5.7 //===== Compatible With: ===================================== //= eAthena SVN R3424+ //===== Description: ========================================= @@ -23,8 +23,8 @@ function script F_KafraExpress { set @name$,getarg(0); set @ke_type,getarg(2); - if ($@kekp_reset) - set @kafraPass,0; + if ($@kekp_reset && @kafraPass > 0) + set @kafraPass,@kafraPass-1; if (getarg(1) != "") cutin getarg(1),2; callfunc "F_keIntro",-1,""; @@ -352,7 +352,10 @@ function script F_kePass { return; } delitem 1084,1; - set @kafraPass,1; + if ($@kekp_reset > 0) + set @kafraPass,$@kekp_reset; + else + set @kafraPass,1; callfunc "F_keIntro", e_lv, "Your Kafra Pass has been activated."; return; } @@ -402,4 +405,4 @@ function script F_keWarp { emotion getarg(2); warp getarg(3),getarg(4),getarg(5); end; -}
\ No newline at end of file +} |