Jump to content
  • 0

Help with this script


Question

Posted (edited)

first credits to the maker of this script i want to modify this script by adding some stuffs

///////////

I will add the command @battleignore , @monsterignore when the GM login, is this will work? i can't test due i browse only in the tablet. hoping for help thanks!

/////////

-	script	Sample	-1,{
OnPCLoginEvent:
if( getgmlevel() >= 80 ){
	pcblockmove getcharid(3),1;
	if( getstrlen( #Password$ ) < 4 || getstrlen( #Password$ ) > 23 ){
		mes "[ Password Setup ]";
		mes "Please Key in your Secondary Password.";
		mes "4 ~ 23 Words";
		do{
			input #Password$;
		}while( getstrlen( #Password$ ) < 4 || getstrlen( #Password$ ) > 23 );
		mes "Thank you. Please login to Confirm about this.";
	}else{ 
		mes "Please key in the Password you have setup before this.";
		input .@Input$;
		if( .@Input$ != #Password$ ){
			atcommand "@kick "+strcharinfo(0);
			end;
		}else{
			mes "Thank you. Enjoy your Game.";
			pcblockmove getcharid(3),0;
			atcommand "@monsterignore "+strcharinfo(0);
			atcommand "@battleignore"+strcharinfo(0);
		}
	}
}
close;
} 

Edited by Brian
added [codebox]

3 answers to this question

Recommended Posts

Posted

Some people also use this method

atcommand "@option 2 0 0";
atcommand "@battleignore";
setoption 0x2,1;
sc_start sc_berserk, 1000000000, 1;

Along with checkcart() + checkriding() + checkfalcon() command.

But personally, I don't like the use of sc_berserk.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...