summaryrefslogtreecommitdiff
path: root/npc/019-4-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-12-19 03:55:52 -0300
committerJesusaves <cpntb1@ymail.com>2019-12-19 03:55:52 -0300
commitd4bb81cd04f4cf430c5fe8baad7b0e38dfa14754 (patch)
tree32575593927780c6f36c0e17f7d4d9099c3200dc /npc/019-4-1
parentac10f5f2753fec48d6c742d33acb052a100d15e1 (diff)
downloadserverdata-d4bb81cd04f4cf430c5fe8baad7b0e38dfa14754.tar.gz
serverdata-d4bb81cd04f4cf430c5fe8baad7b0e38dfa14754.tar.bz2
serverdata-d4bb81cd04f4cf430c5fe8baad7b0e38dfa14754.tar.xz
serverdata-d4bb81cd04f4cf430c5fe8baad7b0e38dfa14754.zip
Refactor this as well
Diffstat (limited to 'npc/019-4-1')
-rw-r--r--npc/019-4-1/chief.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/npc/019-4-1/chief.txt b/npc/019-4-1/chief.txt
index e00fa58a8..ae0b57cb6 100644
--- a/npc/019-4-1/chief.txt
+++ b/npc/019-4-1/chief.txt
@@ -138,12 +138,11 @@ L_Reward:
// #1 : Xmas Gift x2
// #2 - #3: Xmas Gift x1
// #4 - #5: Bronze Gift
- .@nb = query_sql("SELECT c.name FROM `quest` AS i, `char` AS c WHERE i.quest_id="+SQuest_Christmas+" AND i.char_id=c.char_id ORDER BY i.count3 DESC LIMIT 5", .@name$);
- if (strcharinfo(0) == .@name$[0])
+ if (strcharinfo(0) == $@xmas_gp_name$[0])
getitem XmasGift, 2;
- else if (strcharinfo(0) == .@name$[1] || strcharinfo(0) == .@name$[2])
+ else if (strcharinfo(0) == $@xmas_gp_name$[1] || strcharinfo(0) == $@xmas_gp_name$[2])
getitem XmasGift, 1;
- else if (strcharinfo(0) == .@name$[3] || strcharinfo(0) == .@name$[4])
+ else if (strcharinfo(0) == $@xmas_gp_name$[3] || strcharinfo(0) == $@xmas_gp_name$[4])
getitem BronzeGift, 1;
mesn;