mIRC Home    About    Download    Register    News    Help

Print Thread
#253587 20/06/15 06:59 PM
Joined: Jun 2015
Posts: 34
C
copman Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jun 2015
Posts: 34
i need a script for giveaways like moobot dose

Joined: Jan 2004
Posts: 1,352
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,352
Better start learning how to script then.

Joined: Dec 2008
Posts: 1,513
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,513
Try to use this code: http://hawkee.com/snippet/16336/


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Feb 2015
Posts: 16
U
Pikka bird
Offline
Pikka bird
U
Joined: Feb 2015
Posts: 16
Used this and seems to work

Click to reveal..

Code:
on *:TEXT:!raffle:#: {
  if ((%floodraffle) || ($($+(%,floodraffle.,$nick),2))) { return }
  if (%open == 1) {
    write Raffle.txt $nick
    msg $chan $nick entered the raffle!
    set -u3600 %floodraffle On
    set -u3600 %floodraffle. $+ $nick On
  }
}

on *:TEXT:*:#:{
  if ($nick isop #) {
    if ($1 == !raffle) {
      if ($2 == open) {
        msg $chan /me RAFFLE STARTED!
        set %open 1
        write -c Raffle.txt
        echo -a Raffle Started
      }
      if ($2 == close) {
        msg $chan /me RAFFLE CLOSED!
        set %open 0
        write -c Raffle.txt
        echo -a Raffle Closed
      }
    }
    if ($1 == !draw) {
      if (%open == 1) {
        var %user = $read(Raffle.txt,n)
        write -c Raffle.txt
        set %open 0
        msg $chan /me And the winner is... %user $+ !!! Well Done!
        echo -a Raffle Closed
      }
    }
  }
  if ($1 == !people) {
    if (%open == 1) {
      msg $chan There are currently $lines(Raffle.txt) users in the raffle!
    }
  }
}


Joined: Jun 2015
Posts: 34
C
copman Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jun 2015
Posts: 34
This works thanks

Joined: Apr 2014
Posts: 33
B
Ameglian cow
Offline
Ameglian cow
B
Joined: Apr 2014
Posts: 33
msg $chan /me RAFFLE STARTED!

should be /describe $chan RAFFLE Started

I use hash tables for my giveaway system instead of files.


Link Copied to Clipboard