Prev: 51129 Up: Map Next: 51165
51136: Event: Elvenkings Cellar
Runs this place's special event when a character's script reaches it. Reached through the event table at 51086, dispatched by Action_Direction.
EventElvenkingsCellar 51136 LD A,3 Write 3 to 51908.
51138 LD (51908),A
51141 LD HL,49466 Point HL at the attributes of 60 - "Red Golden Dragon".
51144 BIT 3,(HL) Jump to EventElvenkingsCellar_Skip if "Red Golden Dragon" is "broken" (bit 3 is set).
51146 JR NZ,EventElvenkingsCellar_Skip
51148 LD A,60 Write 60 to 51971.
51150 LD (51971),A
EventElvenkingsCellar_Skip 51153 LD HL,50378 Point HL at the attributes of 70 - "Bard".
51156 BIT 3,(HL) Return if the "Bard" is "broken" (bit 3 is set).
51158 RET NZ
51159 LD A,70 Write 70 to 51964.
51161 LD (51964),A
51164 RET Return.
Prev: 51129 Up: Map Next: 51165