summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-02 19:45:28 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-02 19:45:28 -0300
commitdf01eb784f3cb59bea386b21fdf89a09c089293e (patch)
treeaf20441f3a8b1c1519e7691a2ee9111b90160561 /npc/functions
parent5aa1f7177bc5e6345cd2e15f94f7ff9835e2f138 (diff)
downloadserverdata-df01eb784f3cb59bea386b21fdf89a09c089293e.tar.gz
serverdata-df01eb784f3cb59bea386b21fdf89a09c089293e.tar.bz2
serverdata-df01eb784f3cb59bea386b21fdf89a09c089293e.tar.xz
serverdata-df01eb784f3cb59bea386b21fdf89a09c089293e.zip
[skip ci] SQL is never right the first time...
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/main.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 6d1c3762c..365943742 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -238,7 +238,7 @@ function script isin {
// Get some acc id, even if offline
// ( Name )
function script gf_accid {
- .@nb = query_sql("SELECT `char`.account_id WHERE `char`.name='"+escape_sql(getarg(0))+"' LIMIT 2", .@value);
+ .@nb = query_sql("SELECT account_id FROM `char` WHERE name='"+escape_sql(getarg(0))+"' LIMIT 2", .@value);
return .@value[0];
}