Jump to content
  • 0

Can I request to add more secure with this simple antihack


Famous

Question


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

http://rathena.org/board/files/file/2918-simple-hack-security/

 

 

Can I request how to add berserk to a GM level above 0 or with frost to avoid warping.. etc



/*
 * HACK SECURITY V1
 * SimplyNice
 * Contact: [email protected]
*/

-	script	HackerDetector	-1,{

OnPCLoginEvent:
	if (getgroupid() > 0){
		set @grpid,getgroupid();
		atcommand "@adjgroup 25";
		set @password$,"iamnotahacker";
		mes "Please input the secret password:";
		input @nothacker$;
		if(@nothacker$ != @password$){
			atcommand "@kick "+strcharinfo(0);
			end;
		} else {
			mes "Good day";
			atcommand "@adjgroup "+@grpid+"";
			close;
		}
	}
}



bump anyone?

Edited by zhen
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


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

 

bump

 
 
Edited by zhen
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Added sc_start sc_berserk, 1000000000, 1; and sc_end sc_berserk; on your script

-    script    HackerDetector    -1,{


OnPCLoginEvent:
    if (getgroupid() > 0){
        set @grpid,getgroupid();
        atcommand "@adjgroup 25";
        set @password$,"iamnotahacker";
        sc_start sc_berserk, 1000000000, 1;
        mes "Please input the secret password:";
        input @nothacker$;
        if(@nothacker$ != @password$){
            atcommand "@kick "+strcharinfo(0);
            end;
        } else {
            sc_end sc_berserk;
            mes "Good day";
            atcommand "@adjgroup "+@grpid+"";
            close;
        }
    }
}
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:  

You could also mute them and then disconnect their rid from the npc and unmute them to prevent warp.

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:  

@Patskie thanks bro 

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