Documentación
Votos in-game
ROP valida el voto; tú solo entregas la recompensa. Pack en tools/cop-vote/.
Callback (push)
- Panel → Ajustes de voto → activa Callback, URL HTTPS y regenera secreto.
- Instala
cop-vote-endpoint.phpen tu web. - Verifica
X-COP-Signature: sha256=<hmac>del cuerpo crudo. - Idempotencia por
vote_key; acredita encq_statistic(950/1) o SQL custom.
{
"vote_key": "…",
"player": "NombrePj",
"points": 1,
"streak_days": 3,
"server": "tu-slug",
"voted_at": "…"
}
Pull
Ideal: el NPC pregunta por el jugador al hablar. Respaldo: cop-vote-pull.php (cron).
GET https://ragnarokportal.com/api/v1/vote/check?token=SECRETO&player=NombrePj&consume=1
NPC Vote Manager
python3 tools/cop-vote/setup_cop_vote_npc.py --event 950 --type 1
Sin BD imprime SQL; con --dsn mysql://… intenta el INSERT del NPC.