diff options
-rw-r--r-- | db/mercenary_db.txt | 2 | ||||
-rw-r--r-- | db/re/item_db.conf | 2 | ||||
-rw-r--r-- | npc/019-4-1/chief.txt | 51 |
3 files changed, 52 insertions, 3 deletions
diff --git a/db/mercenary_db.txt b/db/mercenary_db.txt index 254bc500e..8fd9d97bf 100644 --- a/db/mercenary_db.txt +++ b/db/mercenary_db.txt @@ -18,7 +18,7 @@ 1200,Merc_Pookie,Pookie , 39,2369,504,1,125,125, 72,50, 44,48, 1, 1, 2, 1, 10,12,1,11,45,152, 708, 480,200 1201,Merc_Jesusalva,Jesusalva , 37,2618,484,1,125,125, 62,48, 24,31,17, 1,32,15, 10,12,1,11,45,152, 776, 480,200 1202,Merc_GonzoDark,GonzoDark , 23,1740,336,1, 35, 35, 52,34, 24,10,15, 1,22, 1, 10,12,1,11,45,152, 860, 480,200 -1203,Merc_Apane,Apane , 8, 787,181,1, 35, 35, 42,18, 3, 1, 4, 1,24, 1, 10,12,1,11,45,152, 896, 480,200 +1203,Merc_Apane,Legendary Apane , 8, 787,181,1, 35, 35, 42,18, 3, 1, 4, 1,24, 1, 10,12,1,11,45,152, 896, 480,200 1204,Merc_Soren,Soren , 4, 561,141,2, 25, 25, 32,14, 1, 1, 1, 1, 1, 1, 10,12,1,11,45,152, 896, 480,200 1205,Merc_Swezanne,Swezanne , 61,4248,797,1,381,381,147,80, 54,70,20, 8,27,14, 10,12,1,11,45,152, 621, 480,160 diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 43b0d430f..6a0d41b42 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -3561,7 +3561,7 @@ item_db: ( Type: "IT_ETC" Buy: 15000 Sell: 5000 - Weight: 20 + Weight: 2000 Refine: false ViewSprite: 796 }, 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: |