summaryrefslogtreecommitdiff
path: root/npc/006-8/kage.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-01-17 15:08:51 -0300
committerJesusaves <cpntb1@ymail.com>2022-01-17 15:08:51 -0300
commitd25a7cbc67a1e697f3d8ea84378cfee4dd33d6e0 (patch)
tree4b5e6dc8604b55c11222f1f8b26a5976a5cdb0cf /npc/006-8/kage.txt
parente8c3751f7330b4bc809326b8f107e5cb8f50c70f (diff)
downloadserverdata-d25a7cbc67a1e697f3d8ea84378cfee4dd33d6e0.tar.gz
serverdata-d25a7cbc67a1e697f3d8ea84378cfee4dd33d6e0.tar.bz2
serverdata-d25a7cbc67a1e697f3d8ea84378cfee4dd33d6e0.tar.xz
serverdata-d25a7cbc67a1e697f3d8ea84378cfee4dd33d6e0.zip
Try to fix some bugs
Diffstat (limited to 'npc/006-8/kage.txt')
-rw-r--r--npc/006-8/kage.txt26
1 files changed, 16 insertions, 10 deletions
diff --git a/npc/006-8/kage.txt b/npc/006-8/kage.txt
index e652dd68f..bb584a11e 100644
--- a/npc/006-8/kage.txt
+++ b/npc/006-8/kage.txt
@@ -114,16 +114,16 @@ OnFinish:
dispbottom l("You earned %s Monster Points for winning.", fnum(500));
CAPTURE_FLAG += 1;
switch (CAPTURE_FLAG % 11) {
- case 1: getitem MercBoxA, 1;
- case 2: getitem any(Aquada, Piberries, Cheese, Bread), 1;
- case 3: getitem any(Coffee, ChamomileTea, MysteriousBottle), 1;
- case 4: getitem any(Aquada, Piberries, Cheese, Bread), 1;
- case 5: getitem any(ReturnPotion, TreasureMap), 1;
- case 6: getitem any(Aquada, Piberries, Cheese, Bread), 1;
- case 7: getitem any(SmokeGrenade, DodgePotion), 1;
- case 8: getitem any(Aquada, Piberries, Cheese, Bread), 1;
- case 9: getitem any(ScrollSCave, InsuranceContract, Insurance), 1;
- case 10: getitem any(Aquada, Piberries, Cheese, Bread), 1;
+ case 1: getitem MercBoxA, 1; break;
+ case 2: getitem any(Aquada, Piberries, Cheese, Bread), 1; break;
+ case 3: getitem any(Coffee, ChamomileTea, MysteriousBottle), 1; break;
+ case 4: getitem any(Aquada, Piberries, Cheese, Bread), 1; break;
+ case 5: getitem any(ReturnPotion, TreasureMap), 1; break;
+ case 6: getitem any(Aquada, Piberries, Cheese, Bread), 1; break;
+ case 7: getitem any(SmokeGrenade, DodgePotion), 1; break;
+ case 8: getitem any(Aquada, Piberries, Cheese, Bread), 1; break;
+ case 9: getitem any(ScrollSCave, InsuranceContract, Insurance), 1; break;
+ case 10: getitem any(Aquada, Piberries, Cheese, Bread), 1; break;
default: getitem any(IcedBottle, PurificationPotion, ScrollSMaggot), 1;
}
}
@@ -241,6 +241,11 @@ OnMinute25:
.@t1a = .@t1lv / .@t1p;
if (.@t2p)
.@t2a = .@t2lv / .@t2p;
+ // If average is zero...?!
+ if (.@t1a && !.@t2a)
+ .@t2a = .@t1a;
+ if (.@t2a && !.@t1a)
+ .@t1a = .@t2a;
/* Spawn guards as needed... */
// Normalize player count
while (.@t1p < .@t2p) {
@@ -251,6 +256,7 @@ OnMinute25:
.@t2p += 1;
bg_monster($@CAPTURE_T2, "006-8", 53, rand2(24, 32), "Yellow Ally", getmobid(.@t2a), "Kage::OnSkip");
}
+ // TODO: Buff their HP
// Apply a buff on the teams, based on level difference
.@c=getunits(BL_PC, .@pcs, MAX_CYCLE_PC, "006-8", 30, 20, 60, 60);
.@t1b = .@t2a - .@t1a; // Team 1 Boost