0 Members and 1 Guest are viewing this topic.10175 views

*

Offline Niks

  • *
  • Join Date: Dec 2012
  • 689
  • Gender: Male
  • Oldschool: Niks
  • Rsn: N ik
Re: Christmas raffle
« Reply #30 on: December 23, 2015, 22:57:42 »
What's the pot at at the moment?


"Don't cry to quit! You already in pain, you already hurt! Get a reward from it!" - Eric Thomas

*

Offline Cool like Redtunnel

Re: Christmas raffle
« Reply #31 on: December 23, 2015, 23:01:39 »
What's the pot at at the moment?

Check the first post ..  [-(

*

Offline Redtunnel

  • *
  • Join Date: Sep 2011
  • 2655
  • Gender: Male
  • Awards For Capping 52 Times Won three CTS games tournaments This player has 120 in the skill: Firemaking! This player has 99 in the skill: Farming! This player has 99 in the skill: Firemaking!
  • Rsn: Redtunnel
Re: Christmas raffle
« Reply #32 on: December 24, 2015, 00:35:50 »
The script is ready. I'll post your numbers on the 25th and the drawing happens on the 26th!

Code: [Select]
<?php
header
('Content-Type: text/plain; charset=utf-8');

//Participants and number of tickets
$participants = array(
"Mini Nub" => 5,
"Justin" => 5
"Sveiks" => 5,
"Sean202" => 5,
"Ryus" => 5,
"Lipsync" => 5,
"Altys" => 5,
"eSmurfie" => 5,
"George" => 1,
"Lucie" => 5,
"Physh" => 5,
"Matty" => 1,
"PH1L" => 2,
"XaM" => 5,
"Lilly" => 5,
"Powell" => 5,
"Monochrome" => 5,
"Skill orion" => 5,
"Proud Winter" => 2,
"SheepProbe" => 5,
"Zync0nfiah" => 5
);

$max array_sum($participants)+1;

//Run this once, works for ticket count up to 255
function generateNumbers($participants$max) {

$numbers = array();
$t = array(0);
foreach($participants as $name => $tickets) {
while($tickets 0) {
$number rng($max$t);
$t[] = $number;
$numbers[$name][] = $number;
$tickets--;
}
}
return $numbers;
}

//Simply redraw if the same player gets a winning number more than once
function drawWinner($max$mask "\x7f") {
$n false;
while(!$n) { 
$byte openssl_random_pseudo_bytes(1) & $mask;
if(ord($byte) < $max && ord($byte) > 0) { $n true; }
} return ord($byte);
}

function 
rng($max$taken$mask "\x7f") {
$n false;
while(!$n) { 
$byte openssl_random_pseudo_bytes(1) & $mask;
if(ord($byte) < $max && !in_array(ord($byte), $taken)) { $n true; }
} return ord($byte);
}

$num generateNumbers($participants$max);
$out "";
foreach(
$num as $k => $v) {
$out .= $k.":";
foreach($v as $n) {
$out .= " ".$n.",";
}
$out rtrim($out",")."\n";
}

echo 
$out;

?>


You can enter the raffle up until I post the numbers on the 25th. I'll remove those who haven't paid by then as well. If I'm not online, please give the money to a staff member and tell them to pass it along to me!
"The purity of a person's heart can be measured by how they regard cats"



*

Offline Zack Son

Re: Christmas raffle
« Reply #33 on: December 25, 2015, 11:07:18 »
nice! looking good! :)

*

Offline triply

christmas
« Reply #34 on: December 25, 2015, 16:09:46 »

good luck everyone and a nice christmas  \:D/ :P

*

Offline Redtunnel

  • *
  • Join Date: Sep 2011
  • 2655
  • Gender: Male
  • Awards For Capping 52 Times Won three CTS games tournaments This player has 120 in the skill: Firemaking! This player has 99 in the skill: Farming! This player has 99 in the skill: Firemaking!
  • Rsn: Redtunnel
Re: Christmas raffle
« Reply #35 on: December 25, 2015, 21:33:33 »
I had to remove Justin and Zync0n, as I couldn't retrieve your money in time, sorry :(

Here are your numbers, drawing happens tomorrow:
Mini Nub: 54, 66, 44, 12, 62
Sveiks: 74, 13, 33, 70, 9
Sean202: 50, 37, 76, 6, 3
Ryus: 10, 14, 47, 58, 55
Lipsync: 11, 68, 8, 32, 63
Altys: 38, 24, 45, 48, 27
eSmurfie: 21, 61, 31, 39, 79
George: 51
Lucie: 52, 60, 42, 20, 22
Physh: 26, 49, 78, 17, 18
Matty: 23
PH1L: 81, 28
XaM: 41, 40, 35, 73, 25
Lilly: 53, 7, 19, 71, 1
Powell: 4, 59, 46, 16, 69
Monochrome: 57, 29, 15, 80, 34
Skill orion: 56, 36, 77, 30, 72
Proud Winter: 67, 75
SheepProbe: 64, 43, 65, 5, 2
"The purity of a person's heart can be measured by how they regard cats"



*

Offline Zack Son

Re: Christmas raffle
« Reply #36 on: December 26, 2015, 18:05:19 »
At what time is the drawing? :)

