> > |
%META:TOPICINFO{author="FantoM" date="1109050080" format="1.0" version="1.1"}%
%META:TOPICPARENT{name="WebHome"}%
- 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
- 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
- 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.
|