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

Secure Server

oldsoft

New Member
Joined
Jan 21, 2013
Messages
46
Reaction score
0
Do you know any good solutions for how to secure your server against hackers?
Share them here!
 
Mm i think it is not securing and then tibia dont had hackers they had bot so you need a creaturescript that dont allow two ip

PHP:
local storageCountKill = 75114
 
function onKill(cid, target, lastHit)
	if isPlayer(target) then
	local killCountPlayer = getCreatureStorage(cid, storageCountKill)
 
		if getPlayerIp(cid) == getPlayerIp(target) then
			if getCreatureStorage(cid, storageCountKill) >= 3 then
				doCreatureAddHealth(cid, -200)
				doCreatureAddMana(cid, -200)
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You have been punished for killing a player of the same IP.')
			else
				doPlayerAddItem(cid, 2152, 1)
				setPlayerStorageValue(cid, 6776, getCreatureStorage(cid, 6776) + 1)
			end
 
			if killCountPlayer == -1 then
				setPlayerStorageValue(cid, storageCountKill, 0)
			end
 
			setPlayerStorageValue(cid, storageCountKill, killCountPlayer+1)
 
		else
 
			setPlayerStorageValue(cid, storageCountKill, 0)
			doPlayerAddItem(cid, 2152, 1)
			setPlayerStorageValue(cid, 6776, getCreatureStorage(cid, 6776) + 1)
 
		end
	end
 
	return true
end
 
Mm i think it is not securing and then tibia dont had hackers they had bot so you need a creaturescript that dont allow two ip

PHP:
local storageCountKill = 75114
 
function onKill(cid, target, lastHit)
	if isPlayer(target) then
	local killCountPlayer = getCreatureStorage(cid, storageCountKill)
 
		if getPlayerIp(cid) == getPlayerIp(target) then
			if getCreatureStorage(cid, storageCountKill) >= 3 then
				doCreatureAddHealth(cid, -200)
				doCreatureAddMana(cid, -200)
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You have been punished for killing a player of the same IP.')
			else
				doPlayerAddItem(cid, 2152, 1)
				setPlayerStorageValue(cid, 6776, getCreatureStorage(cid, 6776) + 1)
			end
 
			if killCountPlayer == -1 then
				setPlayerStorageValue(cid, storageCountKill, 0)
			end
 
			setPlayerStorageValue(cid, storageCountKill, killCountPlayer+1)
 
		else
 
			setPlayerStorageValue(cid, storageCountKill, 0)
			doPlayerAddItem(cid, 2152, 1)
			setPlayerStorageValue(cid, 6776, getCreatureStorage(cid, 6776) + 1)
 
		end
	end
 
	return true
end

No idea why you posted this!
 

Similar threads

Back
Top