# Lyramion's Faith edge case: GIVE Shandra's amber to grandfather instead of showing it
# (original game and Advanced, any language). Start: --load 0
# Grandfather's GiveItem 209 chain only prints "No, no, keep it!" + text 7, the amber stays in the inventory.
# The custom variable 8189 is also set for GiveItem, so "Bring the stone to grandfather" must be completed.
waitidle 20000
dismissall
cheat light 3
cheat godmode 1
cheat give 138 10
quest LyramionsFaith_TalkToShandraInNewlake Inactive
# --- grandfather (NPC 1) tells the story and teaches "Wine"
talk 1
talkwait
say 0
talkwait
leave
talkwait
waitidle 5000
quest LyramionsFaith_TalkToShandraInNewlake Active
quest LyramionsFaith_EnterTheTempleOfBrotherhood Inactive
quest LyramionsFaith_BringShandrasStoneToGrandfather Inactive
quest LyramionsFaith_UseShandrasStone Inactive
# --- Shandra's amber in the old cave (map 260, treasure 24 at 26,7). Stand east of it (26,8 is the cave-in text).
goto 260 27 7
trigger 26 7 Eye
talkwait
takeloot
count 209 1
closewindow
talkwait
quest LyramionsFaith_BringShandrasStoneToGrandfather Active
quest LyramionsFaith_UseShandrasStone Inactive
quest LyramionsFaith_TalkToShandraInNewlake Active
# --- give the amber to grandfather
cheat teleport 258 3 15
wait 2000
dismissall
talk 1
talkwait
giveitem 209
talkwait
leave
talkwait
waitidle 5000
var 8189 1
# he does not take it
count 209 1
quest LyramionsFaith_BringShandrasStoneToGrandfather Completed
quest LyramionsFaith_UseShandrasStone Active
reloadquests
quest LyramionsFaith_TalkToShandraInNewlake Active
quest LyramionsFaith_BringShandrasStoneToGrandfather Completed
quest LyramionsFaith_UseShandrasStone Active
quest LyramionsFaith_EnterSecretRoomInLibrary Inactive
exit
