IF ASCII(SUBSTRING(@P_String, @V_Position, 1))
BETWEEN 48 AND 122
IF (ASCII(SUBSTRING(@P_String, @V_Position, 1)) >= 48 AND ASCII(SUBSTRING(@P_String, @V_Position, 1)) <= 122 AND ASCII(SUBSTRING(@P_String, @V_Position, 1)) != 94)
I thought you could do this by abuse.txt but it would probably need a wildcard or something.
in abuse.txt there is a number then a word that is restricted.
The 1 means chatting restriction words and the 2 means name restriction words. I never tried it but couldn't you put the ^ in there like 2,^ ? well it would probably need a wildcard but I'm not sure.
Great tutorial anyway.
I thought you could do this by abuse.txt but it would probably need a wildcard or something.
in abuse.txt there is a number then a word that is restricted.
The 1 means chatting restriction words and the 2 means name restriction words. I never tried it but couldn't you put the ^ in there like 2,^ ? well it would probably need a wildcard but I'm not sure.
Great tutorial anyway.
"Tim"
try "Joey."
try "Joey."
Good work Timothy mah boi.
Joey/Casanova quit Trinity a looooong time ago, Koreans (irl name: Tim) is the new owner.
This.
Koreans has always been Tim.
I've been owner a long time on Trinity. Beleive me, I know Joey well enough. I'm not gonna get into the details, you can beleive all you want.
that'swhy you put it after 2. the 1 in abuse.txt means text/chat blocked words and the 2 means the name blocked words. So it might work if you put it in 2. then it wouldn't mess up your chat cause you can say god in chat while you can't have it as a name.Putting ^ and so on blocks it completely, obviously. So, if you were to do ^1-^0 to block them, you can't even use the #'s. Therefore it wouldn't work.
Anyways GJ on this tut Tim. Alot of people needed this (or used to at least)
Set a hook on MMatchServer::OnRequestCreateChar.
Why go through all that when you can just edit the create char proc in the db?
It's something I personally prefer, because you can do more with it. For example log the one that is creating a character with ^ (and therefore has edited his system.mrs). It depends on your wishes.
Point of that post was to refer people to the function in the MatchServer.
You can log anyone attempting to use the symbol ^ as well via a procedure; you could create an entire new column or table for cheaters attempting to do this, actually.
I know that, and I thought about posting that in the same post. However, it requires more work than doing a simple fputs to a .txt file. As I stated before, it's just what you want.
IF (@Param LIKE '%^%')
BEGIN
INSERT INTO BadUsers VALUES (@ParamName)
END