summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-25 14:06:52 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-25 14:06:52 -0200
commit63ec5adb6e07a5527abb2524b74808b6f63fcaf9 (patch)
treea6990748d24925dbe5de7ec84a3f74a33f5e9755
parentb06654827737ffa1ea301d61457084bf4cb67e6f (diff)
downloadserverdata-r07.5_181225.tar.gz
serverdata-r07.5_181225.tar.bz2
serverdata-r07.5_181225.tar.xz
serverdata-r07.5_181225.zip
Golbarez's Top 5 now also gives a (more humble) reward.r07.5_181225
-rw-r--r--npc/019-4-1/chief.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/npc/019-4-1/chief.txt b/npc/019-4-1/chief.txt
index 74afdae89..7e790a337 100644
--- a/npc/019-4-1/chief.txt
+++ b/npc/019-4-1/chief.txt
@@ -134,6 +134,18 @@ L_Reward:
else if ((.@q2*100)/$XMAS_MONEY >= 20) // 20% contribution
getitem CasinoCoins, 1;
+ /* The top 5 gets special rewards! */
+ // #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])
+ getitem XmasGift, 2;
+ else if (strcharinfo(0) == .@name$[1] || strcharinfo(0) == .@name$[2])
+ getitem XmasGift, 1;
+ else if (strcharinfo(0) == .@name$[3] || strcharinfo(0) == .@name$[4])
+ getitem BronzeGift, 1;
+
mesn;
mesq l("Thanks for helping us the last year. I hope to have your help by the next year.");
next;