maple-v206/scripts/field/bhb2_scEnterHp.py

21 lines
832 B
Python

# Black Heaven Inside: Core (350060180) & (350060200) | Stage 2 & 3 Lotus Boss | Used to show Lotus HP as well as warp party into the next map upon Lotus' death
LOTUS = 8240104 # Stage 2
LOTUS_2 = 8240105 # Stage 3
if sm.getFieldID() == 350060180:
sm.showHP(LOTUS)
elif sm.getFieldID() == 350060200:
sm.showHP(LOTUS_2)
mob = sm.waitForMobDeath()
while mob.getTemplateId() != LOTUS and mob.getTemplateId() != LOTUS_2:
mob = sm.waitForMobDeath()
if mob.getTemplateId() == LOTUS:
sm.showFieldEffect("Map/Effect2.img/blackHeavenBossDie2") # Shows the Boss Death effect
sm.invokeAfterDelay(6500, "warp", 350060200, 0) # Warps player(s) into the next map after 6500ms delay
elif mob.getTemplateId() == LOTUS_2:
sm.showFieldEffect("Map/Effect2.img/blackHeavenBossDie3", 4700) # Shows the Boss Death effect