• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

99999 account managers crashes my server!

antoniolagos

Member
Joined
Apr 10, 2010
Messages
34
Reaction score
6
I have a war server and It have a limit of 100 players in the config.lua(I use Account Manager to create accounts and not web page).

The problem is that sometimes BOT players login with hundreds account managers at the same time, and then they logg of with all of them at the same time. They make that a lot of times, then my server gets infinite lag and finally it CRASHES.Addicional Information:

- I dont want to use web page.
- I have limit of 100 players in config.lua (working with players but not account manager)
- I use the forgotten server 0.3.6 version 8.54
- I dont want to ban, because I can´t stay all day connected to ban players.


I have this in the config.lua

allowClones = false
premiumPlayerSkipWaitList = false
maxPlayers = 100
onePlayerOnlinePerAccount = true



ANY IDEA HOW TO FIX THIS?
ANY SCRIPT TO ALLOW ONLY 10 ACCOUNT MANAGERS CONECTED AT THE SAME TIME?
 
Not sure if it's working but try this

Paste this at your onLogin script
LUA:
local a = 0
local limitAM = 20
if getCreatureName(cid):lower() == "account manager" then
	for _, pid in ipairs(getPlayersOnline()) do
		if getCreatureName(pid):lower() == "account manager" and pid ~= cid then
			a = a + 1
		end
	end
	
	if a >= limitAM then
		return false
	end
	return true
end


limitAM = How many account managers can be online at same time.
 
It Works! thanks a lot, now I will make that a text appears when there is the maximum number of acc managers conected. Thanks again. Another thing: limitam=4 means that there can be 5 acc managers conected.
 
limit account managers by IP..
make it can only be 5 acc manager online at same time from same Ip etc..
a complete limit of acc manager will make it easier for bots to disturb your server by just take all allowed places so nobody else can create account.
 

Similar threads

Back
Top