summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-16 23:01:47 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-16 23:01:47 -0300
commitb27d189868e08f4459d324fcdc71d996b4ba84ae (patch)
tree9a126f44a30d5f9fc47ca0c493488609ef697d95 /npc/functions/main.txt
parentc3ac02f19bd21b196841934cea8205c77c2f51bf (diff)
downloadserverdata-b27d189868e08f4459d324fcdc71d996b4ba84ae.tar.gz
serverdata-b27d189868e08f4459d324fcdc71d996b4ba84ae.tar.bz2
serverdata-b27d189868e08f4459d324fcdc71d996b4ba84ae.tar.xz
serverdata-b27d189868e08f4459d324fcdc71d996b4ba84ae.zip
User Control Panel (@ucp)
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 0318ce69e..d290bac63 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -248,6 +248,13 @@ function script gf_accid {
return .@value[0];
}
+// Get some char name from char ID, even if offline
+// ( Name )
+function script gf_charname {
+ .@nb = query_sql("SELECT name FROM `char` WHERE char_id="+escape_sql(getarg(0))+" LIMIT 2", .@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 {