# id 867201101 (Abrup Basin : Svarti Camp), field 867201101
sm.lockInGameUI(True, False)
sm.spawnNpc(9400582, 530, 20)
sm.showNpcSpecialActionByTemplateId(9400582, "summon", 0)
sm.spawnNpc(9400593, 200, 15)
sm.showNpcSpecialActionByTemplateId(9400593, "summon", 0)
sm.spawnNpc(9400629, 320, 15)
sm.showNpcSpecialActionByTemplateId(9400629, "summon", 0)
sm.startQuest(64166)
sm.startQuest(64068)
sm.forcedFlip(True)
sm.moveNpcByTemplateId(9400582, True, 100, 50)
sm.sendDelay(300)
sm.sendDelay(3000)
sm.setSpeakerType(3)
sm.setParam(37)
sm.setColor(1)
sm.setInnerOverrideSpeakerTemplateID(9400582) # Cayne
sm.sendNext("#face0#I have to say, it's starting to look like a proper camp here. ")
sm.sendSay("#face0#The wall gives people hope. Just having that basic protection is enough. ")
sm.sendDelay(500)
sm.forcedMove(True, 100)
sm.setParam(57)
sm.sendNext("#bYou're right. There's a sense of calm I haven't seen recently. ")
sm.moveNpcByTemplateId(9400593, False, 50, 50)
sm.showEffect("Effect/OnUserEff.img/emotion/flower", 2000, 0, 0, 0, 33423776, 0, 0)
sm.sendDelay(250)
sm.speechBalloon(False, 0, 0, "Last chance, monsters! Better run away!", 2000, 1, 0, 0, 0, 4, 9400593, 4878499)
sm.showEffect("Effect/OnUserEff.img/emotion/love", 2000, 0, 0, 0, 33423775, 0, 0)
sm.sendDelay(2000)
sm.flipNpcByTemplateId(9400593, True)
sm.sendDelay(250)
sm.moveNpcByTemplateId(9400593, True, 50, 50)
sm.showEffect("Effect/OnUserEff.img/emotion/flower", 2000, 0, 0, 0, 33423776, 0, 0)
sm.sendDelay(250)
sm.speechBalloon(False, 0, 0, "The Afinas Knights won't let us down!", 2000, 1, 0, 0, 0, 4, 9400593, 4878499)
sm.showEffect("Effect/OnUserEff.img/emotion/love", 0, 0, 0, 0, 0, 0, 0)
sm.sendDelay(2000)
sm.flipNpcByTemplateId(9400593, False)
sm.sendDelay(250)
sm.moveNpcByTemplateId(9400593, False, 50, 50)
sm.sendDelay(2250)
sm.speechBalloon(False, 0, 0, "Who are they? Defenders of those in need!", 2000, 1, 0, 0, 0, 4, 9400629, 4878499)
sm.flipNpcByTemplateId(9400593, True)
sm.sendDelay(250)
sm.moveNpcByTemplateId(9400593, True, 50, 50)
sm.sendDelay(2250)
sm.speechBalloon(False, 0, 0, "Vanquishers of monsters and healers of the sick!!", 2000, 1, 0, 0, 0, 4, 9400630, 4878499)
sm.flipNpcByTemplateId(9400593, False)
sm.sendDelay(250)
sm.moveNpcByTemplateId(9400593, False, 50, 50)
sm.sendDelay(2250)
sm.speechBalloon(False, 0, 0, "The ray of light! Our saviors!", 2000, 1, 0, 0, 0, 4, 9400631, 4878499)
sm.flipNpcByTemplateId(9400593, True)
sm.sendDelay(250)
sm.moveNpcByTemplateId(9400593, True, 50, 50)
sm.sendDelay(2250)
sm.speechBalloon(False, 0, 0, "Run, monsters, run! This is our victory!", 2000, 1, 0, 0, 0, 4, 9400593, 4878499)
sm.flipNpcByTemplateId(9400593, False)
sm.setParam(37)
sm.sendNext("#face1#Ha ha, what's that? Stop, stop, you'll make me blush! ")
sm.setParam(57)
sm.sendSay("#bYou look too happy to be embarrassed. ")
sm.setParam(37)
sm.sendSay("#face1#You see right through me once again! This is why I became a knight, you know. Are you jealous? You can always join the Afinas Knights yourself... ")
sm.setParam(57)
sm.sendSay("#bI... ")
sm.moveNpcByTemplateId(9400593, False, 100, 50)
sm.moveNpcByTemplateId(9400629, True, 60, 70)
sm.sendDelay(1200)
sm.flipNpcByTemplateId(9400629, False)
sm.sendDelay(900)
sm.showEffect("Effect/OnUserEff.img/emotion/flower", 2000, 0, 0, 0, 33423776, 0, 0)
sm.setParam(37)
sm.setInnerOverrideSpeakerTemplateID(9400593) # Hawalu
sm.sendNext("Sir knight! Here! A gift! ")
sm.showEffect("Effect/OnUserEff.img/emotion/love", 2000, 0, 0, 0, 33423775, 0, 0)
sm.showEffect("Effect/OnUserEff.img/emotion/love", 2000, 0, 0, 0, 0, 1, 0)
sm.setInnerOverrideSpeakerTemplateID(9400582) # Cayne
sm.sendSay("#face1#Oh my goodness, what is this? Is it really for me? ")
sm.showEffect("Effect/OnUserEff.img/emotion/love", 0, 0, 0, 0, 0, 0, 0)
sm.sendDelay(1000)
sm.sendDelay(1000)
sm.sendDelay(500)
sm.sendDelay(5000)
sm.sendDelay(500)
sm.sendDelay(5000)
sm.sendDelay(500)
sm.sendDelay(5000)
sm.sendDelay(500)
sm.sendDelay(5000)
sm.blind(True, 255, 0, 0, 0, 500)
sm.sendDelay(500)
sm.lockInGameUI(False, True)
sm.setInnerOverrideSpeakerTemplateID(9400593) # Hawalu
sm.sendNext("Hero! This is for you!")
sm.playExclSoundWithDownBGM("Field.img/masteryBook/EnchantSuccess", 100)
sm.sendSay("I gave Sir Cayne a dragon. For you, I have something special!")
sm.completeQuestNoCheck(64068)
sm.warp(867201100)
