mIRC Home    About    Download    Register    News    Help

Print Thread
#231626 25/04/11 08:37 PM
Joined: Apr 2011
Posts: 11
K
KBN Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Apr 2011
Posts: 11
So i tried something like this i turned my slap script into a ontext script...

Code:
on *:text:...*:#TheBotNet: {
  if ($me isin $1-) {
    if !%flood {
      inc -u220 %flood
      set %slap $rand(1,7)
      if (%slap == 1) msg $chan [Random message]
      if (%slap == 2) msg $chan [Random message]
      if (%slap == 3) msg $chan [Random message]
      if (%slap == 4) msg $chan [Random message]
      if (%slap == 5) msg $chan [Random message]
      if (%slap == 6) msg $chan [Random message]
      if (%slap == 7) msg $chan [Random message]  

    }
  }


and when someone said "..." it would disconnect me and open a new network and connect to it.

but what i want to do is, like

13:32:33: <User> ...
13:32:38: <&bot> [(random nick on channel) takes his pants off ]

But i dont know how to a get a random $nick in the channel to be said.

get what im saying? thanks!!!

Last edited by KBN; 25/04/11 08:37 PM.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Random nick:

Code:
$nick($chan,$rand(1,$nick($chan,0)))


Random "regular" nick (not op, voice, etc):

Code:
$nick($chan,$rand(1,$nick($chan,0,r)),r)


For more information:

/help $nick


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard