on $*:text:/^[.!](setpcw|setworld|change)/si:#rspc,#rspc-staff: {
if ($nick !isreg $chan) && (%pc != $null) {
if ($chan == #rspc-staff) {
set %pcw $2
set %pcnick God
msg #rspc The world has been updated to %pcw by %pcnick $+ .
msg #rspc-staff The world has been updated to %pcw by %pcnick $+ .
.timerrspc 0 20 msg #rspc The current world is %pcw $+ , set by %pcnick $+ .
}
else {
set %pcw $2
set %pcnick $nick
msg #rspc The world has been updated to %pcw by %pcnick $+ .
msg #rspc-staff The world has been updated to %pcw by %pcnick $+ .
.timerrspc 0 20 msg #rspc The current world is %pcw $+ , set by %pcnick $+ .
}
}
}
on *:text:.off*:#rspc,#rspc-staff: {
if ($nick isop $chan) || ($nick ishop $chan) {
pc off
msg $chan pc scripts are now disabled
}
}
on *:text:.on*:#rspc,#rspc-staff: {
if ($nick isop $chan) || ($nick ishop $chan) {
pc on
msg $chan pc scripts are now enabled
}
}
alias pc {
if ($1 == on) {
set %pc 1
echo -a pc scripts are now enabled
}
elseif ($1 == off) {
unset %pc
.timerrspc off
echo -a pc scripts are now disabled
}
else {
echo -a i can only do on and off..
}
}