From ebb97ea62433baf0fbfc9b4b5d9889cff0393ab4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 4 Apr 2021 17:06:18 -0300 Subject: Hurnsguard: Replace the online code to save SQL power --- npc/012-1/guards.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/npc/012-1/guards.txt b/npc/012-1/guards.txt index 17fb36624..26994e822 100644 --- a/npc/012-1/guards.txt +++ b/npc/012-1/guards.txt @@ -282,7 +282,9 @@ OnInit: // Liberation Day Script 012-1,122,25,0 script Hurnsguard NPC_PLAYER,{ - query_sql("SELECT online FROM `char` WHERE name='Saulc GM'", .@online); + //query_sql("SELECT online FROM `char` WHERE name='Saulc GM'", .@online); + // TODO + .@online=$@BG1_SIZE; if (!.@online) { mesn; mesq l("We are planning to take over Hurnscald from the Monster King, and we will need everybody's help."); @@ -494,6 +496,8 @@ OnVictory: $MOST_HEROIC$=strcharinfo(0); bg_destroy(1); bg_destroy(2); + // TODO: Auto-schedule Liberation Day + // two weeks from now, to happen on a saturday (FIXME) end; OnReward: -- cgit v1.2.3-60-g2f50