# Battle Pass Suite (modular)

## Instalación

1. AdminCP → **BATTLE PASS → Config. Battle Pass** → **Instalar tablas**
2. Activa el módulo en **Módulos** (`battlepass`) o `includes/config/modules/battlepass.xml`
3. Añade enlace `/battlepass/` al menú UserCP si deseas
4. Cron: se registra `battlepass_sync.php` automáticamente

## Eventos automáticos (cron)

- Tiempo online
- Resets / Master Resets (diff en Character)
- PK kills
- Login diario (al abrir el BP)

## Eventos manuales (desde game server / plugins)

```php
require_once 'includes/battlepass/bootstrap.php';
BattlepassTracker::triggerEvent($account, 'blood_castle', 1);
```

Event keys: `blood_castle`, `devil_square`, `chaos_castle`, `castle_siege`, `duel_win`, `golden_invasion`, `custom_event`, `kill`, `reset`, `master_reset`, `pk_kill`, `daily_login`, `online_time`

## Tablas (Me_MuOnline)

- BATTLEPASS_SEASONS
- BATTLEPASS_LEVELS
- BATTLEPASS_REWARDS
- BATTLEPASS_MISSIONS
- BATTLEPASS_USER_PROGRESS
- BATTLEPASS_LOGS
