Skip to content
MSN

aOP Problems

A TG007 community discussion started by SpAzZ.

Discussion 6 posts
Page 1 of 1
Open
Topic #897 · 6 published posts · 570 views

Hey, heres my aOP.

menu menubar {
 aOP List
 .Open
 ..Global Q:run notepad qlobalq.ini
 ..System Op:run systemop.ini
}
menu nicklist {
 aOP
 .On:/enable #aop | echo $chan 12A1op14:12On.
 .Off:/disable #aop | echo $chan 12A1op14:12Off.
 .-
 .Global Q
 ..Add:var %logname $$?="Log As:" | var %logreason $$?="Reason:" | /writeini globalq.ini globalq $address($1,1) $$1 %logname %logreason | msg $chan 12a1OP14:12Global Q14:12Added for $$1 $+ 14:12Logged As14:12 $+ %lognick $+ 14:12Reason14:12 $+ %logreason  | mode $chan +q $$1
 ..Remove:remini globalq.ini globalq $address($1,1) | msg $chan 12a1OP14:12Global Q14:12Removed $$1 | mode $chan -q $$1
 ..Edit Ini:run notepad globalq.ini
 .System Op
 ..Add:var %logname $$?="Log As:" | var %logreason $$?="Reason:" | /writeini systemop.ini systemop $address($1,1) $$1 %logname %logreason | msg $chan 12a1OP14:12System Op14:12Added for $$1 $+ 14:12Logged As14:12 $+ %lognick $+ 14:12Reason14:12 $+ %logreason | mode $chan +o $$1
 ..Remove:remini systemop.ini systemop $address($1,1) | msg $chan 12a1OP14:12System Op14:12Removed $$1 | mode $chan -o
 ..Edit Ini:run notepad systemop.ini
}
#aop on
on *:join:#:{
 if ($me isop $chan) {
   if ($readini(globalq.ini, n, globalq, $address($nick,1)) != $null) {
     msg $chan 12a1OP14:12Global Q14:12Logged As14:12 $+ $gettok($readini(globalq.ini, n, globalq $adress($nick,1)),2,32) $+ 14:12Reason14:12 $+ $gettok($readini(globalq.ini, n, globalq $address($nick,1)),3,32)
     mode $chan +q $nick
   }
   if ($readini(systemop.ini, n, systemop, $address($nick,1)) != $null) {
     msg $chan 12a1OP14:12System Op14:12Logged As14:12 $+ $gettok($readini(systemop.ini, n, systemop $address($nick,1)),2,32) $+ 14:12Reason14:12 $+ $gettok($readini(systemop.ini, n, systemop $address($nick,1)),3,32)
     mode $chan +o $nick
   }
 }
}
#aop end

ok, the problem well, it works fine for one name, on version 6.03 of mIRC, but it dont on the other names, and on version 6.12 of mIRC, it done work at all. my ini file is set up like this.

[globalq]
*!*2C5CC310D@GateKeeperPassport=energize energize me :D
*!*CB1DCA641@GateKeeperPassport=SpAzZ SpAzZ me

when it joins, it shows aOP:Gloabal Q:Logged As::Reason:

thats all it does sad.gif

Thanks,

--SpAzZ--

well, i prefer this

on *:join:#:{
  if ($readini(globalq.ini, n, globalq, $address($nick,1)) != $null) {
msg $chan 12a1OP: $nick Logged As14:12 $+ $gettok($readini(systemop.ini, n, systemop $address($nick,1)),1,32) / Reason: $gettok($readini(systemop.ini, n, systemop $address($nick,1)),2-,32) 
}
}

 

and in the file, it must be like this:

[globalq]
*!*2C5CC310D@GateKeeperPassport=energize me :D

 

 

dont use much tokenze, as they deppend on spaces between words, nd they r really hard to manage

on me:*:join:#:hop #

Thanks X, but now i have a new problem, when sumbody jiins its shows there gatekeeper as the logged name, but it still doesn't show the reason.

<SpAzZ> aOP:Global q:Logged As:*!*2A1545A10@GateKeeperPassport / Reason:

--SpAzZ--

sorry ;

errrm, try dis

on *:join:#:{
 if ($readini(globalq.ini, n, globalq, $address($nick,1)) != $null) {
msg $chan 12a1OP: $nick Logged As14:12 $+ $gettok($readini(systemop.ini, n, systemop $address($nick,1)),2,32) / Reason: $gettok($readini(systemop.ini, n, systemop $address($nick,1)),3-,32) 
}
}

on me:*:join:#:hop #

Thanks an X-System, but it still dont work sad.gif . it shows up as

<SpAzZ> aOP:energize Logged As::Reason:

--SpAzZ--

k, there;

on *:join:#:{
 if ($nick != $me) {
   if ($readini(aOP.ini,adminaop,$address($nick,1)) != $null) {
     /msg $chan Found (AdmInAop) $nick Logged as: $gettok($readini(aOP.ini,adminaop,$$address($nick,1)),1,32) Reason: $gettok($readini(aOP.ini,adminaop,$$address($nick,1)),2-,32)
   }
   elseif ($readini(aOP.ini,owneraop,$address($nick,1)) != $null) {
     /msg $chan Found (GoldAop) $nick Logged as: $gettok($readini(aOP.ini,owneraop,$$address($nick,1)),1,32) Reason: $gettok($readini(aOP.ini,owneraop,$$address($nick,1)),2-,32)
   }
   elseif ($readini(aOP.ini,hostaop,$address($nick,1)) != $null) {
     /msg $chan Found (BrownAop) $nick Logged as: $gettok($readini(aOP.ini,hostaop,$$address($nick,1)),1,32) Reason: $gettok($readini(aOP.ini,hostaop,$$address($nick,1)),2-,32)
   }
 }
}

 

thats mine, from iLLuminatorâ„¢ V2

gonna be published soon 'ne wayz devil.gif

on me:*:join:#:hop #