mIRC Home    About    Download    Register    News    Help

Print Thread
#149271 15/05/06 09:57 PM
Joined: Oct 2005
Posts: 54
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
Code:
   on *:TEXT:!op*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +o $2
}

on *:TEXT:!halfop*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +h $2
}
on *:TEXT:!dehalfop*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan -h $2
}
on *:TEXT:!deop*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan -o $2
}
on *:TEXT:!ban*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +b $2 $+ !*@*
}
on *:TEXT:!unban*:#:{
  if ($nick !isop $chan) { halt }
  mode $chan -b $2 $+ !*@*
}
on *:TEXT:!kick*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  kick $chan $2
}
on *:TEXT:!kickban*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +b $+ !*@*
  kick $chan $nick $2
}
on *:TEXT:!devoice*:#: { //mode $chan -v $2 }
}
on *:TEXT:!voice*:#: { //mode $chan +v $2 }
}
 


the voice and devoice command wont work i need help please

Last edited by bojak71730; 15/05/06 09:58 PM.
#149272 15/05/06 10:21 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
Ok, first of all, Im wondering if you have the proper amount of { and } because the first line of the first script code is indented (however you say it works so I'll believe you). next:


on *:TEXT:!devoice*:#: { //mode $chan -v $2 }

}

on *:TEXT:!voice*:#: { //mode $chan +v $2 }

}


THose two extra brackets (unless there's more code there) are useless and will certainly make the ON VOICE not work. Try:

on *:TEXT:!devoice*:#: { //mode $chan -v $2 }
on *:TEXT:!voice*:#: { //mode $chan +v $2 }

See if those two work. If they dont, can I ask if you're opped at the time they try this?


Those who fail history are doomed to repeat it
#149273 15/05/06 10:27 PM
Joined: Oct 2005
Posts: 54
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
Code:
on *:TEXT:!op*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +o $2
}

on *:TEXT:!halfop*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +h $2
}
on *:TEXT:!dehalfop*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan -h $2
}
on *:TEXT:!deop*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
mode $chan -o $2
}
on *:TEXT:!ban*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +b $2 $+ !*@*
}
on *:TEXT:!unban*:#:{
  if ($nick !isop $chan) { halt }
  mode $chan -b $2 $+ !*@*
}
on *:TEXT:!kick*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  kick $chan $2
}
on *:TEXT:!kickban*:#:{
  if ($nick !isop $chan) { halt }
  if ($2 !ison $chan) { halt }
  mode $chan +b $+ !*@*
  kick $chan $nick $2
}
on *:TEXT:!devoice*:#: { //mode $chan -v $2 }
on *:TEXT:!voice*:#: { //mode $chan +v $2 }
}


still doesnt work and yes im opped

#149274 15/05/06 10:43 PM
Joined: Oct 2005
Posts: 54
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
nvm i figured out the problem thanks alot

#149275 16/05/06 12:41 AM
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
you may want to change your code to a ctcp or msg or notice script or some other kind of script becuase a script like that would make it so easy for others to access the same commands and take over a channel




Intelligence: It's better to ask a stupid question, then to prove it by not asking....

Link Copied to Clipboard