1nsane Posted March 26, 2008 Share Posted March 26, 2008 Hello. One of these days in scripts PRS1.3 has found the big bug. If flood commands of type !info that flooder not will muted, and scripts start to brake. On one Russian server because of it was the full disorder in which end the server has remained without scripts. What to me to do what flooder will kicked? Forgive for broken English, I translate through the Internet:) [PK]INSANE Link to comment
BlueTak Posted April 3, 2008 Share Posted April 3, 2008 hmm, i will try work on this for you. Maybe i get it done in 30 mins Link to comment
BlueTak Posted April 3, 2008 Share Posted April 3, 2008 var %a = $calc($iif($hget(prstemp,$2) == $null,0,$v1) + 1) !hadd prstemp $2 %a if (%a == 3) mta.pm $1 $2 WARNING - DO NO SPAM!!! elseif (%a == 4) { mta.text $1 $mta.nick($1,$2) Auto-Muted: 60 secs - Reason: Spamming mta.mute $1 $2 .timerunmute $+ $2 1 60 mta.unmute $1 $2 } elseif (%a == !) { mta.text $1 $mta.nick($1,$2) Auto-Muted: 60 secs - Reason: Spamming mta.mute $1 $2 .timerunmute $+ $2 1 60 mta.unmute $1 $2 } !hadd -u2 prstemp $2 %a } Try that, i havnt tested, but maybe its my script unbug record Link to comment
1nsane Posted April 25, 2008 Author Share Posted April 25, 2008 Works, but it should be registered in section SIGNAL mta.command:D Link to comment
Scooby Posted April 30, 2008 Share Posted April 30, 2008 the spam check line isnt originally added to mta.command, but u could easily just paste it to the top of mta.command, its this part: var %a = $calc($iif($hget(prstemp,$2) == $null,0,$v1) + 1) !hadd prstemp $2 %a if (%a == 3) mta.pm $1 $2 WARNING - DO NO SPAM!!! elseif (%a == 4) { mta.text $1 $mta.nick($1,$2) Auto-Muted: 60 secs - Reason: Spamming mta.mute $1 $2 .timerunmute $+ $2 1 60 mta.unmute $1 $2 } !hadd -u2 prstemp $2 %a add it as the very first line in mta.command. Link to comment
BlueTak Posted April 30, 2008 Share Posted April 30, 2008 the spam check line isnt originally added to mta.command, but u could easily just paste it to the top of mta.command, its this part: var %a = $calc($iif($hget(prstemp,$2) == $null,0,$v1) + 1) !hadd prstemp $2 %a if (%a == 3) mta.pm $1 $2 WARNING - DO NO SPAM!!! elseif (%a == 4) { mta.text $1 $mta.nick($1,$2) Auto-Muted: 60 secs - Reason: Spamming mta.mute $1 $2 .timerunmute $+ $2 1 60 mta.unmute $1 $2 } !hadd -u2 prstemp $2 %a add it as the very first line in mta.command. Hmm well lol, im a newbie scripter, but i know quite a bit Link to comment
Scooby Posted May 1, 2008 Share Posted May 1, 2008 Thanks Scooby and BlueTak no problem, i would have replied sooner if u had posted in the prs topic tho i dont always look thru all the new posts. Link to comment
[UVA]Bart Posted May 8, 2008 Share Posted May 8, 2008 blue tak you had a bracket mismatch so it wnt work as far as i can see. Link to comment
Recommended Posts