just a simple topic changer and viewer dialog...remember the channel topic only holds so many characters so if you cant set the topic properly it is not the scripts fault is just the topic has a limit :D
dialog Topic_Changer {
title "Evil-Klowns Topic Changer"
size -1 -1 400 65
option dbu
edit $chan($active).topic, 1, 5 10 390 30, multi autovs
button set, 2, 140 45 40 12, ok
button cancel, 3, 185 45 40 12, cancel
}
on *:dialog:Topic_Changer:sclick:2:{
if ($did(topic_changer,1)) {
var %count 1
var %topic
while (%count <= $did(topic_changer,1).lines) {
var %topic %topic $did(topic_changer,1, [ %count ])
inc %count
}
topic $chan($active) %topic
}
}
alias tpc { dialog -m Topic_Changer Topic_Changer }