Lottery: Difference between revisions
No edit summary |
No edit summary |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[Category:Custom NPCs]] | [[Category:Custom NPCs]] | ||
| Line 11: | Line 10: | ||
=== Buying Tickets === | === Buying Tickets === | ||
Players speak to the '''Lottery Master''' NPC in Prontera (147, 174) to purchase tickets for the current round. Each ticket costs | Players speak to the '''Lottery Master''' NPC in Prontera (147, 174) to purchase tickets for the current round. Each ticket costs 100,000z. A player may hold up to '''10 tickets''' per round. Tickets can be purchased one at a time or in bulk up to the remaining allowance. | ||
Zeny is deducted immediately upon confirming the purchase. If a player does not have sufficient funds, or has already reached the ticket cap, the purchase is declined. | Zeny is deducted immediately upon confirming the purchase. If a player does not have sufficient funds, or has already reached the ticket cap, the purchase is declined. | ||
=== The Draw === | === The Draw === | ||
A draw is performed automatically on a scheduled interval ( | A draw is performed automatically on a scheduled interval (every '''7 days'''). At draw time the script: | ||
# Totals all tickets sold in the current round. | # Totals all tickets sold in the current round. | ||
# Computes the prize as a percentage of the total pool ( | # Computes the prize as a percentage of the total pool ('''95%'''). | ||
# Selects a winning ticket at random | # Selects a winning ticket at random - each ticket a player holds represents one entry, so more tickets means proportionally better odds. | ||
# | # The winner will be announced server-wide and can collect their winnings any time at the NPC. | ||
If no tickets were sold when the draw fires, the round is simply skipped and a new one begins. | If no tickets were sold when the draw fires, the round is simply skipped and a new one begins. | ||
| Line 32: | Line 30: | ||
Odds are proportional to the number of tickets held relative to the total tickets sold that round. | Odds are proportional to the number of tickets held relative to the total tickets sold that round. | ||
{| style="margin-left:2em; font-size:1.05em;" | |||
{| | |||
|- | |- | ||
| | | '''Win probability''' || = || Your tickets ÷ Total tickets sold | ||
|} | |} | ||
A player holding 5 of 50 tickets sold has a 10% chance of winning. Buying more tickets always improves odds, up to the per-player cap. | |||
Latest revision as of 09:43, 6 April 2026
The Lottery is a pool-based raffle system that allows players to purchase tickets for a chance to win a large zeny prize. Tickets are sold continuously throughout a round; at the end of each round a winner is drawn at random and awarded a percentage of the total pool.
The current jackpot is displayed as a live chatroom bubble above the NPC's head, updated after every purchase and every draw.
How It Works
Buying Tickets
Players speak to the Lottery Master NPC in Prontera (147, 174) to purchase tickets for the current round. Each ticket costs 100,000z. A player may hold up to 10 tickets per round. Tickets can be purchased one at a time or in bulk up to the remaining allowance.
Zeny is deducted immediately upon confirming the purchase. If a player does not have sufficient funds, or has already reached the ticket cap, the purchase is declined.
The Draw
A draw is performed automatically on a scheduled interval (every 7 days). At draw time the script:
- Totals all tickets sold in the current round.
- Computes the prize as a percentage of the total pool (95%).
- Selects a winning ticket at random - each ticket a player holds represents one entry, so more tickets means proportionally better odds.
- The winner will be announced server-wide and can collect their winnings any time at the NPC.
If no tickets were sold when the draw fires, the round is simply skipped and a new one begins.
Claiming Winnings
When a winner speaks to the Lottery Master NPC, they are shown their unclaimed prize and given the option to claim it immediately. The zeny is added directly to their character whether they are online or offline at the time of the draw. Winnings accumulate if a player wins multiple rounds before claiming.
Odds
Odds are proportional to the number of tickets held relative to the total tickets sold that round.
| Win probability | = | Your tickets ÷ Total tickets sold |
A player holding 5 of 50 tickets sold has a 10% chance of winning. Buying more tickets always improves odds, up to the per-player cap.