diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-08-25 17:47:17 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-08-25 17:47:17 -0300 |
commit | 0ab1372918eb9dfe07378479dd49c7b0f8068272 (patch) | |
tree | 5592ae0a6bda23e6293d5b845d0685c11961d789 /npc/functions/main.txt | |
parent | 3244911fd8773f284c44d1fcfc2527e33accf142 (diff) | |
download | serverdata-0ab1372918eb9dfe07378479dd49c7b0f8068272.tar.gz serverdata-0ab1372918eb9dfe07378479dd49c7b0f8068272.tar.bz2 serverdata-0ab1372918eb9dfe07378479dd49c7b0f8068272.tar.xz serverdata-0ab1372918eb9dfe07378479dd49c7b0f8068272.zip |
Send Town Administrators salary based on reputation and exports.
It would be nice if you could get some tax money, no? %%a
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 e1b93fa46..b54401e02 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -330,6 +330,13 @@ function script gf_accid { return .@value[0]; } +// Get some char id, even if offline +// ( Name ) +function script gf_charnameid { + .@nb = query_sql("SELECT char_id FROM `char` WHERE name='"+escape_sql(getarg(0))+"' LIMIT 2", .@value); + return .@value[0]; +} + // Get some char name from char ID, even if offline // ( Name ) function script gf_charname { |