summaryrefslogtreecommitdiff
path: root/npc/custom
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-04 08:22:53 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-04 08:22:53 +0000
commit1c5e4a6caf2e70592c80202e7222e895a67b5f10 (patch)
tree1de75be79bf2539b1bb55e460dc8d4b3504624d1 /npc/custom
parent5a0c79ee6c863ffeed86c325d4ecd7708cc12b58 (diff)
downloadhercules-1c5e4a6caf2e70592c80202e7222e895a67b5f10.tar.gz
hercules-1c5e4a6caf2e70592c80202e7222e895a67b5f10.tar.bz2
hercules-1c5e4a6caf2e70592c80202e7222e895a67b5f10.tar.xz
hercules-1c5e4a6caf2e70592c80202e7222e895a67b5f10.zip
* 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
Diffstat (limited to 'npc/custom')
-rw-r--r--npc/custom/eAAC_Scripts/quest_warper.txt5
1 files changed, 3 insertions, 2 deletions
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;
}