summaryrefslogtreecommitdiff
path: root/npc/019-4-1/chief.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-01 19:36:37 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-01 19:36:37 -0300
commitc488994a4e6a4386734a818710caa7dddfc95e7e (patch)
tree90799119eba3b5698b93d34b089a89b2008fd65b /npc/019-4-1/chief.txt
parentb0610f13f698b8b1818dc0cd5dfb07383c7a7a1c (diff)
downloadserverdata-c488994a4e6a4386734a818710caa7dddfc95e7e.tar.gz
serverdata-c488994a4e6a4386734a818710caa7dddfc95e7e.tar.bz2
serverdata-c488994a4e6a4386734a818710caa7dddfc95e7e.tar.xz
serverdata-c488994a4e6a4386734a818710caa7dddfc95e7e.zip
Golbarez Rewards now include blueprints (but bad ones)
Diffstat (limited to 'npc/019-4-1/chief.txt')
-rw-r--r--npc/019-4-1/chief.txt50
1 files changed, 49 insertions, 1 deletions
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