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

Windows MegaBomb

melegy

Devils
Joined
Dec 5, 2012
Messages
178
Reaction score
2
Location
Egypt
Hello.
while i cannot solve megabomb problem in my own OT'S using scripts as i'm using Aries .4.0xml engine i've a new idea i hope to help me : D ,i'm looking for a program do not let to the same router Ip 42.2.2.20 with P.C ip 192.168.1.3 to enter to my server more than 2 times if tried to login with the third char he get kick away from server.
 
I honestly have no idea what function, ect you have, so just edit this code if you have onLogin.

Code:
function onLogin(cid)

local count = 0
local players = getPlayersOnline()

for i, v in ipairs(players) do
      player = players(v)
           if getPlayerIp(cid) == getPlayerIp(player) then
                 count = count + 1
          end
end

if count >= 2 then
return false
end
return true
end
 
I honestly have no idea what function, ect you have, so just edit this code if you have onLogin.

Code:
function onLogin(cid)

local count = 0
local players = getPlayersOnline()

for i, v in ipairs(players) do
      player = players(v)
           if getPlayerIp(cid) == getPlayerIp(player) then
                 count = count + 1
          end
end

if count >= 2 then
return false
end
return true
end
easy way for malicious people to cause lag for a server with a decent amount of players using that
more efficient to do something like convertin login players ip to a string, and storing it in a table and checking vs that that parsing through entire players online table every login
 
Its not like people would know that excessively logging in would make this script run and cause lag. Plus, unless there are more then 2000 players or, he has a really shitty server it wouldn't be noticeable. Your right in terms of functionality but, you didn't provide the code so your opinion is kind of pointless.
 
I do not have login.file The only way to solve this is a program with this idea as i use XML Server client 8.1 and all sql for this client have many debugs cannot solve
 
Its not like people would know that excessively logging in would make this script run and cause lag. Plus, unless there are more then 2000 players or, he has a really shitty server it wouldn't be noticeable. Your right in terms of functionality but, you didn't provide the code so your opinion is kind of pointless.
it is not uncommon for people to have a lot of things executing onLogin from my experience, so if you are someone trying to attack a server with some knowledge i would say its not that uncommon to test..

Code:
local ips = {}

function onLogin(cid)
    local ip = getPlayerIp(cid)
    ips[ip] += 1
    if ips[ip] >= 3 then
        return false
    end
    rest
end
something like this would work if ip is a number, not much to change if its a string, and no shitty table iterating
was it that hard?
 
I do not have onlogin.file i use old version on engine and there's no other support 8.1 client with no huge debugs i fixed all only i cannot do any thing with megabomb ,my engine do not have
function onLogin the only way to set this script up as a program on windows
 
I do not have onlogin.file i use old version on engine and there's no other support 8.1 client with no huge debugs i fixed all only i cannot do any thing with megabomb ,my engine do not have
function onLogin the only way to set this script up as a program on windows
you should have a login.lua file in your data/creaturescripts/scripts folder.
if not then just make one
??
lol
 
I use XML Areis 0.4.0 for client 8.1 this version do not support "function onLogin(cid)" or get ip that's why ppl retired hosting 8.1 but i want to fix i fixed all debugs only i cannot do any with this Error, Help me Please .
 
Back
Top