summaryrefslogtreecommitdiff
path: root/npc/019-4-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-15 19:53:12 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-15 19:53:12 -0200
commite6a0e7eced6288c66c0db8441f290434501cac56 (patch)
treee82d9e92c25046c69c5a1e9f0c108cc6bd277d88 /npc/019-4-1
parent243ae3566107b56c7d530bfac7db5d44b1f2d5b8 (diff)
downloadserverdata-e6a0e7eced6288c66c0db8441f290434501cac56.tar.gz
serverdata-e6a0e7eced6288c66c0db8441f290434501cac56.tar.bz2
serverdata-e6a0e7eced6288c66c0db8441f290434501cac56.tar.xz
serverdata-e6a0e7eced6288c66c0db8441f290434501cac56.zip
Christmas Rewards: Done and Over. Only Storage Manager missing.
Diffstat (limited to 'npc/019-4-1')
-rw-r--r--npc/019-4-1/chief.txt20
1 files changed, 17 insertions, 3 deletions
diff --git a/npc/019-4-1/chief.txt b/npc/019-4-1/chief.txt
index e3bd51f5f..299ef1f78 100644
--- a/npc/019-4-1/chief.txt
+++ b/npc/019-4-1/chief.txt
@@ -65,9 +65,23 @@ L_Reward:
.@q2=getq3(SQuest_Christmas);
setq SQuest_Christmas, 0, 0, 0;
- /* Handle hChristmas Quest Rewards */
- /* Some Merc Boxes, five rares, gift boxes */
- /* Christmas gift boxes contain rares */
+ /* Handle Christmas Quest Rewards */
+ /* The top 5 gets special rewards! */
+ /* #1: White Cat Pet */
+ /* #2 - #3: Red Stocking */
+ /* #4 - #5: Extra xmas gift */
+ /* You get Christmas Gift Box, which contain rares */
+ // CattyCat
+ .@gifts=max(15, log2(gifts/100));
+ if (.@q1 > .@gifts)
+ getitem XmasGift, .@gifts;
+ .@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.count2 DESC LIMIT 5", .@name$);
+ if (strcharinfo(0) == .@name$[0])
+ makepet CattyCat;
+ else if (strcharinfo(0) == .@name$[1] || strcharinfo(0) == .@name$[2])
+ getitem RedStocking, 1;
+ else if (strcharinfo(0) == .@name$[3] || strcharinfo(0) == .@name$[4])
+ getitem XmasGift, 1;
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////