summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-04 17:06:18 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-04 17:06:18 -0300
commitebb97ea62433baf0fbfc9b4b5d9889cff0393ab4 (patch)
tree9cc84ad67ab91a3080d26d70d65a7b9387930497
parent595c65e4a2939d23ed0df681cd31070433974512 (diff)
downloadserverdata-ebb97ea62433baf0fbfc9b4b5d9889cff0393ab4.tar.gz
serverdata-ebb97ea62433baf0fbfc9b4b5d9889cff0393ab4.tar.bz2
serverdata-ebb97ea62433baf0fbfc9b4b5d9889cff0393ab4.tar.xz
serverdata-ebb97ea62433baf0fbfc9b4b5d9889cff0393ab4.zip
Hurnsguard: Replace the online code to save SQL power
-rw-r--r--npc/012-1/guards.txt6
1 files changed, 5 insertions, 1 deletions
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: