# Isdir's trials (Ambermoon Advanced episode 2, any language): with the book of mystic creatures (268) Jeff (NPC 43,
# after his blind brandy) remembers a strange event at the northern beach of the eye of the vortex (keyword "Isdir").
# At night the way to Isdir's cave (map 377) appears. Its four ice crystals ask for golden water (Lebab), a restless
# soul (graveyard at night), a poisonous snake (dug up at map 249) and a small blue crystal (map 117).
waitidle 20000
dismissall
# the traps and fights need a stronger hero (no quest relevance)
cheat level 30
talkwait
dismissall
cheat netsrak
cheat light 3
quest IsdirsTrials_SearchForIsdirInTheVortex Inactive
# the book of mystic creatures and Jeff's brandy are from other quests
setvar 268 1
setvar 250 1
reloadquests
# blocked until the mermaid opened the vortex (event 163:1, sea creatures quest)
quest IsdirsTrials_SearchForIsdirInTheVortex Blocked
seteventbit 163 1 1
reloadquests
quest IsdirsTrials_SearchForIsdirInTheVortex Active
# --- Jeff
goto 376 36 10
dismissall
talk 43
talkwait
say 143
talkwait
leave
talkwait
waitidle 5000
var 305 1
quest IsdirsTrials_SearchForIsdirInTheVortex Completed
quest IsdirsTrials_MeetIsdirAtNight Active
# --- the northern beach at night
hour 23
goto 370 11 12
talkwait
dismissall
eventbit 370 14 1
quest IsdirsTrials_MeetIsdirAtNight Completed
# --- Isdir's cave and the four crystals
goto 377 7 6
talkwait
dismissall
goto 377 10 6
trigger 11 6 Hand
talkwait
var 291 1
quest IsdirsTrials_BringGoldenWater Active
goto 377 4 6
trigger 3 6 Hand
talkwait
goto 377 4 12
trigger 3 12 Hand
talkwait
goto 377 10 12
trigger 11 12 Hand
talkwait
quest IsdirsTrials_BringARestlessSoul Active
quest IsdirsTrials_BringAPoisonousSnake Active
quest IsdirsTrials_BringTheBlueCrystal Active
# --- golden water from Lebab (golden scale, water of life and fire thistle)
cheat give 430 1
cheat give 254 1
cheat give 344 1
goto 405 4 9
dismissall
talk 23
talkwait
giveitem 430
talkwait
takeitems
talkwait
leave
talkwait
waitidle 5000
count 452 1
# --- the restless soul at the graveyard at night
goto 263 9 7
dismissall
hour 23
trigger 9 6 Hand
talkwait 30000
waitbattle 15000
cheat win
talkwait
takeloot
closewindow
talkwait
count 453 1
# --- the poisonous snake on the island
cheat give 143 1
goto 249 37 13
dismissall
trigger 37 13 item:143
talkwait
takeloot
closewindow
talkwait
count 454 1
# --- the small blue crystal: the place on map 117, the beast at night, then digging
goto 117 41 31
dismissall
trigger 41 31 Eye
talkwait
hour 23
goto 117 22 36
talkwait 30000
waitbattle 15000
cheat win
talkwait
takeloot optional
closewindow
talkwait
goto 117 32 25
dismissall
trigger 32 25 item:143
talkwait
takeloot
closewindow
talkwait
count 455 1
# --- back to the crystals
goto 377 10 6
dismissall
trigger 11 6 Hand
talkwait
var 287 1
quest IsdirsTrials_BringGoldenWater Completed
goto 377 4 6
trigger 3 6 Hand
talkwait
var 288 1
goto 377 4 12
trigger 3 12 Hand
talkwait
var 289 1
goto 377 10 12
trigger 11 12 Hand
talkwait
var 290 1
quest IsdirsTrials_BringARestlessSoul Completed
quest IsdirsTrials_BringAPoisonousSnake Completed
quest IsdirsTrials_BringTheBlueCrystal Completed
quest IsdirsTrials_ReceiveIsdirsEssence Active
reloadquests
quest IsdirsTrials_ReceiveIsdirsEssence Active
# --- Isdir hands over his essence
goto 377 7 5
dismissall
trigger 7 4 Eye
talkwait
takeloot optional
closewindow
talkwait
var 298 1
quest IsdirsTrials_ReceiveIsdirsEssence Completed
mainquest IsdirsTrials Completed
reloadquests
quest IsdirsTrials_SearchForIsdirInTheVortex Completed
quest IsdirsTrials_MeetIsdirAtNight Completed
quest IsdirsTrials_BringGoldenWater Completed
quest IsdirsTrials_BringARestlessSoul Completed
quest IsdirsTrials_BringAPoisonousSnake Completed
quest IsdirsTrials_BringTheBlueCrystal Completed
quest IsdirsTrials_ReceiveIsdirsEssence Completed
mainquest IsdirsTrials Completed
exit
