From c488994a4e6a4386734a818710caa7dddfc95e7e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 1 Jan 2020 19:36:37 -0300 Subject: Golbarez Rewards now include blueprints (but bad ones) --- npc/019-4-1/chief.txt | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/019-4-1/chief.txt b/npc/019-4-1/chief.txt index 98dc99afd..86e2cc7d8 100644 --- a/npc/019-4-1/chief.txt +++ b/npc/019-4-1/chief.txt @@ -56,7 +56,7 @@ L_OutOfSeason: close; L_Reward: - inventoryplace NPCEyes, 5, Iten, 1; + inventoryplace NPCEyes, 6, Iten, 1; .@q1=getq2(SQuest_Christmas); .@q2=getq3(SQuest_Christmas); setq1 SQuest_Christmas, 0; @@ -101,6 +101,9 @@ L_Reward: .@mc_boxc=.@q2/100000; .@mc_boxb=(.@q2/60000)-.@mc_boxc; .@mc_boxa=(.@q2/40000)-.@mc_boxb; + // Blueprints + .@bp_total=.@q2/15000; // Price of an Ancient Blueprint + .@bp_rank=0; // Event: Good if ($XMAS_MONEY >= 750000) { @@ -110,16 +113,61 @@ L_Reward: getitem MercBoxB, .@mc_boxb; if (.@mc_boxa) getitem MercBoxA, .@mc_boxa+1; + .@bp_rank=3; // Event: Average } else if ($XMAS_MONEY >= 250000) { if (.@mc_boxb) getitem MercBoxB, .@mc_boxb; if (.@mc_boxa) getitem MercBoxA, .@mc_boxa; + .@bp_rank=2; // Event: Bad (must aid players) } else if ($XMAS_MONEY >= 100000) { if (.@q2 >= 10000) getitem MercBoxA, .@mc_boxa+1; + .@bp_rank=1; + } + + // Blueprints control + // Event: Horrible + if (.@bp_rank <= 0 && .@bp_total) { + .@bp=.@bp_total/2; + getitem AlchemyBlueprintA, limit(1, .@bp, 3); + if (.@bp) + getitem EquipmentBlueprintA, limit(1, .@bp, 3); + } + // Event: Bad + else if (.@bp_rank <= 1 && .@bp_total) { + .@bp=.@bp_total/2; + getitem AlchemyBlueprintA, limit(1, .@bp, 10); + if (.@bp) + getitem EquipmentBlueprintA, limit(1, .@bp, 10); + if (.@bp > 3) + getitem AncientBlueprint, 1; + } + // Event: Average + else if (.@bp_rank <= 2 && .@bp_total) { + .@bp=.@bp_total/4; + getitem AlchemyBlueprintA, limit(1, .@bp, 5); + getitem EquipmentBlueprintA, limit(1, .@bp, 5); + if (.@bp) { + getitem AlchemyBlueprintB, limit(1, .@bp, 3); + getitem EquipmentBlueprintB, limit(1, .@bp, 3); + getitem AncientBlueprint, 1; + } + } + // Event: Good + else if (.@bp_rank <= 3 && .@bp_total) { + .@bp=.@bp_total/6; + getitem AlchemyBlueprintA, limit(1, .@bp, 10); + getitem EquipmentBlueprintA, limit(1, .@bp, 10); + getitem AlchemyBlueprintB, limit(1, .@bp, 5); + getitem EquipmentBlueprintB, limit(1, .@bp, 5); + if (.@bp) { + getitem AlchemyBlueprintC, limit(1, .@bp, 3); + getitem EquipmentBlueprintC, limit(1, .@bp, 3); + getitem AncientBlueprint, 2; + } } // MVP Awards -- cgit v1.2.3-60-g2f50