Hi! Good day rathena! I'm here again asking for your help, I hope you can help me on this one as well
So, I made a security system for our GM accounts on our server, a secondary password. My knowledge in scripting is just basic, so here's what I got so far:
//Security System Secondary Password
- script Security System Login -1,{
OnPCLoginEvent:
if (getgroupid() >= 80) {
warp "z_agit", 24, 175; end;
}
}
- script Security System Mapflags -1,{
OnInit:
setmapflag "z_agit", mf_loadevent;
end;
}
- script Security System Password -1,{
if (getgroupid() >= 80){
OnPCLoadMapEvent:
if ("z_agit" == strcharinfo(3)) {
mes "Please Input Secondary Password for your Account:";
input .@ss1$;
// Admin Orochi
if( getcharid(3) == 2000502 ){
if( .@ss1$ == testing ){
mes "Thank you for your cooperation!";
next;
atcommand "@hide";
mes "Warping back to save point...";
warp "SavePoint", 0, 0; end;
close;
}
else{
mes "Password Incorrect!";
next;
atcommand "@kick "+strcharinfo(0);
}
}
}
}
}
}
My problem is it's not working the way I wanted, it's not working at all What I basically wanted is when a GM above the level of 80 logins, he will be warped to a map(z_agit) where commands are disabled, nowarp and nowarpto mapflags activated then when they arrive to the map, it will ask for a secondary password, if successfully inputed the GM will go @hide then warp to their save point, if fails, they will be automatically get kicked out of the server.
Oh and I want every GM account to have their own secondary password, which will be fixed on the script and only I can change. On this part of the script...
// Admin Orochi
if( getcharid(3) == 2000502 ){
if( .@ss1$ == testing ){
mes "Thank you for your cooperation!";
next;
atcommand "@hide";
mes "Warping back to save point...";
warp "SavePoint", 0, 0; end;
close;
}
else{
mes "Password Incorrect!";
next;
atcommand "@kick "+strcharinfo(0);
}
}
}
I was planning for it to be like this:
// Admin Orochi
<insert script here>
// gm#1
<insert script here>
and so on and so forth
But if anyone has a better idea, please let me know
Question
sotf
Hi! Good day rathena! I'm here again asking for your help, I hope you can help me on this one as well
So, I made a security system for our GM accounts on our server, a secondary password. My knowledge in scripting is just basic, so here's what I got so far:
My problem is it's not working the way I wanted, it's not working at all
What I basically wanted is when a GM above the level of 80 logins, he will be warped to a map(z_agit) where commands are disabled, nowarp and nowarpto mapflags activated then when they arrive to the map, it will ask for a secondary password, if successfully inputed the GM will go @hide then warp to their save point, if fails, they will be automatically get kicked out of the server.
Oh and I want every GM account to have their own secondary password, which will be fixed on the script and only I can change. On this part of the script...
I was planning for it to be like this:
// Admin Orochi
<insert script here>
// gm#1
<insert script here>
and so on and so forth
But if anyone has a better idea, please let me know
Thanks in advance for those who are going to help
Link to comment
Share on other sites
9 answers to this question
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.