Jump to content

account locker (Q> how can I know the pass if I loss?)


Recommended Posts


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

- 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 by Euphy
Codeboxed
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

find a way or a new npc or any method you want...

and display this

mes "You Locked Password : "+#lockpw$;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

@

Emistry

can u make me a script?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

prontera,155,181,5    script    Sample    757,{
mes "You Locked Password : "+#lockpw$;
close;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

thanks

Emistry

:)

hmm question can u edit this that can use to change password??

and how to make npc invisible for players

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   8
  • Joined:  03/03/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

@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...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   8
  • Joined:  03/03/12
  • Last Seen:  

@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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...