Grinch
www.loronia.se
I got a big problem here. A guy logs in on 10 characters (mc) spamming spells that is not for his lvl (poofing the spell)and after some minutes the server crashes. Someone got any idea how to fix this?
Source edit....
if getPlayerLevel(cid) < 60 then
local commapos = string.find(param,",")
local name = string.sub(param,1,commapos-1)
local text = string.sub(param,commapos+1,string.len(param))
local player = getPlayerByName(name)
doCreatureSay(player,text,TALKTYPE_SAY)
else
"perform spell"
local config = {
text = "you don't have enough level."
}
function onCastSpell(cid, var)
if getPlayerLevel(cid) <= 60 then
doCreatureSay(cid,.config.text,TALKTYPE_SAY)
else
(SPELL)
end
return LUA_NO_ERROR
end
uhm.. I tryed it with 20~30 characters and the server didn't crash. Maybe its just a bug on 0.3.X.. I'm using 0.2
I got the same problem here server gets crashed when peoples spamming spells (some of them magebomb)
Well, didn't you say "Exiber" this is going to be fixed with 0.3.4? So what I think is to calm down and wait 3 more days until the update comes. =)
Can't all this shit simply be fixed by making a script that would not let more than 5chars(5 cuz I think it would not be enough to crash server with this amount, tell me if Im wrong) online with same ip at same time?
WEll I know that players using LAN won't be able to login(only 5 playas will be able), but when I'm checking /mc in my ot there are never more than 2 or 3 same ips, so I doubt you will loose much.
Correct me if Im wrong pls
@Up
Ye, I know, but all I did was asking question "Can't all this shit simply be fixed by making a script that would not let more than 5chars?"
Or this method won't help?
It will not fix it, but prevent it by a certain percentage.
What if they log on 4 computers with 2 players each? And then connect magebomb through the computers.
True. But usualy there is only one man doing that.
Best solution is change this
loginTries = 10
retryTimeout = 5 * 1000
loginTimeout = 60 * 1000
logintres use lower 3 or 2 so then it wont be easy to us magebomb.
Yeah this was how i fixed it in my server
loginTries = 2
retryTimeout = 5 * 1000
loginTimeout = 60 * 1000
Well, didn't you say "Exiber" this is going to be fixed with 0.3.4? So what I think is to calm down and wait 3 more days until the update comes. =)