• 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!

Magebomb script! rep++

Status
Not open for further replies.

Zonet

Web Developer
Joined
Sep 1, 2008
Messages
4,393
Reaction score
52
Location
Tibia VS RL-life, guess whos back?
Hello, this script is made by slawkens, but dont work.

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

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

local m_lastLogin, m_lastIP = 0, 0

function onLogin(cid)
	local timeNow, playerIP = os.time(), getPlayerIp(cid)
	if(m_lastLogin + seconds >= timeNow and (config.onlyWithSameIP == FALSE or m_lastIP == playerIP)) then
		return FALSE
	end

	m_lastIP = playerIP
	m_lastLogin = timeNow
	return TRUE
end
The thing i want is that, a script checks players from same ip, if like 2 players from same ip logins in same seconds, then it returns FALSE, or doRemoveCreature(cid). Other peoples okay. But like only if players from same IP logins on same seconds, not more.

Yours,
Zonet.
 
Status
Not open for further replies.
Back
Top