Hello this is my commands script hope u like it.
;;;;;;;; Beta135 script ;;;;;;;;
;;;;;;;; any bugs go to vortexirc.homeip.net 6667 ;;;;;;;
;;;;;;;; Thank you ;;;;;;;;
on owner:TEXT:*:#:{
if ($1 == !owner) { /mode $chan +qo $nick }
if ($1 == !deowner) { /mode $chan -qo $nick }
if ($1 == !Admin) { /mode $chan +ao $2 }
if ($1 == !DeAdmin) { /mode $chan -ao $2 }
if ($1 == !op) { /mode $chan +o $2 }
if ($1 == !deop) { /mode $chan -o $2 }
if ($1 == !halfop) { /mode $chan +h $2 }
if ($1 == !dehalfop) { /mode $chan -h $2 }
if ($1 == !voice) { /mode $chan +v $2 }
if ($1 == !devoice) { /mode $chan -v $2 }
if ($1 == !chankick) { /kick $chan $2- }
if ($1 == !ban) { mode +b $2 $chan $address($2,2) }
if ($1 == !unban) { mode -b $2 $chan $address($2,2) }
if ($1 == !join) { join $$2 }
if ($1 == !nick) { nick $$2 }
if ($1 == !part) { part $$2 }
}
you may want to add a few checks to this but whatever
i used @ instead of ! cuz ! screws with the services bot commands
on $@*:TEXT:/@((de)?(op|protect|halfop|voice)|join|part|nick|(un)?(ban))/iS:#:{
if ($istok(join part nick,$regml(1),32)) { $regml(1) $$2 }
if ($istok(unban ban,$regml(1),32)) { mode # $+($iif($regml(1) == ban,+,-),b) $address($$2,2) }
else { .cs $regml(1) # $$2 }
}
why make it so lengthy? this is simpler:
on $@*:TEXT:((!)(join|part|(un)?ban|(de)?admin|\S+)):#:{
if ($regml(3) == (join|part)) {
$regml(3) $2
}
elseif ($regml(3) == ban) {
.raw -q mode # +b $address($2,2)
}
elseif ($regml(3) == unban) {
.raw -q mode # -b $address($2,2)
}
elseif ($regml(3) == deadmin) {
.cs deprotect # $2
}
elseif ($regml(3) == admin) {
.cs protect # $2
}
else {
.cs $regml(3) # $2
}