L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 12:22:42 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Multi Winner Raffle
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Multi Winner Raffle  (Read 926 times)
0 Members and 1 Guest are viewing this topic.
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Multi Winner Raffle
« on: August 29, 2006, 10:13:38 AM »

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. Smiley

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. Cheesy
« Last Edit: March 23, 2007, 10:06:56 PM by Glarawyn » Logged
Metaphblade
Rookie
**
Offline Offline

Posts: 49


Re: Multi Winner Raffle
« Reply #1 on: February 01, 2007, 04: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
Logged
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Multi Winner Raffle
« Reply #2 on: February 01, 2007, 09:21:25 AM »

In the process_command function, change the check_security parameter from TRAINEE to MEMBER.
Logged

Eternalist
General of The Syndicate
Metaphblade
Rookie
**
Offline Offline

Posts: 49


Re: Multi Winner Raffle
« Reply #3 on: February 02, 2007, 02:22:09 AM »

the only areas with that are located in this sections, and i have like 4 of them.

Code:
$this -> process_command($name, $msg);
Logged
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Re: Multi Winner Raffle
« Reply #4 on: February 02, 2007, 09:49:23 AM »

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. 
Logged
Metaphblade
Rookie
**
Offline Offline

Posts: 49


Re: Multi Winner Raffle
« Reply #5 on: February 02, 2007, 11:05:54 AM »

thanks for that  Smiley

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
Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: Multi Winner Raffle
« Reply #6 on: February 11, 2007, 06:59:13 PM »

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. Smiley
Logged

Luuv  Bot-Keeper of Vengeance ^^*
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Re: Multi Winner Raffle
« Reply #7 on: March 23, 2007, 10:08:34 PM »

Quote from: pusikas on February 11, 2007, 06:59:13 PM
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. Smiley

Updated to fix this.

Also, the entrant order is now shuffled before winners are picked.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Multi Winner Raffle
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[November 21, 2008, 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 18
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 4
Guests: 19
Total: 23
xlDanek
Temar
Stealth
gerborg

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.297 seconds with 29 queries. (Pretty URLs adds 0.034s, 4q)
Loading...