John Key Posted July 25, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 73 Reputation: 0 Joined: 07/23/12 Last Seen: May 1, 2013 Share 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 Link to comment Share on other sites More sharing options...
Mystery Posted July 25, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share 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 Link to comment Share on other sites More sharing options...
onizame Posted July 25, 2012 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 139 Reputation: 2 Joined: 07/05/12 Last Seen: April 15, 2013 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted July 25, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
1 clydelion Posted July 25, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share 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 Link to comment Share on other sites More sharing options...
John Key Posted July 25, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 73 Reputation: 0 Joined: 07/23/12 Last Seen: May 1, 2013 Author Share Posted July 25, 2012 Where do I put these codes? Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 25, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted July 25, 2012 Index: char/char.c Quote Link to comment Share on other sites More sharing options...
Mystery Posted July 25, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share 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 Link to comment Share on other sites More sharing options...
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 ?
Link to comment
Share on other sites
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.