Skip to Content
ModulesActivities and rewards

Daily bonus

DailyBonus module: a reward once a day, a streak calendar with growing prizes, freezes for missed days and protection against farming from one address.

A player takes a reward once a day, and consecutive days move them along a calendar where later days give more. A freeze covers a missed day; without one the streak steps back or starts over, whichever you choose. The bonus can be taken on the site, from the account menu, in the bot and from the game menu on a server.

The Daily bonus page with the streak scene and the reward calendar
DependenciesGamesPermissionsStudio blocksBot commandsCron tasks
Flute 2.0, the Rewards module; optionally Quests and Migrationany; the in-game button works through GameLinkadmin.dailybonus, admin.dailybonus.view, admin.dailybonus.adjust, admin.dailybonus.block"Daily bonus" (dailybonus.bonus)/bonus — "Claim the daily bonus""Daily bonus: streak reminder", hourly

Where the module shows up

PlaceWhat is there
/bonusthe "Daily bonus" page: the streak scene, the calendar, the rules, "My recent rewards" and "The longest streaks now"
Account menua "Daily bonus" item with a counter while today's bonus is not taken
Profile overviewthe calendar and the "Take the bonus" button, only the profile owner sees them
Player mini profilea "Streak" line from a two-day streak
Studiothe "Daily bonus" block with the "Streak scene" and "Full calendar" variants
AdminDaily bonusthe reward calendar, the cycle rules and the conditions, at /admin/daily-bonus
Player card in the adminthe "Daily bonus" tab and actions on the player
Game menu on the servera "Claim the daily bonus" item

Installation and first setup

Install the module from the marketplace; Rewards comes with it. After installation the bonus is off and the cycle has seven days with no rewards: the site gives no bonus until every day has one.

Set the rewards of the days

Open AdminDaily bonus. In "Rewards by day", click a day and pick a reward in "What the day gives", for example "Site coins" or "Balance top-up". A day with no reward is not saved.

Check the status line

The line above the calendar says whether the bonus is given. While some days have no reward, it reads "The bonus is on but is not given" with the numbers of those days.

Turn the bonus on

Press "Turn on bonus" in the status line or turn on "Bonus is on" in the module settings. The menu item, the page and the profile block appear for players at once.

The Daily bonus admin screen with the Rewards by day, Cycle rules and Who may take the bonus blocks

A week with a big reward on day seven

The plan: for six days a player gets 50 coins, on day seven VIP on the server for 3 days, then the cycle starts again.

Set the cycle length

In "Cycle rules", keep "Days in the cycle" at 7. A cycle is 1 to 60 days long: new days take the reward of the last one, the cut ones are deleted.

Fill days 1 to 6

Click "Day 1" and add a "Site coins" reward with "Quantity" 50. Repeat for days 2 to 6.

Fill day seven

In "Day 7", pick "Server group by name", type vip in "Group on the server" and set "Term" to 3 days. This reward goes to a game server, and the player picks the server in the inventory.

Choose what follows day seven

"After the last day of the cycle": "Start the cycle again" sends the player back to day one while the streak keeps growing. "Repeat the last day" gives the day-seven reward every day after.

The Day 7 window with a Server group by name reward

Rewards that need no choice reach the player at once. A reward with a server choice or a "Price when sold from the inventory" waits in the inventory for "Days a reward waits", 7 by default.

Streaks and missed days

A new bonus day starts at "Hour a new day starts" in the "Time zone of the bonus day". If a player missed days, the site looks at freezes first: they are spent only when there are enough to cover every missed day, monthly ones first, then those given by hand.

If there are not enough freezes, "When a day is missed" applies:

OptionWhat happens to the streak
"Step back"the streak loses as many days as "Days to step back", but never falls below day one
"Start over"the count starts again from day one
"Lose nothing"the miss is forgiven, the player goes on from the same day

Players see these rules on the bonus page in the "Streak and missed days" block. At 19:00 in the bonus time zone, players with a streak of two days or more who have not taken the bonus yet get the "Your streak ends today" notice. Notification texts are edited in Notifications.

Stopping farming

Limit accounts per address

In the module settings, "Accounts per address a day" is 3 by default. A fourth account from the same IP gets "Other accounts have already taken today's bonus from this address."