*

Offline Redtunnel

  • *
  • Join Date: Sep 2011
  • 2655
  • Gender: Male
  • Awards For Capping 52 Times Won three CTS games tournaments This player has 120 in the skill: Firemaking! This player has 99 in the skill: Farming! This player has 99 in the skill: Firemaking!
  • Rsn: Redtunnel
Re: Christmas raffle
« Reply #37 on: December 26, 2015, 19:47:13 »
9 PM UTC/GMT (game time)
"The purity of a person's heart can be measured by how they regard cats"



*

Offline Ryus

Re: Christmas raffle
« Reply #38 on: December 26, 2015, 19:47:57 »
@Redtunnel, you forgot to add SheepProbes numbers in your last post

*

Offline Redtunnel

  • *
  • Join Date: Sep 2011
  • 2655
  • Gender: Male
  • Awards For Capping 52 Times Won three CTS games tournaments This player has 120 in the skill: Firemaking! This player has 99 in the skill: Farming! This player has 99 in the skill: Firemaking!
  • Rsn: Redtunnel
Re: Christmas raffle
« Reply #39 on: December 26, 2015, 19:51:03 »
Oops, sorry, sorted it. I removed Lipsync as he left the clan. He will receive a refund whenever possible
"The purity of a person's heart can be measured by how they regard cats"



*

Offline Redtunnel

  • *
  • Join Date: Sep 2011
  • 2655
  • Gender: Male
  • Awards For Capping 52 Times Won three CTS games tournaments This player has 120 in the skill: Firemaking! This player has 99 in the skill: Farming! This player has 99 in the skill: Firemaking!
  • Rsn: Redtunnel
Re: Christmas raffle
« Reply #40 on: December 26, 2015, 21:07:56 »
3rd prize 23
2nd prize 65
1st prize 81
"The purity of a person's heart can be measured by how they regard cats"



*

Offline Sunshine Kid

Re: Christmas raffle
« Reply #41 on: December 26, 2015, 21:12:07 »
1st - PH1L (81) - 76M
2nd - SheepProbe (65) - 45.6M
3rd - Matty (23) - 30.4M





*

Offline Zack Son

Re: Christmas raffle
« Reply #42 on: December 26, 2015, 21:14:46 »
Grats winners! I thought I won for a brief moment. :( Maybe next time.

*

Offline Ryus

Re: Christmas raffle
« Reply #43 on: December 26, 2015, 21:18:18 »
Congratulations Phil! High level pvm soon ;)

Congratulations to SheepProbe and Matty spend it well!

*

Offline Danielle

Re: Christmas raffle
« Reply #44 on: December 26, 2015, 21:37:30 »
i do have nox bow and full sirenic ryus

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal