Top

Winner Script


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  5.0 (of 1 scores)
Date Added  Oct 31, 2009
Last Updated  Oct 31, 2009
Tags  channel  chat  choose  from  one  person  randomly  script  winner 

Introduction

This is a simple !winner script that picks one person from the channel randomly and gives the result... if you want to integrate it into the topic please see my other script (IRC Bot Topic System) :)

To use: Just say !winner

Example:
<%JohnSmith> !winner
<@uBot> The winner is Joe! Congrats Joe!

Enjoy!

Grab the Code

on *:text:!winner:#: {
 
  set %nick1 $nick($chan,$rand(1,$nick($chan,0)))
 
  if (%nick1 == $me) { set %nick1 $nick($chan,$rand(1,$nick($chan,0))) }
 
  msg $chan The winner is %nick1 $+ ! Congrats %nick1 $+ ! :-)
 
}

Comments

  (1)  RSS
Grant-
Comments: 91
 
mIRC Snippet:  Winner Script
Posted on Oct 31, 2009 2:10 pm
Code:
on $*:text:/^[@.!]winner$/Si:#:{
  :loop
  var %x $nick($chan,$r(1,$nick($chan,0)))
  if ($me == %x) { goto loop }
  msg $chan The winner is %x $+ ! Congrats %x $+ ! :-)
}

:D

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom