collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Multi Winner Raffle  (Read 4276 times)

0 Members and 1 Guest are viewing this topic.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Multi Winner Raffle
« on: August 29, 2006, 05:13:38 pm »
MRaffle-1.0.1.zip

This is the raffle module used on Campalot. In order to use it, you will need to disable the raffle module included with BeBot. It is based on the original Raffle module by Blondengy, but I don't remember how much of the code is original and how much I've replaced. :)

I've removed the admin interface for ending/announcing the raffle. Raffles last for 60 seconds, announce happens automatically every 20 seconds. The main change here is supporting multiple winners. For example:

!raffle start 10 Kyr'Ozch Data Core

This indicates that you have 10 identical items, so there will be 10 winners picked from the entrants. The module supports 1 to 20 winners. If you do not specify numer, it defaults to 1 winner.

Oh, and I've made it output really obnoxious colors. :D
« Last Edit: March 24, 2007, 04:06:56 am by Glarawyn »

Offline Metaphblade

  • BeBot User
  • **
  • Posts: 49
  • Karma: +0/-0
Re: Multi Winner Raffle
« Reply #1 on: February 01, 2007, 10:43:00 am »
is there a way for me regular org members to use this withoug having to make them raidleader?  i have tried everything i can think of to do this, and ahve just come up short and very frustrated.

right now it is telling them they have to be above trainee to use this command.

thanks.
Blade

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Multi Winner Raffle
« Reply #2 on: February 01, 2007, 03:21:25 pm »
In the process_command function, change the check_security parameter from TRAINEE to MEMBER.
Eternalist
General of The Syndicate

Offline Metaphblade

  • BeBot User
  • **
  • Posts: 49
  • Karma: +0/-0
Re: Multi Winner Raffle
« Reply #3 on: February 02, 2007, 08:22:09 am »
the only areas with that are located in this sections, and i have like 4 of them.

Code: [Select]
$this -> process_command($name, $msg);

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Multi Winner Raffle
« Reply #4 on: February 02, 2007, 03:49:23 pm »
Find function process_command($name, $msg) around Line 164.

There will be three calls of $this -> check_security($name, "TRAINEE"), just change "TRAINEE" to "MEMBER" and you're set. 

Offline Metaphblade

  • BeBot User
  • **
  • Posts: 49
  • Karma: +0/-0
Re: Multi Winner Raffle
« Reply #5 on: February 02, 2007, 05:05:54 pm »
thanks for that  :)

will probably work on a 2.x bot, which i was using when i made the post, then i upgraded to the latest trunk version, and since the admin stuff isnt working correctly, the module doesnt work either, lol.

Sorry i didnt mention this earlier.

Blade

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: Multi Winner Raffle
« Reply #6 on: February 12, 2007, 12:59:13 am »
The module just gives an empty name instead of a sane text when no one enters the raffle. Not a big deal, usually, just thought I'd mention it. :)
Luuv  Bot-Keeper of Vengeance ^^*

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Multi Winner Raffle
« Reply #7 on: March 24, 2007, 04:08:34 am »
The module just gives an empty name instead of a sane text when no one enters the raffle. Not a big deal, usually, just thought I'd mention it. :)

Updated to fix this.

Also, the entrant order is now shuffled before winners are picked.

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 274
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal