TWiki Home Tharsis . Design . RaffleSystem (r1.1 vs. r1.2) Tharsis webs:
Design | Guilds | Combat | Website
Design . { Home | Changes | Index | Search | Go }
 <<O>>  Difference Topic RaffleSystem (r1.2 - 09 Jun 2005 - FantoM)
Added:
>
>

Changed:
<
<

  • Multiple raffles must be supported at any time
    • Variable price per raffle
    • Different durations per raffle
    • Each raffle can have a different prize
  • More than one prize, eg, second and third place
  • No limit on the number of tickets purchasable
  • Weighting so that prior winners are less likely to win, rapidly fading.
>
>

  • DONE Multiple raffles must be supported at any time
    • DONE Variable price per raffle
    • DONE Different durations per raffle
    • DONE Each raffle can have a different prize
  • DONE More than one prize, eg, second and third place
  • DONE No limit on the number of tickets purchasable
  • DONE Weighting so that prior winners are less likely to win, rapidly fading.
Changed:
<
<

  • Ability to define a raffle as repeating, possibly with a random set of prizes
  • Prizes must be saveable as .o files due to the possibility that they are randomly configuring objects
>
>

  • DONE Ability to define a raffle as repeating, possibly with a random set of prizes
  • DONE Prizes must be saveable as .o files due to the possibility that they are randomly configuring objects

 <<O>>  Difference Topic RaffleSystem (r1.1 - 22 Feb 2005 - FantoM)
Added:
>
>

%META:TOPICINFO{author="FantoM" date="1109050080" format="1.0" version="1.1"}% %META:TOPICPARENT{name="WebHome"}%

Requirements

  • Some guy/place that sells raffle tickets
  • Multiple raffles must be supported at any time
    • Variable price per raffle
    • Different durations per raffle
    • Each raffle can have a different prize
  • More than one prize, eg, second and third place
  • No limit on the number of tickets purchasable
  • Weighting so that prior winners are less likely to win, rapidly fading.
  • Some way of redeeming a win
    • Probably don't want to have players carrying all their tickets?
      • Maybe they get one ticket per raffle, regardless of how many entries they have?
  • Ability to define a raffle as repeating, possibly with a random set of prizes
  • Prizes must be saveable as .o files due to the possibility that they are randomly configuring objects
  • Some board listing the available raffles and including details of the past winners

Possible prizes

  • super special weapon/armour that you get for 24 hours.
  • special weapon/armour that you get every logon for a week, presumably aligning with the end of the next raffle
  • non-unique but hard to get, already existing, weapon/armour that you get for 24 hours.
  • basic weapon/armour
  • money
  • exp
  • hp+gp healing potion
  • ability to set pretitle once, lasts for a week, presumably aligning with the end of the next raffle
  • ability to set title
  • torch that never runs out
  • bag of fireworks
  • 5 quest hints

Implementation

Raffle daemon

  • Mapping for storing raffles, will use multidimensional mapping instead
    • Key: raffle name
    • Value: ({ active, will repeat, cost per ticket, enddate, num_prizes, ({ possible_prizes }), ({ actual_prizes }), ([ player:num_tickets ]), ({ all winners of last run and their prize }), ({ last 5 first place winners }) })
  • At start of reboot, set call_out for 24 hours or end of raffle, whichever is earlier
  • When a raffle starts:
    • determine the actual prizes from the set of possible.
    • save the actual prize .o files and record their names in the actual prizes.
  • On completion of the raffle
    • Store the details of winners and the .o files in the winner section
    • If repeating then start again
  • On someone collecting a prize, set the .o in the winner section to blank, so they can not claim it more than once.


Topic RaffleSystem . { View | Diffs | r1.2 | > | r1.1 | More }
Revision r1.1 - 22 Feb 2005 - 05:28 GMT - FantoM
Revision r1.2 - 09 Jun 2005 - 00:36 GMT - FantoM
Copyright © 2001 by the contributing authors. All material on this collaboration tool is the property of the contributing authors.
Ideas, requests, problems regarding Tharsis? Send feedback.