diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-02 19:42:10 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-02 19:42:10 -0300 |
commit | 5aa1f7177bc5e6345cd2e15f94f7ff9835e2f138 (patch) | |
tree | ed36ffb2f5695854ec3396a30be0ee9ac91de681 /npc/functions/main.txt | |
parent | d654b24da0fef3535426575a649bd4f9623827b7 (diff) | |
download | serverdata-5aa1f7177bc5e6345cd2e15f94f7ff9835e2f138.tar.gz serverdata-5aa1f7177bc5e6345cd2e15f94f7ff9835e2f138.tar.bz2 serverdata-5aa1f7177bc5e6345cd2e15f94f7ff9835e2f138.tar.xz serverdata-5aa1f7177bc5e6345cd2e15f94f7ff9835e2f138.zip |
Add an extra function so ref_prog works with disconnected players
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r-- | npc/functions/main.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index bf4ee2cde..6d1c3762c 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -235,6 +235,13 @@ function script isin { return false; } +// 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); + return .@value[0]; +} + function script getquestlink { return "[@@q" + getarg(0) + "|@@]"; } |