• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

[Anti-Tumb] GoodBye lag caused by accounts managers

Ledther0n

New Member
Joined
Oct 12, 2013
Messages
3
Reaction score
1
NO MORE CRASH BY ACCOUNT MANAGERS!
Hello, i'm ledther0n
Many of you, have problems with attacks with account managers
You can give it a solution, you have 2 options :
1º Use Anti-Tumb
2º Create a website

If you choose 1º will have to use this
In login.lua (data/creaturescripts/scripts) below
PHP:
-- ANTI-TUMB BY LEDTHER0N
local maxaccbyip =1
local accm ={}
local pbi = getPlayersByIp(getPlayerIp(cid))
function antiTumb(cid)
for _,player in ipairs(pbi)do
if getCreatureName(player)=="Account Manager"then
table.insert(accm, player)
end
end
if#accm > maxaccbyip then
print("Has been passed the amount of account manager of the IP "..convertIntToIP(getPlayerIp(cid)).."\nWe don't know if they tried to lag you, or was a error, they were kicked\nSystem By Ledther0n!")
for _,player in ipairs(accm)do
doRemoveCreature(player)
end
end
return true
end
addEvent(antiTumb,10, cid)
-- ANTI-TUMB BY LEDTHER0N
And you have the protection ready
What to configure?
the second line : local maxacc...
After the =, you have to put the maximum account managers connected by ip
The system only kicks the accounts managers connected with the same ip, not the normal players, and dont make any error in console...

Thank you for reading my post
Credits
100% Ledther0n
 
Last edited:
It kicks too, it's only for make a signal to the owner, if you dont want print, remove the line :)
 
Back
Top Bottom