- script StorageInfo -1,{
OnSettings:
mes "[Storage Security Info]";
mes "Select an option";
next;
if(#StoragePassword > 1);
switch(select("Change Password:Forgot Password:Close")) {
case 1:
mes "[Storage Security Info]";
mes "Input current password";
next;
input .@pass;
if (.@pass != #StoragePassword) {mes "Invalid password, please try again."; close;}
mes "[Storage Security Info]";
mes "Input New Password";
next;
input .@passn;
if (.@passn < 1000 || .@pass > 9999) {mes "Invalid password, please try again ^FFF000(1000 - 9999)^000000."; close;}
mes "[Storage Security Info]";
mes "Confirm New Password";
next;
input .@passnc;
if (.@passnc != .@passn) {mes "Please try again."; close;}
set #StoragePassword, .@passn;
case 2:
mes "[Storage Security Info]";
mes "Please input your account email.";
next;
input .@email$;
query_sql "SELECT email FROM login WHERE account_id = "+ getcharid(3) +";",.@emaill$[0];
if (.@email$ != .@emaill$[0]) {mes "Invalid email, please try again"; close;}
mes "[Storage Security Info]";
mes "Input New Password";
next;
input .@passn;
if (.@passn < 1000 || .@pass > 9999) {mes "Invalid password, please try again ^FFF000(1000 - 9999)^000000."; close;}
mes "[Storage Security Info]";
mes "Confirm New Password";
next;
input .@passnc;
if (.@passnc != .@passn) {mes "Please try again."; close;}
set #StoragePassword, .@passn;
case 3:
close;
else if (!#StoragePassword) {
switch(select("Set Password:Close")) {
case 1:
mes "[Storage Security Info]";
mes "Input New Password";
next;
input .@passn;
if (.@passn < 1000 || .@pass > 9999) {mes "Invalid password, please try again ^FFF000(1000 - 9999)^000000."; close;}
mes "[Storage Security Info]";
mes "Confirm New Password";
next;
input .@passnc;
if (.@passnc != .@passn) {mes "Please try again."; close;}
set #StoragePassword, .@passn;
}
case 2:
close;
}
}
}
GIves me error npc_event: event not found [storageInfo::Onsettings]