I need a AOP System for my script please.
A TG007 community discussion started by Phenom™.
I need a AOP System for my script please.
Look around i'm sure you'll find them. If not , write the nickname you want to be in your list to a inifile .. and then when it joins $readini aop.ini ....
Pomperom
My aop system is weird...
the remote commands are like
on *:TEXT:*:#:{
if (aOP isin $level(*! $+ $ial(* $+ $nick $+ *).addr)) {
set %sU.aOP.cmd $strip($1)
if (%sU.aOP.cmd == .op) { mode $chan %sU.oplet }
}
}
for remote commands, you get the picture there -.-'
and for onjoin events, basicaly the same but
on *:JOIN:#:{
if (aOP isin $level(*! $+ $ial(* $+ $nick $+ *).addr)) {
mode $chan %sU.oplet $nick
}
}
It may be out of the picture for you transferring your script like that, but =\..that's how i'm making mine...
another idea would be like
on yourlevel:TEXT:.aop*:#:{
if ($address($nick,1) isin %aop.list) halt
else { set %aop.list %aop.list $address($nick,1) }
}
on *:JOIN:#:{
if ($address($nick,1) isin %aop.list) { mode $chan +o $nick }
}
again, might be hard to do that..but =\ lol
could of asked me on messenger chain lol.. "D-Tox"
menu Nicklist {
Aop
.Global+q
..Add:{ var %x = $$?="Reason" | writeini -n aop.ini Global $ial($$1).addr $$1 %x | echo -a GAop: "Added" $+($$1,!,$ial($$1).user) }
..Remove:{ remini -n aop.ini Globalq $ial($$1).addr $$1 | echo -a GAop: "Removed" $+($$1,!,$ial($$1).user) }
.Local+q
..Add:{ var %x = $$?="Reason" | writeini -n aop.ini $remove($replace($right($chan,-2),\b,$chr(32)),!) $ial($$1).addr $$1 %x | echo -a LAop: "Added" $+($$1,!,$ial($$1).user) }
..Remove:{ remini -n aop.ini $remove($replace($right($chan,-2),\b,$chr(32)),!) $ial($$1).addr $$1 | echo -a LAop: "Removed" $+($$1,!,$ial($$1).user) }
}
on ^*!@:JOIN:#:{
if ($ini(aop.ini,Globalq,$ial($nick).addr)) {
var %a = $readini(aop.ini,Globalq,$ial($nick).addr)
.raw mode # +q $nick
msg # GAop: $nick / $gettok(%a,1,32) Reason: $gettok(%a,2-,32)
}
if ($ini(aop.ini,$remove($replace($right($chan,-2),\b,$chr(32)),!),$ial($nick).addr)) {
var %a = $readini(aop.ini,$remove($replace($right($chan,-2),\b,$chr(32)),!),$ial($nick).addr)
.raw mode # +q $nick
msg # LAop: $nick / $gettok(%a,1,32) Reason: $gettok(%a,2-,32)
}
}
Might not work, just test it .. should do .. =)
Sign in to reply or start a new topic where your account has permission.