3ntity Posted May 18, 2011 Report Share Posted May 18, 2011 (edited) For Oasiz chat http://chat.oasiz.net Most of what worked for msn will work for oasiz. **Auto owner access** on *:OWNER:*: { if ($opnick == $me) && ($nick != $me) { .raw access $active add OWNER *! $+ $$ial($$1 $+ *,1).addr } } **Deowner** on *:DEOWNER:#:{ if ($nick == $me) halt if ($1- == -q $me) { /hop # | .raw kick $chan $nick : :@ | .raw access # add deny *! $+ $ial($nick,1).addr 30 | var %o $rand(000000,999999) $+ $chr($r(65,200)) } | prop $chan ownerkey fd^&^%&^&vbh: $+ %o | set %okey %o } } **Kick list** #kicklist on on *:join:#: { if ($readini(kick.ini,(.raw kick,$chan),$address($nick,1))) { var %ifmatch = $ifmatch if ($me isop $chan) { raw -q KICK $chan $nick $gettok(%ifmatch,2-,32) } } } menu nicklist { Kicklist .Add: var %r | writeini -n kick.ini (.raw kick,$chan) $address($1,1) $1 %r .Remove: remini kick.ini (.raw kick,$chan) $address($1,1) } #kicklist end } **Take 1** alias masskick { .raw access # clear owner .raw access # add owner $address($me,1) 0 .raw prop $chan OWNERKEY мugεтsu var %u, %a = 1, %r Rasengan! while ( %a <= $nick($chan,0) ) { if ( $nick($chan,%a) != $me ) { %u = $addtok(%u,$nick($chan,%a),44) } if ( $numtok(%u,44) >= 20 ) { raw -q KICK $chan %u %r | unset %u } inc %a } if ( %u !== $null ) { raw -q KICK $chan %u %r | unset %u } .raw access # clear owner .raw access # add owner $address($me,1) 0 .raw prop $chan OWNERKEY мugεтsu .raw mode $chan +k мugεтsu .raw mode $chan +iml 1 } **Mode Lock** #modelock on on *:MODE:#:{ if ($nick == $me) return if (+ isin $1-) .mode # $replace($1-,+,-) if (- isin $1-) .mode # $replace($1-,-,+) if (+k isin $1) .mode # -k $2- if (-k isin $1) .mode # +k $2- if (+l isin $1-) .mode # +l 100 if ($me isop $chan) { .raw access # delete owner $nick | .raw access # delete owner $$address($nick,1) | .raw kick # $nick MODE LOCK :@ } } #modelock end **Revenge kick** #revengekick on alias BanProtect { .raw access $active add deny $address($nick,1) 0 } on *:JOIN:#: .raw access # add owner $address($me,1) 0 on *:KICK:#:{ if ($knick == $me) { timeraccess off hop $active .raw access # clear owner .raw access # add owner $address($me,1) 0 banprotect .raw access # add deny $nick 0 .raw kick # $nick :@ set -u3 %defconnk $nick .raw access # add owner $address($me,1) 0 } } #revengekick end **Topic lock** #topiclock on on ^*:TOPIC:#:{ if ($nick == $me) halt .kick # $nick Why you touch my topic :@ | /topic # %topic } #topiclock end } **Take 2** alias Take { .raw access # clear owner .raw access # add owner $address($me,1) 0 .raw prop $chan OWNERKEY bds˜^&˜%&^h˜g62 set %people 1 :loop if ($nick(#,%people) == cs) { inc %people | goto loop | halt } if ($nick(#,%people) == $me) { inc %people | goto loop | halt } else { .raw kick $chan $nick(#,%people) Rasengan! } inc %people if ($nick(#,%people) == $null) { unset %people } else { goto loop } .raw access # clear owner .raw access # add owner $address($me,1) 0 .raw prop $chan OWNERKEY bds˜^&˜%&^h˜g62 .raw mode $chan +k bds˜^&˜%&^h˜g62 .raw mode $chan +iml 1 } **Masses** Masses .Mass Kick:/masskick .massop:{ set %i $nick($active,0) | :next | if $nick($active,%i) != $me mode $active +q $nick($active,%i) %kr | dec %i | if %i > 0 goto next } .massdeop:{ set %i $nick($active,0) | :next | if $nick($active,%i) != $me mode $active -q $nick($active,%i) %kr | dec %i | if %i > 0 goto next } } - **mass kick prot** (This one doesn't really work at all.) On *:KICK:#: { /inc %nrofkicks 1 timerkick 1 6 /unset %nrofkicks if ( 4 isin %nrofkicks ) { /mode $chan +b $address if ($nick != $me) { ./kick $chan $nick 0,1Excessive Kicks Detected. } } Edited May 18, 2011 by 3ntity Link to comment Share on other sites More sharing options...
Guest Travis Posted May 19, 2011 Report Share Posted May 19, 2011 Did you notice this? #kicklist end } **Take 1** alias masskick { Link to comment Share on other sites More sharing options...
3ntity Posted May 20, 2011 Author Report Share Posted May 20, 2011 lol **Kick list** #kicklist on on *:join:#: { if ($readini(kick.ini,(.raw kick,$chan),$address($nick,1))) { var %ifmatch = $ifmatch if ($me isop $chan) { raw -q KICK $chan $nick $gettok(%ifmatch,2-,32) } } #kicklist end } menu nicklist { Kicklist .Add: var %r | writeini -n kick.ini (.raw kick,$chan) $address($1,1) $1 %r .Remove: remini kick.ini (.raw kick,$chan) $address($1,1) } Link to comment Share on other sites More sharing options...
3ntity Posted May 20, 2011 Author Report Share Posted May 20, 2011 lol **Kick list** #kicklist on on *:join:#: { if ($readini(kick.ini,(.raw kick,$chan),$address($nick,1))) { var %ifmatch = $ifmatch if ($me isop $chan) { raw -q KICK $chan $nick $gettok(%ifmatch,2-,32) } } #kicklist end } menu nicklist { Kicklist .Add: var %r | writeini -n kick.ini (.raw kick,$chan) $address($1,1) $1 %r .Remove: remini kick.ini (.raw kick,$chan) $address($1,1) } Any idea why that mass kick prot doesn't work so well? I mean someone could mass kick and it wont detect and stop the kick till the last or one before that is kicked, sometimes it doesn't kick in at all. Link to comment Share on other sites More sharing options...
Guest Travis Posted May 20, 2011 Report Share Posted May 20, 2011 #groups are like events. They can't be nested in other events or aliases. I would imagine everything after that join event wouldn't work. Link to comment Share on other sites More sharing options...
3ntity Posted May 20, 2011 Author Report Share Posted May 20, 2011 #groups are like events. They can't be nested in other events or aliases. I would imagine everything after that join event wouldn't work. for the mass kick? Link to comment Share on other sites More sharing options...
Pablo Posted May 21, 2011 Report Share Posted May 21, 2011 I do not even see a mass kick protection anywhere in the script.. maybe I am missing something.. It is only probably kicking when you are kicked as a revenge. The script you posted looks more like it is not for protections other than revenge and mode locking. If you need specific protections let me know.. I will whip something together real quick. Link to comment Share on other sites More sharing options...
3ntity Posted May 21, 2011 Author Report Share Posted May 21, 2011 I do not even see a mass kick protection anywhere in the script.. maybe I am missing something.. It is only probably kicking when you are kicked as a revenge. The script you posted looks more like it is not for protections other than revenge and mode locking. If you need specific protections let me know.. I will whip something together real quick. **Auto owner access** on *:OWNER:*: { if ($opnick == $me) && ($nick != $me) { .raw access $active add OWNER *! $+ $$ial($$1 $+ *,1).addr } } **Deowner** on *:DEOWNER:#:{ if ($nick == $me) halt if ($1- == -q $me) { /hop # | .raw kick $chan $nick : :@ | .raw access # add deny *! $+ $ial($nick,1).addr 30 | var %o $rand(000000,999999) $+ $chr($r(65,200)) } | prop $chan ownerkey fd^&^%&^&vbh: $+ %o | set %okey %o } } **Kick list** #kicklist on on *:join:#: { if ($readini(kick.ini,(.raw kick,$chan),$address($nick,1))) { var %ifmatch = $ifmatch if ($me isop $chan) { raw -q KICK $chan $nick $gettok(%ifmatch,2-,32) } } } menu nicklist { Kicklist .Add: var %r | writeini -n kick.ini (.raw kick,$chan) $address($1,1) $1 %r .Remove: remini kick.ini (.raw kick,$chan) $address($1,1) } #kicklist end } **Take 1** alias masskick { .raw access # clear owner .raw access # add owner $address($me,1) 0 .raw prop $chan OWNERKEY мugεтsu var %u, %a = 1, %r Rasengan! while ( %a <= $nick($chan,0) ) { if ( $nick($chan,%a) != $me ) { %u = $addtok(%u,$nick($chan,%a),44) } if ( $numtok(%u,44) >= 20 ) { raw -q KICK $chan %u %r | unset %u } inc %a } if ( %u !== $null ) { raw -q KICK $chan %u %r | unset %u } .raw access # clear owner .raw access # add owner $address($me,1) 0 .raw prop $chan OWNERKEY мugεтsu .raw mode $chan +k мugεтsu .raw mode $chan +iml 1 } **Mode Lock** #modelock on on *:MODE:#:{ if ($nick == $me) return if (+ isin $1-) .mode # $replace($1-,+,-) if (- isin $1-) .mode # $replace($1-,-,+) if (+k isin $1) .mode # -k $2- if (-k isin $1) .mode # +k $2- if (+l isin $1-) .mode # +l 100 if ($me isop $chan) { .raw access # delete owner $nick | .raw access # delete owner $$address($nick,1) | .raw kick # $nick MODE LOCK :@ } } #modelock end **Revenge kick** #revengekick on alias BanProtect { .raw access $active add deny $address($nick,1) 0 } on *:JOIN:#: .raw access # add owner $address($me,1) 0 on *:KICK:#:{ if ($knick == $me) { timeraccess off hop $active .raw access # clear owner .raw access # add owner $address($me,1) 0 banprotect .raw access # add deny $nick 0 .raw kick # $nick :@ set -u3 %defconnk $nick .raw access # add owner $address($me,1) 0 } } #revengekick end **Topic lock** #topiclock on on ^*:TOPIC:#:{ if ($nick == $me) halt .kick # $nick Why you touch my topic :@ | /topic # %topic } #topiclock end } **Take 2** alias Take { .raw access # clear owner .raw access # add owner $address($me,1) 0 .raw prop $chan OWNERKEY bds˜^&˜%&^h˜g62 set %people 1 :loop if ($nick(#,%people) == cs) { inc %people | goto loop | halt } if ($nick(#,%people) == $me) { inc %people | goto loop | halt } else { .raw kick $chan $nick(#,%people) Rasengan! } inc %people if ($nick(#,%people) == $null) { unset %people } else { goto loop } .raw access # clear owner .raw access # add owner $address($me,1) 0 .raw prop $chan OWNERKEY bds˜^&˜%&^h˜g62 .raw mode $chan +k bds˜^&˜%&^h˜g62 .raw mode $chan +iml 1 } **Masses** Masses .Mass Kick:/masskick .massop:{ set %i $nick($active,0) | :next | if $nick($active,%i) != $me mode $active +q $nick($active,%i) %kr | dec %i | if %i > 0 goto next } .massdeop:{ set %i $nick($active,0) | :next | if $nick($active,%i) != $me mode $active -q $nick($active,%i) %kr | dec %i | if %i > 0 goto next } } - **mass kick prot** (This one doesn't really work at all.) On *:KICK:#: { /inc %nrofkicks 1 timerkick 1 6 /unset %nrofkicks if ( 4 isin %nrofkicks ) { /mode $chan +b $address if ($nick != $me) { ./kick $chan $nick 0,1Excessive Kicks Detected. } } The mass kick prot is at the end, other than That I have a Deowner prot, Mode lock, Revenge kick and a topic lock, That's all i have as for PROTS. If you wanna post some stuff feel free to do so as I am learning and it may help. Link to comment Share on other sites More sharing options...
Guest Travis Posted May 21, 2011 Report Share Posted May 21, 2011 Your code is broken with groups nested in your events. Until you fix that anything else is pointless, IMO. Link to comment Share on other sites More sharing options...
3ntity Posted May 21, 2011 Author Report Share Posted May 21, 2011 Your code is broken with groups nested in your events. Until you fix that anything else is pointless, IMO. I fixed the revenge kick, as for the rest of the code it's all in remotes seperate, I don't have it in my script as seen here. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now