summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-15 17:32:09 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-15 17:32:09 -0200
commit8ccbaf6d7bb767ecc83b9b7941655fe7d7aa1de4 (patch)
treee40c2fd22141ac2eb18896cd8d648cd5eb5334fd /npc
parentd2f1cdb8a1a135edb568e5a98fdd625830263751 (diff)
downloadserverdata-8ccbaf6d7bb767ecc83b9b7941655fe7d7aa1de4.tar.gz
serverdata-8ccbaf6d7bb767ecc83b9b7941655fe7d7aa1de4.tar.bz2
serverdata-8ccbaf6d7bb767ecc83b9b7941655fe7d7aa1de4.tar.xz
serverdata-8ccbaf6d7bb767ecc83b9b7941655fe7d7aa1de4.zip
Golbanez Rewards are now handled
Diffstat (limited to 'npc')
-rw-r--r--npc/019-4-1/chief.txt51
1 files changed, 50 insertions, 1 deletions
diff --git a/npc/019-4-1/chief.txt b/npc/019-4-1/chief.txt
index bc6dba434..059d67461 100644
--- a/npc/019-4-1/chief.txt
+++ b/npc/019-4-1/chief.txt
@@ -39,9 +39,58 @@ L_OutOfSeason:
// TODO Reward
L_Reward:
+ inventoryplace NPCEyes, 5, Iten, 1;
+ .@q1=getq2(SQuest_Christmas);
+ .@q2=getq3(SQuest_Christmas);
+ setq SQuest_Christmas, 0, 0, 0;
+
+ /* Handle hChristmas Quest Rewards */
+ // TODO
+
+ /* Handle Golbarez Quest Rewards */
+ getexp .@q3/4, .@q3/1000;
+ .@coins=.@q3/10000;
+ if (.@coins)
+ getitem CasinoCoins, .@coins;
+ if (.@coins > 3)
+ getitem StrangeCoin, .@coins/3;
+ // Mercenary boxes (requires certain global donation values)
+ .@mc_boxc=.@q3/100000;
+ .@mc_boxb=(.@q3/60000)-.@mc_boxc;
+ .@mc_boxa=(.@q3/40000)-.@mc_boxb;
+
+ // Event: Good
+ if ($XMAS_MONEY >= 750000) {
+ if (.@mc_boxc)
+ getitem MercBoxC, .@mc_boxb;
+ if (.@mc_boxb)
+ getitem MercBoxB, .@mc_boxb;
+ if (.@mc_boxa)
+ getitem MercBoxA, .@mc_boxa+1;
+ // Event: Average
+ } else if ($XMAS_MONEY >= 250000) {
+ if (.@mc_boxb)
+ getitem MercBoxB, .@mc_boxb;
+ if (.@mc_boxa)
+ getitem MercBoxA, .@mc_boxa;
+ // Event: Bad (must aid players)
+ } else if ($XMAS_MONEY >= 100000) {
+ if (.@q3 >= 10000)
+ getitem MercBoxA, .@mc_boxa+1;
+ }
+
+ // MVP Awards
+ if ((.@q*100)/$XMAS_MONEY >= 80) // 80% contribution
+ getitem GoldenGift, 1;
+ else if ((.@q*100)/$XMAS_MONEY >= 60) // 60% contribution
+ getitem SilverGift, 1;
+ else if ((.@q*100)/$XMAS_MONEY >= 40) // 40% contribution
+ getitem BronzeGift, 1;
+ else if ((.@q*100)/$XMAS_MONEY >= 20) // 20% contribution
+ getitem CasinoCoins, 1;
+
mesn;
mesc l("Hey hey, how can you finish a quest which never started in first place?"), 1;
- setq SQuest_Christmas, 0, 0, 0;
close;
L_Main: