Famous Posted July 28, 2012 Posted July 28, 2012 (edited) - script AccountLocker -1,{ OnPCLoginEvent: if (#setpw == 1) goto P_insert; if (#dontp == 1) end; mes "[Account Locker]"; mes "Do you want to set an Account locker?"; next; menu "Set an Account Locker",P_check,"No",-; mes "[Account Locker]"; mes "Are you sure you don't want to set an Account locker?"; mes "I will only ask this once !!"; next; menu "Ok I want to set an account locker.",P_check,"Still No",-; mes "[Account Locker]"; mes "Okay !!"; set #dontp,1; close; P_Check: sc_start sc_berserk, 1000000000, 1; mes "[Account Locker]"; mes "Input your password locker whatever you want. Can be letters or numbers. CASE SENSITIVE."; next; input #lockpw$; next; mes "[Account Locker]"; mes "Password Verification."; mes "Please input the password you had entered."; input #lockvpw$; if (#lockvpw$ != #lockpw$) { next; mes "[Account Locker]"; mes "The verification password you had entered is incorrect."; next; goto P_Check; } else { next; mes "[Account Locker]"; mes "Thank you. Please remember the password you had setted. I will ask for it again everytime you login."; set #setpw,1; sc_end sc_berserk; close; } P_insert: sc_start sc_berserk, 1000000000, 1; mes "[Account Locker]"; mes "Please enter your locker password"; next; input #insertlp$; if (#insertlp$ == #lockpw$) goto P_pass; mes "[Account Locker]"; mes "Invalid password. Try again."; next; input #insertlp$; if (#insertlp$ == #lockpw$) goto P_pass; mes "[Account Locker]"; mes "Invalid password. Try again."; next; mes "[Account Locker]"; mes "Invalid password. Try again."; if (#insertlp$ == #lockpw$) goto P_pass; atcommand "@kick "+strcharinfo(0); end; P_pass: sc_end sc_berserk; close; } Edited July 29, 2012 by Euphy Codeboxed Quote
Emistry Posted July 29, 2012 Posted July 29, 2012 find a way or a new npc or any method you want... and display this mes "You Locked Password : "+#lockpw$; Quote
Jezu Posted July 29, 2012 Posted July 29, 2012 Go to your `ragnarok` database and go to `global_value` and search for user and input this: account_id: (account id of the player) string: #lockpw Quote
Emistry Posted July 29, 2012 Posted July 29, 2012 prontera,155,181,5 script Sample 757,{ mes "You Locked Password : "+#lockpw$; close; } Quote
Famous Posted August 1, 2012 Author Posted August 1, 2012 thanks Emistry hmm question can u edit this that can use to change password?? and how to make npc invisible for players Quote
ShogS Posted August 27, 2012 Posted August 27, 2012 thanks Emistry hmm question can u edit this that can use to change password?? and how to make npc invisible for players I think you should add a validation just like What is your Pet's name upon setting up the password. To avoid hacking. Quote
Emistry Posted August 27, 2012 Posted August 27, 2012 @Zhen http://pastebin.com/raw.php?i=CRJPUtFK @argelrock... lol..... the purpose of this script is to create a "Second Password"... why still need to many validation to setup a password again~... anyway..this is not a good way to handling this kind of security... Quote
ShogS Posted August 27, 2012 Posted August 27, 2012 @Zhen http://pastebin.com/raw.php?i=CRJPUtFK @argelrock... lol..... the purpose of this script is to create a "Second Password"... why still need to many validation to setup a password again~... anyway..this is not a good way to handling this kind of security... Hehe sorry sir emistry I just suggest that if a player want's to change or to new the password he forgotten maybe he should put some validations to secure the players password ^^ that's all hehe Quote
Emistry Posted August 28, 2012 Posted August 28, 2012 if a player want's to change or to new the password he forgotten you can refer to post#2 find a way or a new npc or any method you want... and display this mes "You Locked Password : "+#lockpw$; just change the variable if it is not the variable that used to save the password... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.