Famous Posted July 28, 2012 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted July 29, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
Jezu Posted July 29, 2012 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 566 Reputation: 34 Joined: 11/17/11 Last Seen: January 24 Share 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 Link to comment Share on other sites More sharing options...
Famous Posted July 29, 2012 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Author Share Posted July 29, 2012 @ Emistry can u make me a script? Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 29, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted July 29, 2012 prontera,155,181,5 script Sample 757,{ mes "You Locked Password : "+#lockpw$; close; } Quote Link to comment Share on other sites More sharing options...
Famous Posted August 1, 2012 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Author Share 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 Link to comment Share on other sites More sharing options...
ShogS Posted August 27, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 91 Reputation: 8 Joined: 03/03/12 Last Seen: October 2, 2020 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted August 27, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
ShogS Posted August 27, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 91 Reputation: 8 Joined: 03/03/12 Last Seen: October 2, 2020 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted August 28, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
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.