sm.setSpeakerID(1064002)
sm.sendAskYesNo

dialog = str()

if sm.hasMobsInField():
    dialog = "Are you sure you want to leave the battlefield and abandon your party members?"

else:
    dialog = "Are you sure you want to leave the battlefield?"

if sm.sendAskYesNo(dialog):
    sm.WarpInstanceOut(105200000)