CASTLE_ENTRANCE = 211060010

SHADE_THIRD_JOB = 38074
CASTLE_ENTRANCE_SHADE3 = 921110300

if sm.hasQuest(SHADE_THIRD_JOB) or sm.hasQuest(SHADE_THIRD_JOB + 1):
    sm.warpInstanceIn(CASTLE_ENTRANCE_SHADE3, 1, False)
else:
    sm.warp(CASTLE_ENTRANCE)
