• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

CreatureEvent No more crash by magebomb

Could anyone like add a script so the groupid of GMs can login at the same time?.. Actually im somehow tying to figure this out my self, im failing pretty much.
Please help

edit: its The forgotten server 0.5 (tfs0,5)

Client:8.4
 
Last edited:
Can someone make that script on TFS 0.3.4 beta 2 ? :) pls
 
Last edited:
The script in 0.2 not doing player login in 2-3 second next player witch the same ip plz help
 
Could anyone like add a script so the groupid of GMs can login at the same time?.. Actually im somehow tying to figure this out my self, im failing pretty much.
Please help

edit: its The forgotten server 0.5 (tfs0,5)

Client:8.4

bump
 
i have seen many different script but which is the best ?
For the latest TFS (Crying demon's) 8.42
 
Short config, kick before login/load character from database, block players from one ip. config.lua config:
PHP:
	loginTries = 1
	retryTimeout = 2 * 1000
	loginTimeout = 2 * 1000
In protocolgame.cpp replace:
PHP:
ConnectionManager::getInstance()->addAttempt(getIP(), protocolId, true);
with:
PHP:
ConnectionManager::getInstance()->addAttempt(getIP(), protocolId, false);
compile engine and now time between logins from one ip is 2 seconds.
You can change message ( protocolgame.cpp ):
PHP:
disconnectClient(0x14, "Too many connections attempts from your IP address, please try again later.");
to:
PHP:
disconnectClient(0x14, "Too many login attempts from your IP address, try again after 2 seconds.");
 
Short config, kick before login/load character from database, block players from one ip. config.lua config:
PHP:
	loginTries = 1
	retryTimeout = 2 * 1000
	loginTimeout = 2 * 1000
In protocolgame.cpp replace:
PHP:
ConnectionManager::getInstance()->addAttempt(getIP(), protocolId, true);
with:
PHP:
ConnectionManager::getInstance()->addAttempt(getIP(), protocolId, false);
compile engine and now time between logins from one ip is 2 seconds.
You can change message ( protocolgame.cpp ):
PHP:
disconnectClient(0x14, "Too many connections attempts from your IP address, please try again later.");
to:
PHP:
disconnectClient(0x14, "Too many login attempts from your IP address, try again after 2 seconds.");


Thank you i've been lookin for this
 
If you using linux:

Max 4 connections with one IP to port 7171:

Code:
iptables -I INPUT -p tcp --dport 7171 -m connlimit --connlimit-above 4 -j REJECT --reject-with tcp-reset
 
That's a very nice idea. ;) I think I'm gonna use it and update it a bit.

Code:
local config = {
        seconds = 2,            -- in seconds
        onlyWithSameIP = "yes"  -- will work for all players ("no"), or only check player with same IP? ("yes")
        logPlayerName = "yes"
}

--DONT MODIFY
config.onlyWithSameIP = getBooleanFromString(config.onlyWithSameIP)
config.logPlayerName = getBooleanFromString(config.logPlayerName)

local m_lastLogin, m_lastIP = 0, 0

function onLogin(cid)
	local timeNow, playerIP, playerName = os.time(), getPlayerIp(cid), getPlayerName(cid)
	if(m_lastLogin + config.seconds >= timeNow and (config.onlyWithSameIP == FALSE or m_lastIP == playerIP)) then
		if config.logPlayerName == TRUE then
			doWriteLogFile("multiIp.txt", .. playerName" ; \n")
		end
		return FALSE
	end

	m_lastIP = playerIP
	m_lastLogin = timeNow
	return TRUE
end

Could u make the script ban all of the characters using Mage Bomb from the Same IP? or just Automaticly Bann the people if more than 2 MC's logg on?..
 
Back
Top