# id 867202290 (Abrup Basin : Skuas Entrance), field 867202290
sm.lockInGameUI(True, False)
sm.spawnNpc(9400580, 5180, 1160)
sm.showNpcSpecialActionByTemplateId(9400580, "summon", 0)
sm.spawnNpc(9400581, 4995, 1160)
sm.showNpcSpecialActionByTemplateId(9400581, "summon", 0)
sm.spawnNpc(9400582, 4920, 1160)
sm.showNpcSpecialActionByTemplateId(9400582, "summon", 0)
sm.spawnNpc(9400583, 4862, 1160)
sm.showNpcSpecialActionByTemplateId(9400583, "summon", 0)
sm.spawnNpc(9400584, 4810, 1160)
sm.showNpcSpecialActionByTemplateId(9400584, "summon", 0)
sm.spawnNpc(9400620, 4740, 1160)
sm.showNpcSpecialActionByTemplateId(9400620, "summon", 0)
sm.spawnNpc(9400621, 4680, 1160)
sm.showNpcSpecialActionByTemplateId(9400621, "summon", 0)
sm.spawnNpc(9400622, 4620, 1160)
sm.showNpcSpecialActionByTemplateId(9400622, "summon", 0)
sm.spawnNpc(9400623, 4560, 1160)
sm.showNpcSpecialActionByTemplateId(9400623, "summon", 0)
sm.setSpeakerType(3)
sm.setParam(37)
sm.setColor(1)
sm.setInnerOverrideSpeakerTemplateID(9400580) # Alika
sm.sendNext("#face3#I do wish I could stay to see the town restored, but...")
sm.setInnerOverrideSpeakerTemplateID(9400600) # Birna
sm.sendSay("No, child. You've already done so much for us. Go.")
sm.setInnerOverrideSpeakerTemplateID(9400580) # Alika
sm.sendSay("#face3#I'll send more forces and relief supplies when I get back. I know it will be tough, but be strong.")
sm.setInnerOverrideSpeakerTemplateID(9400587) # Kan
sm.sendSay("#face0#Thank you. I don't think I can ever repay Afinas for such kindness...")
sm.sendSay("#face0#And #h0#, you are one of the most remarkable people I've ever met. ")
sm.setInnerOverrideSpeakerTemplateID(9400597) # Gurnardson
sm.sendSay("#face0#Ahem, you should know, you're welcome in my town whenever you like. I'll have a warm bed and a right feast ready for you anytime. You're like family now, you are!")
sm.setInnerOverrideSpeakerTemplateID(9400587) # Kan
sm.sendSay("#face0#That's right. Please come visit us anytime you're near Abrup.")
sm.setParam(57)
sm.sendSay("#bI certainly will. I'll never forget our time together, friends. Thank you.")
sm.sendSay("#bI hope there is only peace and happiness in Abrup's future.")
sm.setParam(37)
sm.sendSay("#face0#We all still carry the weight of our families disappearing and our town being razed. But we have the hope we need to keep moving forward.")
sm.sendSay("#face0#We won't give up. We'll be strong. Our town will rise again, and our loved ones will return in time.")
sm.sendSay("#face0#Thanks to #h0#, Scholar Alika, and the Knights of Afinas, we have the strength to carry on.")
sm.sendSay("#face0#From the bottom of my heart, thank you. We will never forget what you've done for us.")
sm.sendDelay(3000)
sm.sendDelay(2500)
sm.speechBalloon(False, 0, 0, "Thank you, thank you.", 2000, 0, 0, 0, 0, 4, 9400589, 4878499)
sm.sendDelay(2500)
sm.speechBalloon(False, 0, 0, "Sniff... I'll never forget. ", 2000, 0, 0, 0, 0, 4, 9400592, 4878499)
sm.sendDelay(2500)
sm.speechBalloon(False, 0, 0, "Thank you!", 2000, 0, 0, 0, 0, 4, 9400598, 4878499)
sm.sendDelay(2500)
sm.speechBalloon(False, 0, 0, "Thank you, for everything...", 2000, 0, 0, 0, 0, 4, 9400601, 4878499)
sm.sendDelay(2000)
sm.startQuest(64163)
sm.sendDelay(1000)
sm.setParam(57)
sm.sendNext("#b(Where are Einar and Sanaan?)")
sm.sendDelay(1000)
sm.setParam(37)
sm.setInnerOverrideSpeakerTemplateID(9400581) # Butler
sm.sendNext("#face0#The sun's starting to set. We should head out if we're going to make it home before dark.")
sm.flipNpcByTemplateId(9400581, True)
sm.sendNext("#face0#Afinas Dispatch, move out!")
sm.flipNpcByTemplateId(9400623, True)
sm.flipNpcByTemplateId(9400622, True)
sm.flipNpcByTemplateId(9400621, True)
sm.flipNpcByTemplateId(9400620, True)
sm.flipNpcByTemplateId(9400583, True)
sm.flipNpcByTemplateId(9400584, True)
sm.flipNpcByTemplateId(9400582, True)
sm.sendDelay(250)
sm.moveNpcByTemplateId(9400623, True, 500, 80)
sm.sendDelay(250)
sm.moveNpcByTemplateId(9400622, True, 500, 80)
sm.sendDelay(250)
sm.moveNpcByTemplateId(9400621, True, 500, 80)
sm.sendDelay(250)
sm.moveNpcByTemplateId(9400620, True, 500, 80)
sm.sendDelay(250)
sm.moveNpcByTemplateId(9400583, True, 500, 80)
sm.sendDelay(250)
sm.moveNpcByTemplateId(9400584, True, 500, 80)
sm.sendDelay(250)
sm.moveNpcByTemplateId(9400582, True, 500, 80)
sm.sendDelay(1500)
sm.forcedFlip(True)
sm.sendDelay(500)
sm.flipNpcByTemplateId(9400580, True)
sm.sendDelay(500)
sm.forcedMove(True, 500)
sm.moveNpcByTemplateId(9400580, True, 500, 70)
sm.blind(True, 255, 0, 0, 0, 5000)
sm.sendDelay(5000)
sm.lockInGameUI(False, True)
sm.setInnerOverrideSpeakerTemplateID(9400580) # Alika
sm.sendNext("#face1##h0#, I'm grateful for what you've done. Unfortunately, I don't think this will be the last of our troubles, but I'm sure I'll be safe as long as I'm with you. ")
sm.playExclSoundWithDownBGM("Field.img/masteryBook/EnchantSuccess", 100)
sm.sendSay("#face1#I'm so glad I met you here! ")
sm.sendSay("#face2#I look forward to our future adventures together, #h0#! ")
sm.createQuestWithQRValue(49010, "QET=20190623154228")
sm.createQuestWithQRValue(49000, "count=1;Quest=49010;day=152844;QET=20190623145525;state=1")
sm.createQuestWithQRValue(49000, "count=1;Quest=49010;day=152844;QET=20190623145525;state=2")
sm.createQuestWithQRValue(49000, "count=1;Quest=49010;day=152844;QET=20190623151228;state=2")
sm.createQuestWithQRValue(49010, "QET=20190623154228")
sm.createQuestWithQRValue(49010, "QET=20190623154228")
sm.startQuest(49010)
sm.completeQuestNoCheck(64145)
sm.completeQuestNoCheck(64053)
sm.createQuestWithQRValue(64152, "cnt=1")
sm.createQuestWithQRValue(500486, "EP1=2")
sm.changeBGM("Bgm00.img/Silence", 0, 0)
