# Pinkbean fight
if sm.getFieldID() == 270051100 and not sm.hasFieldProperty("PinkBeanSpawned"):
    sm.setFieldProperty("PinkBeanSpawned", True)
    sm.spawnMob(8820000, 0, -42, False)
    sm.spawnMob(8820103, 4, -42, False)
    sm.waitForMobDeath(8820103)
    sm.spawnMob(8820104, 4, -42, False)
    sm.waitForMobDeath(8820104)
    sm.spawnMob(8820103, 4, -42, False)
    sm.waitForMobDeath(8820103)
    sm.spawnMob(8820103, 4, -42, False)
    sm.spawnMob(8820105, 4, -42, False)
    sm.waitForMobDeath(8820105)
    sm.spawnMob(8820104, 4, -42, False)
    sm.waitForMobDeath(8820104)
    sm.spawnMob(8820104, 4, -42, False)
    sm.spawnMob(8820106, 4, -42, False)
    sm.waitForMobDeath(8820106)
    sm.spawnMob(8820102, 4, -42, False)
    sm.waitForMobDeath(8820102)
    sm.removeMobByTemplateId(8820000)
    sm.spawnMob(8820200, -16, -42, False)
if sm.getFieldID() == 270050100 and not sm.hasFieldProperty("PinkBeanSpawned"):
    sm.setFieldProperty("PinkBeanSpawned", True)
    sm.spawnMob(8820000, 0, -42, False)
    sm.spawnMob(8820003, 4, -42, False)
    sm.waitForMobDeath(8820003)
    sm.spawnMob(8820004, 4, -42, False)
    sm.waitForMobDeath(8820004)
    sm.spawnMob(8820003, 4, -42, False)
    sm.waitForMobDeath(8820003)
    sm.spawnMob(8820003, 4, -42, False)
    sm.spawnMob(8820005, 4, -42, False)
    sm.waitForMobDeath(8820005)
    sm.spawnMob(8820004, 4, -42, False)
    sm.waitForMobDeath(8820004)
    sm.spawnMob(8820004, 4, -42, False)
    sm.spawnMob(8820006, 4, -42, False)
    sm.waitForMobDeath(8820006)
    sm.spawnMob(8820002, 4, -42, False)
    sm.waitForMobDeath(8820002)
    sm.removeMobByTemplateId(8820000)
    sm.spawnMob(8820001, -16, -42, False)
else:
    sm.dispose()
