diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-08-11 16:41:22 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-08-11 16:41:22 -0300 |
commit | 0e6c33c6ebb0f10ce1a7cddca8a6325ee241b658 (patch) | |
tree | 2794ef0f282e832ea5b977f2980a6e6ae7974263 /npc/functions | |
parent | 35137d8a8bb38c948f472e93aeaff73bd632535c (diff) | |
download | serverdata-0e6c33c6ebb0f10ce1a7cddca8a6325ee241b658.tar.gz serverdata-0e6c33c6ebb0f10ce1a7cddca8a6325ee241b658.tar.bz2 serverdata-0e6c33c6ebb0f10ce1a7cddca8a6325ee241b658.tar.xz serverdata-0e6c33c6ebb0f10ce1a7cddca8a6325ee241b658.zip |
New function: gf_charid(accid). This is for Refeer System.
Diffstat (limited to 'npc/functions')
-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 5e897901b..e1b93fa46 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -337,6 +337,13 @@ function script gf_charname { return .@value$[0]; } +// Get some char ID from account ID, even if offline +// ( Name ) +function script gf_charid { + .@nb = query_sql("SELECT char_id FROM `char` WHERE account_id="+escape_sql(getarg(0))+" LIMIT 1", .@value$); + return .@value$[0]; +} + // Request pincode and validate it. Use any non-4-digits code to cancel. Failure will dc you. // Returns 1 if pin check is OK. function script validatepin { |