From 1c5e4a6caf2e70592c80202e7222e895a67b5f10 Mon Sep 17 00:00:00 2001 From: brianluau Date: Mon, 4 May 2009 08:22:53 +0000 Subject: * Added the md5() script command. (follow up to r13719) - Changed kafra storage password to be stored as md5 hash in #kafra_code$. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13728 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/custom/eAAC_Scripts/quest_warper.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'npc/custom/eAAC_Scripts/quest_warper.txt') diff --git a/npc/custom/eAAC_Scripts/quest_warper.txt b/npc/custom/eAAC_Scripts/quest_warper.txt index 7ff06cd2e..650ee3a6e 100644 --- a/npc/custom/eAAC_Scripts/quest_warper.txt +++ b/npc/custom/eAAC_Scripts/quest_warper.txt @@ -71,6 +71,7 @@ // - Special warpname menu option name bug fixed //-2.1 Updated names to fall within retrictions. [L0ne_W0lf] //-2.2 #kafra_code is now stored as is. [brianluau] +//-2.2b The md5() of their kafra code is now stored in #kafra_code$ [brianluau] //================================================================= //========================Function=&=Script======================== @@ -597,11 +598,11 @@ L_Storage: end; F_CheckKafCode: - if(#kafra_code==0) return; + if(#kafra_code$=="") return; mes "Enter your storage password:"; set @code_,0; input @code_; - if(@code_ != #kafra_code) { + if(md5(@code_) != #kafra_code$) { dispbottom "Wrong storage password."; close; } -- cgit v1.2.3-70-g09d2