Files
NightSpire/web-next/sql/home_restorehistory.sql
T
Inna 03f75e189c web-next: /restore-character y /restore-items con todas las condiciones
- /restore-character: recupera personajes borrados por BD (como .character deleted
  restore). Condiciones: nivel>60, borrado <30 días, DK no si ya hay DK activo,
  nombre libre, cooldown 12h/personaje. Gratis. Tabla home_restorehistory.
- /restore-items: recupera ítems borrados vía SOAP del core (.item restore list /
  .item restore); el core aplica calidad/equipable/BoP/<7días. Cada ítem 100 PD
  (reembolso si SOAP falla), consulta con cooldown 8h/personaje + Turnstile.
  Tabla home_itemsearchhistory.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 13:09:11 +00:00

9 lines
358 B
SQL

-- Cooldown de Recuperar personaje (/restore-character): 12 h por personaje (guid).
CREATE TABLE IF NOT EXISTS home_restorehistory (
id BIGINT NOT NULL AUTO_INCREMENT,
character_guid BIGINT NOT NULL,
used_at DATETIME NOT NULL,
PRIMARY KEY (id),
KEY idx_guid (character_guid, used_at)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;