Set conditions

On the bonus screen, add up to eight conditions in "Who may take the bonus", for example "Age of the account" with "Not younger than, days" 7, or "A game account is linked". An empty block lets any player in.

Close access for an abuser

Open the player in AdminPlayers: the "Daily bonus" tab shows "Same address in 30 days". The "Close access to the bonus" action with "For how long" and "Reason" closes the bonus for a day, a week, 30 days or for ever.

The Daily bonus tab in the player card

In the same place, "Correct the bonus streak" sets the streak by hand, and "Give streak freezes" adds freezes on top of the monthly ones. Each action needs a reason and is written to the journal.

Rewards are handed out by the Rewards module: every grant lands in its "Grants" log, and whatever did not reach the game is retried by the site. If Quests is installed, DailyBonus adds the "Daily bonus: bonuses taken" (daily.claims) and "Daily bonus: length of the streak" (daily.streak) metrics to the "What is counted" field, so you can build a quest such as "take the bonus 5 times this week". Without Quests the module works the same, the metrics are just missing from the list.

With the Migration module, the LR Web transfer wizard gets a "Daily bonus streaks" step. It carries over live streaks of the Neo template's daily cards. A streak that already ended on the old site, and a player whose streak here is not shorter, are skipped.

Game servers

On servers with the GameLink plugin, the game menu has a "Claim the daily bonus" item. The player presses it in the game and sees "Bonus claimed" with the list of rewards, or the time until the next bonus if today's is taken. The item works while "Button in the game menu" is on. How to install the plugin is covered in connecting a server.

Settings

The "Settings" button in the header of AdminDaily bonus, at /admin/modules/DailyBonus/settings.

FieldWhat it changesDefault
"Bonus is on"players can take the bonusoff
"Bonus page"a page of its own; without it the bonus is taken from the account menu and the profileon
"Section address"the page addressbonus
"Time zone of the bonus day"the zone of the bonus day and the remindersame as the site
"Hour a new day starts"from this hour the bonus can be taken again00:00
"When a day is missed""Step back", "Start over" or "Lose nothing""Step back"
"Days to step back"1 to 3653
"Freezes per month"missed days forgiven per calendar month, up to 311
"Accounts per address a day"0 means no limit3
"Days a reward waits"how long a reward with a choice waits in the inventory, 0 for ever7

"Days in the cycle", "After the last day of the cycle" and "When a day is missed" also sit in the "Cycle rules" block on the bonus screen; they are the same settings.

Permissions

PermissionWhat it gives
admin.dailybonusthe bonus screen: the cycle, the conditions and the settings; includes the other three
admin.dailybonus.viewthe "Daily bonus" tab in the player card
admin.dailybonus.adjust"Correct the bonus streak" and "Give streak freezes"
admin.dailybonus.block"Close access to the bonus" and "Open access to the bonus"

For developers

The module grants rewards through Rewards\Services\Grants::grantMany() with the dailybonus source, one grant set per player and day. Events: flute.daily.claimed (DailyBonusClaimed: player, day, streak, cycle day) and flute.daily.streak_broken (DailyStreakBroken). The daily.claimed webhook, "A player took the daily bonus", is set up in Webhooks. Metrics for Quests: daily.claims (adds one per bonus) and daily.streak (the current streak length).

How the core side works: Events and listeners.

Troubleshooting

For any other message, use the error lookup.

The bonus is not set up yet: its days have no rewards.

Some day has no reward, or its reward type is gone from the site, for example after a game module was turned off. The status line on the bonus screen names those days. Give them a reward again.

Take the bonus on the site.

The bot answers this when "Accounts per address a day" is on and the site does not know the player's address yet. The player needs to visit the site once, after that the bot gives the bonus.

MessageWhat to do
"The daily bonus is switched off for now."turn on "Bonus is on"
"Other accounts have already taken today's bonus from this address."raise "Accounts per address a day" or set it to 0
"Access to the bonus is closed until …"open access with "Open access to the bonus"
"The site has no reward of the type “…”. The day was not saved."turn on the module with that reward type or pick another type
"Today's bonus is already taken."the player already took the bonus this day, the next one comes after "Hour a new day starts"
"The bonus could not be given. Try again later."check the error log

Next

On this page