From 3cc8a03902b34e0bff2429ead34bf7c7f76a7457 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 17 Sep 2018 16:19:26 -0300 Subject: Rewrite Referral System --- npc/functions/scoreboards.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc/functions') diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt index e91645b84..3fb44e14a 100644 --- a/npc/functions/scoreboards.txt +++ b/npc/functions/scoreboards.txt @@ -115,7 +115,7 @@ function script HallOfGMLog { function script HallOfReferral { mes ""; - .@nb = query_sql("SELECT l.userid, COUNT(a.value) FROM `acc_reg_num_db` AS a, `login` AS l WHERE a.key='#REFERRAL_PROG' AND l.account_id=a.value ORDER BY COUNT(a.value) DESC LIMIT 20", .@name$, .@value); + .@nb = query_sql("SELECT l.userid, COUNT(a.value) FROM `mapreg` AS a, `login` AS l WHERE a.varname='$REFERRAL_IDS' AND l.account_id=a.index ORDER BY COUNT(a.value) DESC LIMIT 20", .@name$, .@value); mes "Referral Program Report - pg. 1"; mes("1."+.@name$[0]+" ("+.@value[0]+")"); mes("2."+.@name$[1]+" ("+.@value[1]+")"); -- cgit v1.2.3-70-g09d2