Jump to content
  • 0

Security System (secondary password)


sotf

Question


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

Hi! Good day rathena! I'm here again asking for your help, I hope you can help me on this one as well :D

 

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 :D


Thanks in advance for those who are going to help :D

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   3
  • Joined:  06/26/13
  • Last Seen:  

//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...";
				close2;
				warp "SavePoint", 0, 0;
				end;
				}
				
				else{
				mes "Password Incorrect!";
				next;
				close2;
				atcommand "@kick "+strcharinfo(0);
				end;
				}
				}
			
			}
		
	}	}

 

-	script	Admin Orochi	-1,{


if( getcharid(3) == 2000502 ){
		if( .@ss1$ == testing ){
		mes "Thank you for your cooperation!";
		next;
		atcommand "@hide";
		mes "Warping back to save point...";
		close2;
		warp "SavePoint", 0, 0;
		end;
		}
				
		else{
		mes "Password Incorrect!";
		next;
		close2;
		atcommand "@kick "+strcharinfo(0);
		end;
		}
		}
			}

i hope this help you!

 

edit: try again

Edited by xRoxasx
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

^I can cancel that by using @jump on my alt keys <-- a huge security flaw :(

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

^I can cancel that by using @jump on my alt keys <-- a huge security flaw :(

 

 

http://code.google.com/p/ea-addicts/downloads/detail?name=gmprotectsql.txt&can=2&q=

 

I have a script like this already. To stop canceling it with alt keys mute the player and then detach the player from the script and unmute them from the npc.

I think there was a different way of doing it but I forget. You don't have to use mine but you can learn from it :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   3
  • Joined:  06/26/13
  • Last Seen:  

sorry for this, i have slept xD

 

best regards

Roxas

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

^I can cancel that by using @jump on my alt keys <-- a huge security flaw :(

 

 

http://code.google.com/p/ea-addicts/downloads/detail?name=gmprotectsql.txt&can=2&q=

 

I have a script like this already. To stop canceling it with alt keys mute the player and then detach the player from the script and unmute them from the npc.

I think there was a different way of doing it but I forget. You don't have to use mine but you can learn from it :)

 

I'll try yours first and I'll see what I should adjust for my server's needs. This works on rAthena right?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

 

^I can cancel that by using @jump on my alt keys <-- a huge security flaw :(

 

 

http://code.google.com/p/ea-addicts/downloads/detail?name=gmprotectsql.txt&can=2&q=

 

I have a script like this already. To stop canceling it with alt keys mute the player and then detach the player from the script and unmute them from the npc.

I think there was a different way of doing it but I forget. You don't have to use mine but you can learn from it :)

 

I'll try yours first and I'll see what I should adjust for my server's needs. This works on rAthena right?

 

Yeah

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.02
  • Content Count:  122
  • Reputation:   0
  • Joined:  06/08/14
  • Last Seen:  

Hi Sir Skorm,

 

Your script is not working.


Nothings happen, nothings pop up when i logged in. T_T

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  79
  • Reputation:   1
  • Joined:  02/24/14
  • Last Seen:  

Hi Sir Skorm,

 

Your script is not working.

Nothings happen, nothings pop up when i logged in. T_T

 

I think you need to set this up on the script

set .bypass, 100; //GMs this level or greater don't need passwords.
		set .md5, 0; //MD5 Passwords this is for added security (1=on:0=off) rAthena Only!
		set .norm, 0; //Enable Passwords for normal players (1=on:0=off)
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.02
  • Content Count:  122
  • Reputation:   0
  • Joined:  06/08/14
  • Last Seen:  

 

Hi Sir Skorm,

 

Your script is not working.

Nothings happen, nothings pop up when i logged in. T_T

 

I think you need to set this up on the script

set .bypass, 100; //GMs this level or greater don't need passwords.
		set .md5, 0; //MD5 Passwords this is for added security (1=on:0=off) rAthena Only!
		set .norm, 0; //Enable Passwords for normal players (1=on:0=off)

 

Hi Sir,

 

I already change the settings. from .norm, 0 change to .norm 1 but still nothings happens.

 

Thanks,

i got no error encounter but still the pop up message upon loggin in is not showing. T_T

 

Please help me.

 

Thanks,

Edited by nesotomayor
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
Answer this question...

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