I tried to get the old msn script topic locks to work in oa but they wont, is it possible to make one that works?
A TG007 community discussion started by mythicaldeath.
I tried to get the old msn script topic locks to work in oa but they wont, is it possible to make one that works?
#autotopiclock off
on @*:TOPIC:#: {
if (admin isin $level($address($nick,6))) halt
if (ownerlevel isin $level($address($nick,6))) halt
if ((%rona iswm $chan) && ($nick != $me) && ($nick !isowner $active)) {
timer.topicprot 1 1 sockwrite -tn msn.server. $+ $cid access $!msn.get($cid,fullroom) clear voice $lf access $!msn.get($cid,fullroom) clear host z$lf access $!msn.get($cid,fullroom) delete deny *!*@* $lf access $!msn.get($cid,fullroom) add deny *! $+ $gettok($ial($nick,1),-1,33) 1 $lf kick $!msn.get($cid,fullroom) $nick :Don't touch the topic (1 min ban) $lf topic $!msn.get($cid,fullroom) : $+ %topiclck
}
}
#autotopiclock end
Your using msn.server sockwrites, which oa probably doesn't have.
oasiz connection provided by oasiz chat, I got it off the forum there, anyone know how to set up a topic lock for me? lol.
This is a "complete" general code. If this doesn't ban the way you want, you will need to change the "mode +b $address($nick,6)" line, to what is appropriate to your server. Hopefully this gets you off on the right path.
#autotopiclock on
on @!*:TOPIC:#: {
if (admin isin $level($address($nick,6)) || ownerlevel isin $level($address($nick,6)) || $nick isowner $chan) halt
mode +b $address($nick,6)
kick $chan $nick Don't change the topic
}
#autotopiclock end
Sign in to reply or start a new topic where your account has permission.