mIRC Home    About    Download    Register    News    Help

Print Thread
#272983 28/11/24 10:39 PM
Joined: Apr 2005
Posts: 124
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Apr 2005
Posts: 124
alias f3 {
set %active $active
set %nick $me
if %canalk iswm %active { //mode # +o $me }
if #paranachat iswm %active { echo -a no seas garca | halt }
}

alias text {
set %canalk $addtok(%canalk,$1,44)
}

I want do when i press f3 ,detect the channel saved on the list and give me op


anyhelp?

XGamerAMD #272993 03/12/24 04:32 PM
Joined: Nov 2021
Posts: 119
Vogon poet
Offline
Vogon poet
Joined: Nov 2021
Posts: 119
try this :

Code


Alias F3 { 
  var %allchannelz = $null, %ChKchans = 1 
  while (%ChKchans <= $chan(0)) { 
   if ($me ison $chan(%ChKchans) && $chan(%ChKchans) iswm %canalk) { putmode $chan(%ChKchans) +o $me  }    
     inc %ChKchans 1 
  } 
} 


Simo #272994 04/12/24 05:57 AM
Joined: Apr 2005
Posts: 124
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Apr 2005
Posts: 124
doesnt work

XGamerAMD #272995 04/12/24 03:32 PM
Joined: Nov 2021
Posts: 119
Vogon poet
Offline
Vogon poet
Joined: Nov 2021
Posts: 119
or you could give this a try:

Code

Alias F3 {
    var %ChKchans = 1  
    while ($gettok(%canalk,%ChKchans,44)) { 
     var %chan $v1
      if ( $me ison %chan && %chan iswm %canalk ) {  mode %chan +o $me }  
      inc %ChKchans 
    }  
} 




Link Copied to Clipboard