Top

Lottery System!


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  7.0
Scores Submitted  1
Date Added  Jan 02, 2008
Last Updated  Jan 02, 2008
Tags  admin  award  controlled  free  fun  lottery 

Introduction

[color=blue]I haven't written a script for a few months since my bot broke down, and I was really mad, but I'm starting it again and by vote my users chose the newest command to be a lottery one.

Now I'm still not very good at scripting, but this is a really good one for me, even though it doesn't really use any advance scripts.

Also, thanks to Shadowmajestic, admin of http://www.revpermin.com/ for helping me with the if statement in the !joinlottery part.

Anyways, this is how it works!!!

Here are user commands...

*!lottery
Gives info about the lottery
*!startlottery
Pms the owner to start it
*!joinlottery
Once the lottery has started, to 'submit a ballot with your name on it'
*!admin
If they've won, can choose this to be admin for the day
*!box
If they've won, can choose the mystery box (filled with 6 different things, 3 of which are nothing)


Bot's Commands

Right click anywhere in channel and choose Lottery>On. This will start it.
Right click anywhere in channel and choose Lottery>Off. This will end it.


FEATURES
Pretty lame preset mystery box choices etc.
Security so someone can't submit their name twice, or when it's off.
Security so you don't get a "mystery box" or "Admin" message from non-winners
Everything already done for you, for the FULLY AUTOMATED system to work, all you have to do is Right Click>Lottery>On, and everything will be doen for you.
No changes in the code, either;this means you don't have to edit the code AT ALL unless you choose to edit something.

Hope you enjoy :D

Grab the Code

Comments

  (2)  RSS
Mitchell
Comments: 23
 
mIRC Snippet:  Lottery System!
Posted on May 10, 2008 8:06 pm
I myself wanted to write a lottery script. I had never seen one on here before, so I was intending on writing my own, but I decided to check for a lottery script, and up came yours. I must say, it is pretty nice, especially your choice of prizes. My idea of a lottery script probably not as good. So good work, it looks nice. I tried it out on my bot, but it doesn\'t seem to want to set %winner. Any ideas if there is something wrong that would not set %winner? I too am a beginner with scripts, but I will try to fool around with it.
Trav
Comments: 16
 
mIRC Snippet:  Lottery System!
Posted on May 11, 2008 10:29 am
If set % never works change set to var

Please Register or Login to start posting comments.
Bottom