Jump to content
  • 0

Help with this script


Yonko

Question


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.03
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

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]
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.03
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

what do you mean strcharinfo?

like this?

atcommand "@monsterignore";

atcommand "@battleignore";

t

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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.

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