Top

Comments

  (54)  RSS
Trav's
Kirby
Comments: 18
 
mIRC Snippet:  Lottery System!
Posted on Oct 2, 2008 11:02 pm
Also, you're missing a bracket on !admin and for !box, something's wrong there.
Kirby
Comments: 18
 
mIRC Snippet:  Lottery System!
Posted on Oct 2, 2008 11:01 pm
Hey there, I like your script. xD

However, it messages to the user 'Congratulations' and not the %winner.

So instead of:
Quote:
timer 1 305 msg %winner Congratulations, %winner -you have won the lottery!

use:
Quote:
timer 1 305 //msg %winner Congratulations, %winner - you have won the lottery!


Two slashes recognizes $'s and vars.
Trav
Comments: 16
 
mIRC Snippet:  Lottery System!
Posted on May 11, 2008 10:29 am
If set % never works change set to var
napa182
Comments: 1,153
 
mIRC Snippet:  Guestbook
Posted on May 10, 2008 11:28 pm
the way it's set up it will read random messages
Mitchell
Comments: 23
 
mIRC Snippet:  Guestbook
Posted on May 10, 2008 8:16 pm
any way that will show all guest book messages?
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.
Gecko321
Comments: 13
 
mIRC Snippet:  Message Box
Posted on Apr 12, 2008 2:00 pm
You could also use hash tables to make it keep more than just 3 messages. You can also combine all of your on Text events to make sure there are no errors.

Code:


on *:TEXT:*:#: {
  var %Nick = $+($Nick,.Memo)
  CheckMessages $Nick
  if ($1 = !Read) {
    if ($Hget(%Nick,Total) > 0) {
      .msg $nick You have $v1 Messages.
      var %a = 0
      While (%a != $Hget(%Nick,Total)) {
        inc %a
        .msg $Nick $HGet(%Nick,%a)
      }
    }
  }
  elseif ($1 = !msg) { .notice $nick To send a message to someone,  type !send name message you want to send! }
  elseif ($1 = !Send) {
    if (!$HGet(%Nick)) { .hmake $Nick }
    if (!$Hget(%Nick,Total)) { .hadd -m %Nick Total 0 }
    .hinc %Nick Total 1
    .hadd %Nick $HGet(%Nick,Total) $3- -From $Nick @ $Time in $Chan
    .notice $nick Your message to $2 has been sent! When they get back, they will receive the message!
  }
  if ($1 = !Clear) { .hdel %Nick }
}

on *:JOIN:#:CheckMessages $Nick

alias CheckMessages {
  if ($Hget($+($2,.Memo),Total)) > 0) {
    .notice $2 You have unread messages! To read them type !read or you can type !msg to send a message!
  }
}
Jamiie
Comments: 140
 
mIRC Snippet:  Message Box
Posted on Apr 12, 2008 10:08 am
Sorry for the double post, meant 3/10
Jamiie
Comments: 140
 
mIRC Snippet:  Message Box
Posted on Apr 12, 2008 10:07 am
I don't really see the point of this snippet, why not use memo's?


2/10
Joshuaxiong1
Comments: 91
 
mIRC Snippet:  Crazy Text
Posted on Dec 14, 2007 10:23 pm
Haha
Joshuaxiong1
Comments: 91
 
mIRC Snippet:  Single Person Blacklist
Posted on Oct 8, 2007 2:27 am
What kind of blacklist is this? Scrored below
mountaindew
Comments: 1,645
 
mIRC Snippet:  Guestbook
Posted on Sep 17, 2007 3:32 pm
Code:

on *:text:*:#:{
  if ($1 == !guestbook) {
    .timer 1 1 notice $nick 12Guestbook-4Type 12!Addgb (yourtexthere)4 to write a message in the guestbook!
    .timer 1 2 notice $nick 4Type 12!Readgb4 to read a random message!
  }
  if ($1 == !addgb && $2) write guestbook.txt $2- < Added by $nick > === Random guestbook message
  if ($1 == !readgb) msg $chan $read(guestbook.txt) 
}

ermansanidhya
Comments: 43
 
mIRC Snippet:  Guestbook
Posted on Sep 17, 2007 5:39 am
very simple i like it Lol:)
ZapMan
Comments: 2
 
mIRC Snippet:  Runescape Fact
Posted on Aug 24, 2007 10:34 pm
I don't understand how to add it.

Trav Posted: Aug 17, 2007 8:28 am

--------------------------------------------------------------------------------

@Sooth it's simple when you type /write rsfact.txt and cut/paste all the facts into it, when someone types !rsfact it'll read a random one from that file!


what do we paste it into?
Trav
Comments: 16
 
mIRC Snippet:  Single Person Blacklist
Posted on Aug 17, 2007 8:33 pm
I had to go soz I'll get back on now
Anti
Comments: 305
 
mIRC Snippet:  Single Person Blacklist
Posted on Aug 17, 2007 8:13 pm
where are you only realbot is on...
Trav
Comments: 16
 
mIRC Snippet:  Single Person Blacklist
Posted on Aug 17, 2007 8:02 pm
I only hang out at swiftirc.fl.us.swiftirc.net do a /whois for [Trav] and Realbot is my bot :D
Anti
Comments: 305
 
mIRC Snippet:  Single Person Blacklist
Posted on Aug 17, 2007 6:30 pm
D: where can i find you at trav.. me and napa are at irc.dejatoons.net #Script0rz :P
Trav
Comments: 16
 
mIRC Snippet:  Single Person Blacklist
Posted on Aug 17, 2007 6:28 pm
Well I'm in a situation where I'm in a channel I wanna be in but im not hop/op
napa182
Comments: 1,153
 
mIRC Snippet:  Single Person Blacklist
Posted on Aug 17, 2007 6:27 pm
Oh and nice script
1 2 3 Next
Bottom