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
|
Route4_PokemonCenter_1F_MapScripts:: @ 816F739
map_script 3, Route4_PokemonCenter_1F_MapScript1_16F744
map_script 5, Route4_PokemonCenter_1F_MapScript2_1BC05C
.byte 0
Route4_PokemonCenter_1F_MapScript1_16F744:: @ 816F744
setworldmapflag FLAG_WORLD_MAP_ROUTE4_POKEMON_CENTER_1F
setrespawn SPAWN_ROUTE4
end
Route4_PokemonCenter_1F_EventScript_16F74B:: @ 816F74B
msgbox gUnknown_819D9D4, 2
end
Route4_PokemonCenter_1F_EventScript_16F754:: @ 816F754
lock
msgbox gUnknown_819DA3A
release
end
Route4_PokemonCenter_1F_EventScript_16F75F:: @ 816F75F
lock
faceplayer
checkflag FLAG_BOUGHT_MAGIKARP
goto_if TRUE, EventScript_16F8A2
showmoneybox 0, 0, 0
checkplayergender
compare_var_to_value VAR_RESULT, 0
goto_if eq, EventScript_16F786
compare_var_to_value VAR_RESULT, 1
goto_if eq, EventScript_16F794
end
EventScript_16F786:: @ 816F786
msgbox gUnknown_819DA9A, MSGBOX_YESNO
goto EventScript_16F7A2
end
EventScript_16F794:: @ 816F794
msgbox gUnknown_819DB34, MSGBOX_YESNO
goto EventScript_16F7A2
end
EventScript_16F7A2:: @ 816F7A2
compare_var_to_value VAR_RESULT, 0
goto_if eq, EventScript_16F888
checkmoney 500, 0
compare_var_to_value VAR_RESULT, 0
goto_if eq, EventScript_16F895
textcolor 3
setvar VAR_0x4001, 129
givemon SPECIES_MAGIKARP, 5, ITEM_NONE, 0, 0, 0
compare_var_to_value VAR_RESULT, 0
goto_if eq, EventScript_16F7F6
compare_var_to_value VAR_RESULT, 1
goto_if eq, EventScript_16F822
compare_var_to_value VAR_RESULT, 2
goto_if eq, EventScript_16F8AC
end
EventScript_16F7F6:: @ 816F7F6
call EventScript_16F86F
msgbox gUnknown_81A56A7, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0
goto_if eq, EventScript_16F861
call EventScript_1A8C27
fadescreen 1
hidemoneybox 0, 0
special ChangePokemonNickname
waitstate
goto EventScript_16F86A
end
EventScript_16F822:: @ 816F822
call EventScript_16F86F
msgbox gUnknown_81A56A7, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0
goto_if eq, EventScript_16F84B
fadescreen 1
hidemoneybox 0, 0
special ChangeBoxPokemonNickname
waitstate
lock
faceplayer
goto EventScript_16F856
end
EventScript_16F84B:: @ 816F84B
call EventScript_1A8C3C
goto EventScript_16F861
end
EventScript_16F856:: @ 816F856
call EventScript_1A8C3C
goto EventScript_16F86A
end
EventScript_16F861:: @ 816F861
hidemoneybox 0, 0
goto EventScript_16F86A
end
EventScript_16F86A:: @ 816F86A
setflag FLAG_BOUGHT_MAGIKARP
release
end
EventScript_16F86F:: @ 816F86F
takemoney 500, 0
updatemoneybox 0, 0, 0
playfanfare MUS_FANFA1
message Text_19DBD3
waitmessage
waitfanfare
getspeciesname 0, SPECIES_MAGIKARP
return
EventScript_16F888:: @ 816F888
msgbox gUnknown_819DC07
hidemoneybox 0, 0
release
end
EventScript_16F895:: @ 816F895
msgbox gUnknown_819DC78
hidemoneybox 0, 0
release
end
EventScript_16F8A2:: @ 816F8A2
msgbox gUnknown_819DC9A
release
end
EventScript_16F8AC:: @ 816F8AC
textcolor 0
msgbox gUnknown_819DC3E
hidemoneybox 0, 0
release
end
Route4_PokemonCenter_1F_EventScript_16F8BB:: @ 816F8BB
lock
faceplayer
call EventScript_1A6578
release
end
Route4_PokemonCenter_1F_EventScript_16F8C4:: @ 816F8C4
msgbox gUnknown_819DCDB, 2
end
Route4_PokemonCenter_1F_EventScript_16F8CD:: @ 816F8CD
lock
msgbox gUnknown_819DD54
release
end
|