mIRC Home    About    Download    Register    News    Help

Print Thread
Help on GAG Script #140800 29/01/06 08:33 PM
Joined: Jan 2006
Posts: 4
S
Scorchdragon Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jan 2006
Posts: 4
Code:
 on *:TEXT:Gag*:#woot: { if ($nick == Blademan-2 && $nick isop #woot && $2 ison #woot) { mode #woot -v $2 } { mode #woot +b ~q:$2 | msg #woot No talking for you $2  } }
 


Can someone help me fix it so when for example i say Gag Unknown3249342 it'll ban that person's ip without kicking them or whatever

Thanks
Scorchdragon

Re: Help on GAG Script #140801 29/01/06 09:17 PM
Joined: Nov 2005
Posts: 105
D
drc4 Offline
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
Try something like
Code:
on @*:TEXT:Gag*:#woot: if ($nick == Blademan-2) { mode #woot -v $2 | mode #woot +b $address( $+ $2 $+ ,2) | /msg $woot No talking for you $2 $+ . }

Just ensure this is loaded in an instant of mIRC. Not the same instance that you're using to chat with.

Re: Help on GAG Script #140802 29/01/06 09:23 PM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Code:
on @*:TEXT:Gag *:#woot:{
  if ($2 ison $chan) {
    if ($2 isop $chan) mode $chan -o $2
    if ($2 isvoice $chan) mode $chan -v $2
    mode $chan +b $address($2,2)
    msg $chan No talking for you $2
  }
}

Re: Help on GAG Script #140803 29/01/06 10:01 PM
Joined: Jan 2006
Posts: 4
S
Scorchdragon Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jan 2006
Posts: 4
Ty very much guys, i got it to work

Re: Help on GAG Script #140804 30/01/06 08:24 PM
Joined: Jan 2006
Posts: 4
S
Scorchdragon Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jan 2006
Posts: 4
Sorry about double post guys..
But
I want it so it GAGS them for example

if i said gag unknown2839482
it would do this mode
/mode #woot +b~q:(ipadresshere)

Thanks again

Re: Help on GAG Script #140805 30/01/06 11:43 PM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
That's what the code does. It's not always possible to obtain an ip of an user. What if they have a hostmask that is unresolvable? In that case, the command isn't going to work. Not to mention trying to dns the hostmask to an IP can often take several seconds, by that time they may have already left the channel.

Re: Help on GAG Script #140806 31/01/06 09:43 PM
Joined: Jan 2006
Posts: 4
S
Scorchdragon Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jan 2006
Posts: 4
Oh, ok thanks smile