mIRC Homepage
Posted By: copman twitch giveaways help - 20/06/15 06:59 PM
i need a script for giveaways like moobot dose
Posted By: Loki12583 Re: twitch giveaways help - 20/06/15 07:13 PM
Better start learning how to script then.
Posted By: westor Re: twitch giveaways help - 20/06/15 07:24 PM
Try to use this code: http://hawkee.com/snippet/16336/
Posted By: UnDeadPuff Re: twitch giveaways help - 20/06/15 07:36 PM
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!
    }
  }
}

Posted By: copman Re: twitch giveaways help - 20/06/15 07:54 PM
This works thanks
Posted By: bl968 Re: twitch giveaways help - 21/07/15 07:00 AM
msg $chan /me RAFFLE STARTED!

should be /describe $chan RAFFLE Started

I use hash tables for my giveaway system instead of files.
© mIRC Discussion Forums