John Key Posted July 25, 2012 Posted July 25, 2012 How can I prevent players from creating a characters in the name of "GM" Example : GM.name , GMname , GM-name , GM name , GM!name I do not want players to create characters in the name of "gm" please help and thx --- where are you ? Quote
1 clydelion Posted July 25, 2012 Posted July 25, 2012 Index: char/char.c =================================================================== --- char/char.c (revision 16496) +++ char/char.c (working copy) @@ -1322,6 +1322,8 @@ } if( Sql_NumRows(sql_handle) > 0 ) return -1; // name already exists + if (strstr(name, "GM")) + return -2; return 0; } 1 Quote
Mystery Posted July 25, 2012 Posted July 25, 2012 I doubt there's a way to do so.. unless you disable letters G-M when creating a character. The only way I can find a solution for this is if you tell your players that your GMs are separated with lets say <GM> [Name]. Thus, players who are named GMname are fake and scammers. Quote
onizame Posted July 25, 2012 Posted July 25, 2012 just make a announce.. put all the GM team on same guild.. ex: [GM] GameMaster << [GM] will be the emblem.. other than that guild member is a scammer i do that on my previous server Quote
Emistry Posted July 25, 2012 Posted July 25, 2012 you can try something this like...but still it is not a good way to do so..since player's name might come with those word without any intention to act as "GM" OnPCLoginEvent: if( compare( strcharinfo(0),"[GM]" ) ){ mes "Sorry you cant add any form of '[GM]' in your name."; sleep2 5000; atcommand "@kick "+strcharinfo(0); } end; Quote
Mystery Posted July 25, 2012 Posted July 25, 2012 Where do I put these codes? In other words, .../src/char/char.c https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/src/char/char.c Quote
Question
John Key
How can I prevent players from creating a characters in the name of "GM"
Example : GM.name , GMname , GM-name , GM name , GM!name
I do not want players to create characters in the name of "gm"
please help and thx
---
where are you ?
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.