summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-12 21:31:12 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-12 21:31:12 -0300
commita5506ed12914cffd08ed82db1d385218c96a719c (patch)
tree0511d3810a133304bb8434a696bbdfdf10fa1621
parent62eb80e25e1fe804d5617088534c995c328dd375 (diff)
downloadserverdata-a5506ed12914cffd08ed82db1d385218c96a719c.tar.gz
serverdata-a5506ed12914cffd08ed82db1d385218c96a719c.tar.bz2
serverdata-a5506ed12914cffd08ed82db1d385218c96a719c.tar.xz
serverdata-a5506ed12914cffd08ed82db1d385218c96a719c.zip
Fix SQL bug
-rw-r--r--npc/003-1/ship.txt2
-rw-r--r--npc/012-1/guards.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/npc/003-1/ship.txt b/npc/003-1/ship.txt
index cefea5338..fc256f713 100644
--- a/npc/003-1/ship.txt
+++ b/npc/003-1/ship.txt
@@ -25,7 +25,7 @@ OnTouch:
L_Warp:
/* Is Hurnscald already liberated? Precendence. */
if (!$HURNS_LIBDATE) {
- query_sql("SELECT online FROM char WHERE charname='Saulc GM'", .@online);
+ query_sql("SELECT online FROM char WHERE name='Saulc GM'", .@online);
if (is_gm())
dispbottom l("GMs are NOT allowed on Hurnscald Liberation day.");
else if (.@online)
diff --git a/npc/012-1/guards.txt b/npc/012-1/guards.txt
index 1031d4ad2..dee4f9d67 100644
--- a/npc/012-1/guards.txt
+++ b/npc/012-1/guards.txt
@@ -249,7 +249,7 @@ OnInit:
// Liberation Day Script
003-1,122,25,0 script Hurnsguard NPC_PLAYER,{
- query_sql("SELECT online FROM char WHERE charname='Saulc GM'", .@online);
+ query_sql("SELECT online FROM char WHERE name='Saulc GM'", .@online);
if (!.@online) {
mesn;
mesq l("We are planning to take over Hurnscald from the Monster King, and we will need everybody's help.");