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

Server crashes

Nashalito

New Member
Joined
May 21, 2009
Messages
273
Reaction score
0
Hello, i need some help, is it any trick i can do so people can't crash my server. i am using tfs 0.3.6 .

i want like that people cant use magebomb, cant crash server with magebomb etc. could some1 pm me with other ideas so i dont get my server crashed.

PS i give rep
 
Creaturescripts.xml add
Code:
	<event type="login" name="Antimc" event="script" value="antimc.lua"/>
In login.lua add
after
Code:
	registerCreatureEvent(cid, "Mail")
add
Code:
	registerCreatureEvent(cid, "Antimc")

antimc.lua
LUA:
  local config = {

max = 2,     -- max chars per same IP

text = "Multi-Client is not allowed.",  -- text when someone tries to login with magebomb

group_id = 1  -- Only players with this group_id will get kicked

} local accepted_ip_list = {}    -- Ip(s) which can use magebomb

local function antiMC(p)

if #getPlayersByIp(getPlayerIp(p.pid)) >= p.max then

doRemoveCreature(p.pid)

end

return TRUE

end

function onLogin(cid)

if getPlayerGroupId(cid) <= config.group_id then

if isInArray(accepted_ip_list,getPayerIp(cid)) == FALSE then

addEvent(antiMC, 1000, {pid = cid, max = config.max+1})

doPlayerPopupFYI(cid, config.text)

   end

 end

return TRUE

end
 
is there no anothers , btw you script are bugged, no1 can ever connect to the server.

How do i fix the house *. I dont know which fil i have to open and with what i have to open it
 
Try
LUA:
local config = {
        max = 1,
        text = "Multi-Client or Magebomb is not allowed.",
        group_id = 1  -- it will only kick player whit that id (1=Players, 2=tutor, 3=seniortutors, 4=Gm's, 5=Cm's and 6=God's
}
local accepted_ip_list ="127.0.0.1"  -- here put the Ip you whant to be allowed to use Mc/Magebomb..
local function antiMC(p)
        if #getPlayersByIp(getPlayerIp(p.pid)) >= p.max then
                doRemoveCreature(p.pid)
        end
        return TRUE
end

function onLogin(cid)
        if getPlayerGroupId(cid) <= config.group_id then
                if isInArray(accepted_ip_list,getPlayerIp(cid)) == FALSE then
                        addEvent(antiMC, 1000, {pid = cid, max = config.max+1})
                        doPlayerPopupFYI(cid, config.text)
                end
        end
        return TRUE
end
 
where is house cpp?

a tfs source file, recompile your server.

I have tfs 0.4 and was told to use that fix, I think it could still be crashed by using multiple ****'s but not one *. I was given a different fix not related to house.cpp, but this is just from memory.. I could be wrong. (I also forgot forgot what I added :()
 
a tfs source file, recompile your server.

I have tfs 0.4 and was told to use that fix, I think it could still be crashed by using multiple ****'s but not one *. I was given a different fix not related to house.cpp, but this is just from memory.. I could be wrong. (I also forgot forgot what I added :()

i dont understand what u mean. Please can u explain a lil bit better
 
Back
Top