Jump to content

Hourly Rewards

From Prontera Realm Wiki
Revision as of 02:03, 26 November 2025 by AdminJOMS (talk | contribs) (Created page with "Hourly Tickets System – Feature Overview The Hourly Tickets System rewards players for active gameplay time. Unlike traditional "stay online for 1 hour" systems, this version accurately tracks active-only seconds, pauses during idle, blocks auto-attack abuse, and resumes automatically once the player becomes active again. Players earn 1 Hourly Ticket for every 3600 seconds (1 hour) of legitimate active play. Key Features Active-Only Timer - Counts only active playt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Hourly Tickets System – Feature Overview

The Hourly Tickets System rewards players for active gameplay time. Unlike traditional "stay online for 1 hour" systems, this version accurately tracks active-only seconds, pauses during idle, blocks auto-attack abuse, and resumes automatically once the player becomes active again.

Players earn 1 Hourly Ticket for every 3600 seconds (1 hour) of legitimate active play.

Key Features

Active-Only Timer - Counts only active playtime. - Idle for 10 seconds pauses the timer. - Movement resumes the timer automatically.

Auto-Attack Detection - Auto-attack stops hourly progress. - Sends a one-time warning. - Automatically resumes after auto-attack stops.

Restricted Maps - Certain maps block hourly progress, such as #mall.

Periodic Player Reminders - Sends reminders every hour if a player missed a reward due to idle or restricted map.

Auto-Resume System - Resumes after player becomes active. - Resumes after leaving restricted map. - Resumes after stopping auto-attack.

Rewards - 1 Hourly Ticket every 3600 active seconds. - Countdown continues and carries over unused seconds.

Anti-AFK Rules

Idle Threshold - Idle = no activity for 10 seconds. - Timer pauses; no progress earned.

Auto-Attack Block - Auto-attack detected → system pauses. - Player warned once. - Resumes only after auto-attack stops.

How the System Works (Technical Breakdown)

1. Timer: Runs every 1000ms (1 second). 2. Tracking Variables: - #active_sec – counts valid active seconds - #reminder_sec – internal timer for reminders - #hourly_paused – idle pause tracker - #autoattack_warned – prevents warning spam 3. Award Logic: While active_sec >= award_interval:

   Give 1 Hourly Ticket
   Subtract 3600 seconds from active_sec

4. Pause Conditions: - Idle ≥ 10 sec - In restricted map - Auto-attack enabled 5. Resume Conditions: - Player moves - Player leaves restricted map - Auto-attack stops


Why This System Is Better - Tracks only active time - Prevents AFK farming - Detects auto-attack abuse - Auto-resumes - Sends smart reminders - Client-safe messages

Script Summary The Hourly Tickets System rewards players with 1 Hourly Ticket for every full hour of active gameplay. Idle players, auto-attackers, do not earn progress. The timer automatically adjusts, pauses, and resumes based on real player behavior.