From b27d189868e08f4459d324fcdc71d996b4ba84ae Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 16 Jul 2018 23:01:47 -0300 Subject: User Control Panel (@ucp) --- npc/functions/main.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'npc/functions') 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 { -- cgit v1.2.3-70-g09d2