1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
|
BillsHouseScript: ; 1e76a (7:676a)
call EnableAutoTextBoxDrawing
ld a, [W_BILLSHOUSECURSCRIPT]
ld hl, BillsHouseScriptPointers
jp CallFunctionInTable
BillsHouseScriptPointers: ; 1e776 (7:6776)
dw BillsHouseScript0
dw BillsHouseScript1
dw BillsHouseScript2
dw BillsHouseScript3
dw BillsHouseScript4
dw BillsHouseScript5
BillsHouseScript0: ; 1e782 (7:6782)
ret
BillsHouseScript1: ; 1e783 (7:6783)
ld a, [$c109]
and a
ld de, MovementData_1e79c
jr nz, .asm_1e78f ; 0x1e78a $3
ld de, MovementData_1e7a0
.asm_1e78f
ld a, $1
ld [$ff8c], a
call MoveSprite
ld a, $2
ld [W_BILLSHOUSECURSCRIPT], a
ret
MovementData_1e79c: ; 1e79c (7:679c)
db $40,$40,$40,$FF
MovementData_1e7a0: ; 1e7a0 (7:67a0)
db $C0,$40,$40,$80,$40,$FF
BillsHouseScript2: ; 1e7a6 (7:67a6)
ld a, [$d730]
bit 0, a
ret nz
ld a, $61
ld [$cc4d], a
ld a, $11
call Predef
ld hl, $d7f2
set 6, [hl]
xor a
ld [wJoypadForbiddenButtonsMask], a
ld a, $3
ld [W_BILLSHOUSECURSCRIPT], a
ret
BillsHouseScript3: ; 1e7c5 (7:67c5)
ld a, [$d7f2]
bit 3, a
ret z
ld a, $f0
ld [wJoypadForbiddenButtonsMask], a
ld a, $2
ld [$cf13], a
ld a, $c
ld [$ffeb], a
ld a, $40
ld [$ffec], a
ld a, $6
ld [$ffed], a
ld a, $5
ld [$ffee], a
call Func_32f9
ld a, $62
ld [$cc4d], a
ld a, $15
call Predef
ld c, $8
call DelayFrames
ld a, $2
ld [$ff8c], a
ld de, MovementData_1e807
call MoveSprite
ld a, $4
ld [W_BILLSHOUSECURSCRIPT], a
ret
MovementData_1e807: ; 1e807 (7:6807)
db $00,$C0,$C0,$C0,$00,$FF
BillsHouseScript4: ; 1e80d (7:680d)
ld a, [$d730]
bit 0, a
ret nz
xor a
ld [wJoypadForbiddenButtonsMask], a
ld hl, $d7f2
set 5, [hl]
ld hl, $d7f1
set 0, [hl]
ld a, $0
ld [W_BILLSHOUSECURSCRIPT], a
ret
BillsHouseScript5: ; 1e827 (7:6827)
ld a, $4
ld [$ff8c], a
call DisplayTextID
ld a, $0
ld [W_BILLSHOUSECURSCRIPT], a
ret
BillsHouseTextPointers: ; 1e834 (7:6834)
dw BillsHouseText1
dw BillsHouseText2
dw BillsHouseText3
dw BillsHouseText4
BillsHouseText4: ; 1e83c (7:683c)
db $fd
BillsHouseText1: ; 1e83d (7:683d)
db $8
ld hl, BillsHouseText_1e865
call PrintText
call YesNoChoice
ld a, [$cc26]
and a
jr nz, asm_6b196 ; 0x1e84b $d
asm_4d03c: ; 1e84d (7:684d)
ld hl, BillsHouseText_1e86a
call PrintText
ld a, $1
ld [W_BILLSHOUSECURSCRIPT], a
jr asm_fd4e2 ; 0x1e858 $8
asm_6b196: ; 1e85a (7:685a)
ld hl, BillsHouseText_1e86f
call PrintText
jr asm_4d03c ; 0x1e860 $eb
asm_fd4e2 ; 0x1e862
jp TextScriptEnd
BillsHouseText_1e865: ; 1e865 (7:6865)
TX_FAR _BillsHouseText_1e865 ; 0x8d267
db "@"
BillsHouseText_1e86a: ; 1e86a (7:686a)
TX_FAR _BillsHouseText_1e86a ; 0x8d345
db "@"
BillsHouseText_1e86f: ; 1e86f (7:686f)
TX_FAR _BillsHouseText_1e86f ; 0x8d391
db "@"
BillsHouseText2: ; 1e874 (7:6874)
db $08 ; asm
ld a, [$d7f2]
bit 4, a
jr nz, .asm_5491f ; 0x1e87a
ld hl, BillThankYouText
call PrintText
ld bc, (S_S__TICKET << 8) | 1
call GiveItem
jr nc, .BagFull
ld hl, SSTicketReceivedText
call PrintText
ld hl, $d7f2
set 4, [hl]
ld a, $7
ld [$cc4d], a
ld a, $15
call Predef
ld a, $9
ld [$cc4d], a
ld a, $11
call Predef
.asm_5491f ; 0x1e8a9
ld hl, BillsHouseText_1e8cb
call PrintText
jr .asm_bd408 ; 0x1e8af
.BagFull
ld hl, SSTicketNoRoomText
call PrintText
.asm_bd408 ; 0x1e8b7
jp TextScriptEnd
BillThankYouText: ; 1e8ba (7:68ba)
TX_FAR _BillThankYouText
db "@"
SSTicketReceivedText: ; 1e8bf (7:68bf)
TX_FAR _SSTicketReceivedText
db $11, $6, "@"
SSTicketNoRoomText: ; 1e8c6 (7:68c6)
TX_FAR _SSTicketNoRoomText
db "@"
BillsHouseText_1e8cb: ; 1e8cb (7:68cb)
TX_FAR _BillsHouseText_1e8cb
db "@"
BillsHouseText3: ; 1e8d0 (7:68d0)
db $08 ; asm
ld hl, BillsHouseText_1e8da
call PrintText
jp TextScriptEnd
BillsHouseText_1e8da: ; 1e8da (7:68da)
TX_FAR _BillsHouseText_1e8da
db "@"
|