diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-01-06 15:04:55 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-01-06 15:04:55 -0300 |
commit | 31805cc355695452779ee15357520ef955813883 (patch) | |
tree | 020a51c8108a40d0291017138df74f31a0be7625 /npc/019-4-1 | |
parent | 6e8950ffdcd6693fac9391b2b3ec4db6201f0d74 (diff) | |
download | serverdata-31805cc355695452779ee15357520ef955813883.tar.gz serverdata-31805cc355695452779ee15357520ef955813883.tar.bz2 serverdata-31805cc355695452779ee15357520ef955813883.tar.xz serverdata-31805cc355695452779ee15357520ef955813883.zip |
Fix typos, add a final reward tier to Golbanez and change the gift amount logic
Diffstat (limited to 'npc/019-4-1')
-rw-r--r-- | npc/019-4-1/chief.txt | 40 |
1 files changed, 31 insertions, 9 deletions
diff --git a/npc/019-4-1/chief.txt b/npc/019-4-1/chief.txt index b5904b9b1..ca4bd1fb7 100644 --- a/npc/019-4-1/chief.txt +++ b/npc/019-4-1/chief.txt @@ -110,10 +110,19 @@ L_Reward: .@bp_total=.@q2/15000; // Price of an Ancient Blueprint .@bp_rank=0; + // Event: Supreme (5 Mi) + if ($XMAS_MONEY >= 5000000) { + if (.@mc_boxc) + getitem MercBoxC, .@mc_boxc; + if (.@mc_boxb) + getitem MercBoxB, .@mc_boxb+1; + if (.@mc_boxa) + getitem MercBoxA, .@mc_boxa+2; + .@bp_rank=5; // Event: Great (1.5 Mi) - if ($XMAS_MONEY >= 1500000) { + } if ($XMAS_MONEY >= 1500000) { if (.@mc_boxc) - getitem MercBoxC, .@mc_boxb; + getitem MercBoxC, .@mc_boxc; if (.@mc_boxb) getitem MercBoxB, .@mc_boxb; if (.@mc_boxa) @@ -122,7 +131,7 @@ L_Reward: // Event: Good (750k) } else if ($XMAS_MONEY >= 750000) { if (.@mc_boxc) - getitem MercBoxC, .@mc_boxb; + getitem MercBoxC, .@mc_boxc; if (.@mc_boxb) getitem MercBoxB, .@mc_boxb; if (.@mc_boxa) @@ -141,7 +150,7 @@ L_Reward: getitem MercBoxA, .@mc_boxa+1; .@bp_rank=1; } - // Event: Terrible (< 100k: No rewards) + // Event: Terrible (< 100k: No merc rewards) // Blueprints control // Event: Horrible @@ -185,8 +194,8 @@ L_Reward: } } // Event: Great - else if (.@bp_rank >= 4 && .@bp_total) { - .@bp=.@bp_total/6; + else if (.@bp_rank <= 4 && .@bp_total) { + .@bp=.@bp_total/7; getitem AlchemyBlueprintB, limit(1, .@bp, 10); getitem EquipmentBlueprintB, limit(1, .@bp, 10); getitem AlchemyBlueprintC, limit(1, .@bp, 5); @@ -197,6 +206,19 @@ L_Reward: getitem AncientBlueprint, 3; } } + // Event: Supreme + else if (.@bp_rank >= 5 && .@bp_total) { + .@bp=.@bp_total/8; + getitem AlchemyBlueprintC, limit(1, .@bp, 7); + getitem EquipmentBlueprintC, limit(1, .@bp, 7); + getitem AlchemyBlueprintD, limit(1, .@bp, 5); + getitem EquipmentBlueprintD, limit(1, .@bp, 5); + if (.@bp) { + getitem AlchemyBlueprintE, limit(1, .@bp, 2); + getitem EquipmentBlueprintE, limit(1, .@bp, 2); + getitem AncientBlueprint, 3; + } + } // MVP Awards if ((.@q2*100)/$XMAS_MONEY >= 80) { // 80% contribution @@ -235,11 +257,11 @@ L_Reward: // #2 - #3: Xmas Gift x1 // #4 - #5: Bronze Gift if (strcharinfo(0) == $@xmas_gp_name$[0]) - getitem XmasGift, 2; + getitem XmasGift, max(.@bp_rank, 1)+1; else if (strcharinfo(0) == $@xmas_gp_name$[1] || strcharinfo(0) == $@xmas_gp_name$[2]) - getitem XmasGift, 1; + getitem XmasGift, max(.@bp_rank, 1); else if (strcharinfo(0) == $@xmas_gp_name$[3] || strcharinfo(0) == $@xmas_gp_name$[4]) - getitem BronzeGift, 1; + getitem BronzeGift, (.@bp_rank > 3 ? 2 : 1); mesn; mesq l("Thanks for helping us the last year. I hope to have your help by the next year."); |