Jump to content
  • 0

block Character creations that uses unauthorized names


escarillex

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  11/22/12
  • Last Seen:  

so I have this script for unauthorized names that log in,

-	script	UnauthorizedName	-1,{
    OnPCLoginEvent:
		if (!getgmlevel())
		{
			if(compare(strcharinfo(0),"GM") || compare(strcharinfo(0), "Admin"))
			{
				mes "^ff0000[ System ]^000000";
				mes "Illegal character name Detected.";
				mes "Character will be deleted";
				query_sql "DELETE FROM `char` WHERE `name` = '"+strcharinfo(0)+"'";
				sleep2 3000;
				atcommand "@kick " +strcharinfo(0);
			}
		}
        end;
}

 

What I want to know is, How do I block Character creations that uses unauthorized names?

Is it even possible ?

 

 

 

/thx  in advance 

Edited by Capuche
Change the title
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

add your checking on line 1524

        // Check Authorised letters/symbols in the name of the character
        if( char_name_option == 1 )

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