Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Serverside Modding => Topic started by: Kobiesan on February 01, 2018, 05:40:15 pm
-
I'm trying to counter multiboxing on my server and I am trying to achieve this with an SQL constraint. I know there is a way to disallow duplicate last_ip in auth.account but I want to allow 3 duplicate accounts from the same IP at a given time (I don't want to disallow friends/family/people in the same apartment complex to not be able to play). Is there a way to accomplish this or any better anti-multiboxing methods out there?
-
likely not without custom code.
SELECT COUNT(*) FROM auth.account WHERE last_ip = %1
should help
-
likely not without custom code.
SELECT COUNT(*) FROM auth.account WHERE last_ip = %1
should help
This runs once though. I want to have it constantly running to only allow no more than 3 duplicates.
-
run it on logging in?
-
run it on logging in?
How would I do that? Lua?
-
this hugely depends on your emulator and the version of it. at the point of handling log in, also execute that query.
trinity 3.3.5 would probably need to be patched here: https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/authserver/Server/AuthSession.cpp#L335
-
this hugely depends on your emulator and the version of it. at the point of handling log in, also execute that query.
trinity 3.3.5 would probably need to be patched here: https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/authserver/Server/AuthSession.cpp#L335
I suggest writing a loginscript (New Script -> AccountScript) that checks on each login for duplicate ips. You should find your own algorithm for this though.
This would work though.
-
this hugely depends on your emulator and the version of it. at the point of handling log in, also execute that query.
trinity 3.3.5 would probably need to be patched here: https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/authserver/Server/AuthSession.cpp#L335
I suggest writing a loginscript (New Script -> AccountScript) that checks on each login for duplicate ips. You should find your own algorithm for this though.
This would work though.
A c++ script? Where do I put them?