Prev: 61969 Up: Map Next: 62153
62001: Wave: Flute
Wave the silver flute.
Wave_Flute 62001 LD A,38 Call IsPlayerCarryingItem with item 38: "A silver flute.".
62003 CALL IsPlayerCarryingItem
62006 CALL Response_OK_GameLoop Call Response_OK_GameLoop.
62009 LD HL,58671 HL=Data_ItemGroup_Bottle.
62012 CALL CheckActiveScenicEvents Call CheckActiveScenicEvents.
62015 JR NZ,Wave_Flute_0 Jump to Wave_Flute_0 if the Z flag is not set.
62017 CP 59 Jump to Wave_Flute_0 if A is 59.
62019 JR Z,Wave_Flute_0
62021 LD B,A Copy A into B.
62022 LD C,59 C=59.
62024 CALL TransformItem Call TransformItem.
Print "The bottle shatters.".
62027 LD HL,55607 HL=Messaging_TheBottleShatters.
62030 CALL PrintStringAndNewline Call PrintStringAndNewline.
Wave_Flute_0 62033 LD A,45 Call ValidateItemPresent with item 45: "A crystal bridge over the chasm.".
62035 CALL ValidateItemPresent
62038 JR Z,Wave_Flute_2 Jump to Wave_Flute_2 if the Z flag is set.
62040 LD A,46 Call ValidateItemPresent with item 46: "A crystal bridge over the chasm.".
62042 CALL ValidateItemPresent
62045 JR Z,Wave_Flute_2 Jump to Wave_Flute_2 if the Z flag is set.
62047 LD A,62 Call ValidateItemPresent with item 62: "Istar,held behind crystal bars.".
62049 CALL ValidateItemPresent
62052 JP Z,Wave_Mandolin_0 Jump to Wave_Mandolin_0 if the Z flag is set.
62055 LD A,88 Call IsItemInCurrentRoom with item 88: "A jade flower.".
62057 CALL IsItemInCurrentRoom
62060 RET NZ Return if the Z flag is not set.
62061 LD A,50 Call IsItemInCurrentRoom with item 50: "A velvet pillow.".
62063 CALL IsItemInCurrentRoom
62066 JR Z,Wave_Flute_1 Jump to Wave_Flute_1 if the Z flag is set.
62068 LD BC,22617 Call TransformItem to transform "A jade flower." into "Some jade fragments.".
62071 CALL TransformItem
Print "The flower drops onto the hard floor and shatters.".
62074 LD HL,55628 HL=Messaging_TheFlowerDropsOntoTheHardFloorAndShatters.
62077 JP PrintResponse Jump to PrintResponse.
Wave_Flute_1 62080 LD A,88 Call HandlerDestroyItemEvent with item 88: "A jade flower.".
62082 CALL HandlerDestroyItemEvent
62085 LD BC,12931 Call TransformItem to transform "A velvet pillow." into "A jade flower,resting on a velvet pillow.".
62088 CALL TransformItem
62091 LD A,3 Call AddToScore with 3.
62093 CALL AddToScore
Print "The flower drops and gently comes to rest on the pillow.".
62096 LD HL,55679 HL=Messaging_TheFlowerDropsAndGentlyComesToRest.
62099 JP PrintResponse Jump to PrintResponse.
Wave_Flute_2 62102 LD A,45 Call HandlerDestroyItemEvent with item 45: "A crystal bridge over the chasm.".
62104 CALL HandlerDestroyItemEvent
62107 LD A,46 Call HandlerDestroyItemEvent with item 46: "A crystal bridge over the chasm.".
62109 CALL HandlerDestroyItemEvent
62112 XOR A Write 0 to close the matching map exits.
62113 LD (59517),A
62116 LD (59564),A
Print "The bridge shudders and then crumbles away.".
62119 LD HL,55736 HL=Messaging_TheBridgeShuddersAndThenCrumblesAway.
62122 CALL PrintStringAndNewline Call PrintStringAndNewline.
62125 LD A,44 Call ValidateItemPresent with item 44: "A balrog.".
62127 CALL ValidateItemPresent
62130 RET NZ Return if the Z flag is not set.
62131 LD A,44 Call HandlerDestroyItemEvent with item 44: "A balrog.".
62133 CALL HandlerDestroyItemEvent
62136 LD A,3 Call AddToScore with 3.
62138 CALL AddToScore
62141 LD HL,44663 Set bit 2 of *Flag_BeachDug.
62144 SET 2,(HL)
Print "The balrog tumbles to its death.".
62146 LD HL,55780 HL=Messaging_TheBalrogTumblesToItsDeath.
62149 JP PausePrintAndScroll Jump to PausePrintAndScroll.
62152 NOP No operation.
Prev: 61969 Up: Map Next: 62153