BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.2.x Custom/Unofficial Modules => Topic started by: Glarawyn on August 29, 2006, 05:13:38 pm

Title: Multi Winner Raffle
Post by: Glarawyn on August 29, 2006, 05:13:38 pm
MRaffle-1.0.1.zip (http://zibby.isa-geek.net/bebot/MRaffle/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
Title: Re: Multi Winner Raffle
Post by: Metaphblade 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
Title: Re: Multi Winner Raffle
Post by: Malosar on February 01, 2007, 03:21:25 pm
In the process_command function, change the check_security parameter from TRAINEE to MEMBER.
Title: Re: Multi Winner Raffle
Post by: Metaphblade 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);
Title: Re: Multi Winner Raffle
Post by: Glarawyn 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. 
Title: Re: Multi Winner Raffle
Post by: Metaphblade 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
Title: Re: Multi Winner Raffle
Post by: pusikas 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. :)
Title: Re: Multi Winner Raffle
Post by: Glarawyn 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.
SimplePortal 2.3.7 © 2008-2024, SimplePortal