#include "macros/scrcmd.inc"
#include "res/text/bank/unk_0369.h"


    ScriptEntry _0522
    ScriptEntry _0536
    ScriptEntry _054A
    ScriptEntry _055E
    ScriptEntry _0572
    ScriptEntry _0586
    ScriptEntry _059A
    ScriptEntry _05AE
    ScriptEntry _05C2
    ScriptEntry _05D6
    ScriptEntry _05EA
    ScriptEntry _05FE
    ScriptEntry _0612
    ScriptEntry _0626
    ScriptEntry _063A
    ScriptEntry _064E
    ScriptEntry _0662
    ScriptEntry _0676
    ScriptEntry _068A
    ScriptEntry _069E
    ScriptEntry _06B2
    ScriptEntry _06C6
    ScriptEntry _06DA
    ScriptEntry _06EE
    ScriptEntry _0702
    ScriptEntry _0716
    ScriptEntry _072A
    ScriptEntry _073E
    ScriptEntry _0752
    ScriptEntry _0766
    ScriptEntry _077A
    ScriptEntry _078E
    ScriptEntry _07A2
    ScriptEntry _07B6
    ScriptEntry _07CA
    ScriptEntry _07DE
    ScriptEntry _07F2
    ScriptEntry _0806
    ScriptEntry _081A
    ScriptEntry _082E
    ScriptEntry _0842
    ScriptEntry _0856
    ScriptEntry _086A
    ScriptEntry _087E
    ScriptEntry _0892
    ScriptEntry _08A6
    ScriptEntry _08BA
    ScriptEntry _08CE
    ScriptEntry _08E2
    ScriptEntry _08F6
    ScriptEntry _090A
    ScriptEntry _091E
    ScriptEntry _0932
    ScriptEntry _0946
    ScriptEntry _095A
    ScriptEntry _096E
    ScriptEntry _0982
    ScriptEntry _0996
    ScriptEntry _09AA
    ScriptEntry _09BE
    ScriptEntry _09D2
    ScriptEntry _09E6
    ScriptEntry _09FA
    ScriptEntry _0A0E
    ScriptEntry _0A22
    ScriptEntry _0A36
    ScriptEntry _0A4A
    ScriptEntry _0A5E
    ScriptEntry _0A72
    ScriptEntry _0A86
    ScriptEntry _0A9A
    ScriptEntry _0AAE
    ScriptEntry _0AC2
    ScriptEntry _0AD6
    ScriptEntry _0AEA
    ScriptEntry _0AFE
    ScriptEntry _0B12
    ScriptEntry _0B26
    ScriptEntry _0B3A
    ScriptEntry _0B4E
    ScriptEntry _0B62
    ScriptEntry _0B76
    ScriptEntry _0B8A
    ScriptEntry _0B9E
    ScriptEntry _0BB2
    ScriptEntry _0BC6
    ScriptEntry _0BDA
    ScriptEntry _0BEE
    ScriptEntry _0C02
    ScriptEntry _0C16
    ScriptEntry _0C2A
    ScriptEntry _0C3E
    ScriptEntry _0C52
    ScriptEntry _0C66
    ScriptEntry _0C7A
    ScriptEntry _0C8E
    ScriptEntry _0CA2
    ScriptEntry _0CB6
    ScriptEntry _0CCA
    ScriptEntry _0CDE
    ScriptEntry _0CF2
    ScriptEntry _0D06
    ScriptEntry _0D1A
    ScriptEntry _0D2E
    ScriptEntry _0D42
    ScriptEntry _0D56
    ScriptEntry _0D6A
    ScriptEntry _0D7E
    ScriptEntry _0D92
    ScriptEntry _0DA6
    ScriptEntry _0DBA
    ScriptEntry _0DCE
    ScriptEntry _0DE2
    ScriptEntry _0DF6
    ScriptEntry _0E0A
    ScriptEntry _0E1E
    ScriptEntry _0E32
    ScriptEntry _0E46
    ScriptEntry _0E5A
    ScriptEntry _0E6E
    ScriptEntry _0E82
    ScriptEntry _0E96
    ScriptEntry _0EAA
    ScriptEntry _0EBE
    ScriptEntry _0ED2
    ScriptEntry _0EE6
    ScriptEntry _0EFA
    ScriptEntry _0F0E
    ScriptEntry _0F22
    ScriptEntry _0F36
    ScriptEntry _0F4A
    ScriptEntry _0F5E
    ScriptEntry _0F72
    ScriptEntry _0F86
    ScriptEntry _0F9A
    ScriptEntry _0FAE
    ScriptEntry _0FC2
    ScriptEntry _0FD6
    ScriptEntry _0FEA
    ScriptEntry _0FFE
    ScriptEntry _1012
    ScriptEntry _1026
    ScriptEntry _103A
    ScriptEntry _104E
    ScriptEntry _1062
    ScriptEntry _1076
    ScriptEntry _108A
    ScriptEntry _109E
    ScriptEntry _10B2
    ScriptEntry _10C6
    ScriptEntry _10DA
    ScriptEntry _10EE
    ScriptEntry _1102
    ScriptEntry _1116
    ScriptEntry _112A
    ScriptEntry _113E
    ScriptEntry _1152
    ScriptEntry _1166
    ScriptEntry _117A
    ScriptEntry _118E
    ScriptEntry _11A2
    ScriptEntry _11B6
    ScriptEntry _11CA
    ScriptEntry _11DE
    ScriptEntry _11F2
    ScriptEntry _1206
    ScriptEntry _121A
    ScriptEntry _122E
    ScriptEntry _1242
    ScriptEntry _1256
    ScriptEntry _126A
    ScriptEntry _127E
    ScriptEntry _1292
    ScriptEntry _12A6
    ScriptEntry _12BA
    ScriptEntry _12CE
    ScriptEntry _12E2
    ScriptEntry _12F6
    ScriptEntry _130A
    ScriptEntry _131E
    ScriptEntry _1332
    ScriptEntry _1346
    ScriptEntry _135A
    ScriptEntry _136E
    ScriptEntry _1382
    ScriptEntry _1396
    ScriptEntry _13AA
    ScriptEntry _13BE
    ScriptEntry _13D2
    ScriptEntry _13E6
    ScriptEntry _13FA
    ScriptEntry _140E
    ScriptEntry _1422
    ScriptEntry _1436
    ScriptEntry _144A
    ScriptEntry _145E
    ScriptEntry _1472
    ScriptEntry _1486
    ScriptEntry _149A
    ScriptEntry _14AE
    ScriptEntry _14C2
    ScriptEntry _14D6
    ScriptEntry _14EA
    ScriptEntry _14FE
    ScriptEntry _1512
    ScriptEntry _1526
    ScriptEntry _153A
    ScriptEntry _154E
    ScriptEntry _1562
    ScriptEntry _1576
    ScriptEntry _158A
    ScriptEntry _159E
    ScriptEntry _15B2
    ScriptEntry _15C6
    ScriptEntry _15DA
    ScriptEntry _15EE
    ScriptEntry _1602
    ScriptEntry _1616
    ScriptEntry _162A
    ScriptEntry _163E
    ScriptEntry _1652
    ScriptEntry _1666
    ScriptEntry _167A
    ScriptEntry _168E
    ScriptEntry _16A2
    ScriptEntry _16B6
    ScriptEntry _16CA
    ScriptEntry _16DE
    ScriptEntry _16F2
    ScriptEntry _1706
    ScriptEntry _171A
    ScriptEntry _172E
    ScriptEntry _1742
    ScriptEntry _1756
    ScriptEntry _176A
    ScriptEntry _177E
    ScriptEntry _1792
    ScriptEntry _17A6
    ScriptEntry _17BA
    ScriptEntry _17CE
    ScriptEntry _17E2
    ScriptEntry _17F6
    ScriptEntry _180A
    ScriptEntry _181E
    ScriptEntry _1832
    ScriptEntry _1846
    ScriptEntry _185A
    ScriptEntry _186E
    ScriptEntry _1882
    ScriptEntry _1896
    ScriptEntry _18AA
    ScriptEntry _18BE
    ScriptEntry _18D2
    ScriptEntry _18E6
    ScriptEntry _18FA
    ScriptEntry _190E
    ScriptEntry _1922
    ScriptEntry _1936
    ScriptEntry _194A
    ScriptEntry _195E
    ScriptEntry _1972
    ScriptEntry _1986
    ScriptEntry _199A
    ScriptEntry _19AE
    ScriptEntry _19C2
    ScriptEntry _19D6
    ScriptEntry _19EA
    ScriptEntry _19FE
    ScriptEntry _1A12
    ScriptEntry _1A26
    ScriptEntry _1A3A
    ScriptEntry _1A4E
    ScriptEntry _1A62
    ScriptEntry _1A76
    ScriptEntry _1A8A
    ScriptEntry _1A9E
    ScriptEntry _1AB2
    ScriptEntry _1AC6
    ScriptEntry _1ADA
    ScriptEntry _1AEE
    ScriptEntry _1B02
    ScriptEntry _1B16
    ScriptEntry _1B2A
    ScriptEntry _1B3E
    ScriptEntry _1B52
    ScriptEntry _1B66
    ScriptEntry _1B7A
    ScriptEntry _1B8E
    ScriptEntry _1BA2
    ScriptEntry _1BB6
    ScriptEntry _1BCA
    ScriptEntry _1BDE
    ScriptEntry _1BF2
    ScriptEntry _1C06
    ScriptEntry _1C1A
    ScriptEntry _1C2E
    ScriptEntry _1C42
    ScriptEntry _1C56
    ScriptEntry _1C6A
    ScriptEntry _1C7E
    ScriptEntry _1C92
    ScriptEntry _1CA6
    ScriptEntry _1CBA
    ScriptEntry _1CCE
    ScriptEntry _1CE2
    ScriptEntry _1CF6
    ScriptEntry _1D0A
    ScriptEntry _1D1E
    ScriptEntry _1D32
    ScriptEntry _1D46
    ScriptEntry _1D5A
    ScriptEntry _1D6E
    ScriptEntry _1D82
    ScriptEntry _1D96
    ScriptEntry _1DAA
    ScriptEntry _1DBE
    ScriptEntry _1DD2
    ScriptEntry _1DE6
    ScriptEntry _1DFA
    ScriptEntry _1E0E
    ScriptEntry _1E22
    ScriptEntry _1E36
    ScriptEntry _1E4A
    ScriptEntry _1E5E
    ScriptEntry _1E72
    ScriptEntry _1E86
    ScriptEntry _1E9A
    ScriptEntry _1EAE
    ScriptEntryEnd

_0522:
    SetVar VAR_0x8008, ITEM_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0536:
    SetVar VAR_0x8008, ITEM_REPEL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_054A:
    SetVar VAR_0x8008, ITEM_POKE_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_055E:
    SetVar VAR_0x8008, ITEM_TM01
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0572:
    SetVar VAR_0x8008, ITEM_TM31
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0586:
    SetVar VAR_0x8008, ITEM_TM70
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_059A:
    SetVar VAR_0x8008, ITEM_EARTH_PLATE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_05AE:
    SetVar VAR_0x8008, ITEM_ESCAPE_ROPE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_05C2:
    SetVar VAR_0x8008, ITEM_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_05D6:
    SetVar VAR_0x8008, ITEM_SEA_INCENSE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_05EA:
    SetVar VAR_0x8008, ITEM_HP_UP
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_05FE:
    SetVar VAR_0x8008, ITEM_TM39
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0612:
    SetVar VAR_0x8008, ITEM_LUCK_INCENSE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0626:
    SetVar VAR_0x8008, ITEM_TM03
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_063A:
    SetVar VAR_0x8008, ITEM_TM09
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_064E:
    SetVar VAR_0x8008, ITEM_TM24
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0662:
    SetVar VAR_0x8008, ITEM_HEAL_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0676:
    SetVar VAR_0x8008, ITEM_X_SP_DEF
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_068A:
    SetVar VAR_0x8008, ITEM_ANTIDOTE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_069E:
    SetVar VAR_0x8008, ITEM_PARLYZ_HEAL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_06B2:
    SetVar VAR_0x8008, ITEM_NET_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_06C6:
    SetVar VAR_0x8008, ITEM_GREEN_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_06DA:
    SetVar VAR_0x8008, ITEM_OLD_GATEAU
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_06EE:
    SetVar VAR_0x8008, ITEM_GUARD_SPEC
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0702:
    SetVar VAR_0x8008, ITEM_TM46
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0716:
    SetVar VAR_0x8008, ITEM_PP_UP
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_072A:
    SetVar VAR_0x8008, ITEM_SUPER_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_073E:
    SetVar VAR_0x8008, ITEM_TM12
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0752:
    SetVar VAR_0x8008, ITEM_TM82
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0766:
    SetVar VAR_0x8008, ITEM_SILVERPOWDER
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_077A:
    SetVar VAR_0x8008, ITEM_POISON_BARB
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_078E:
    SetVar VAR_0x8008, ITEM_PP_UP
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_07A2:
    SetVar VAR_0x8008, ITEM_SUPER_REPEL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_07B6:
    SetVar VAR_0x8008, ITEM_BURN_HEAL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_07CA:
    SetVar VAR_0x8008, ITEM_TM32
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_07DE:
    SetVar VAR_0x8008, ITEM_REVIVE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_07F2:
    SetVar VAR_0x8008, ITEM_ESCAPE_ROPE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0806:
    SetVar VAR_0x8008, ITEM_ADAMANT_ORB
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_081A:
    SetVar VAR_0x8008, ITEM_TM26
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_082E:
    SetVar VAR_0x8008, ITEM_LUSTROUS_ORB
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0842:
    SetVar VAR_0x8008, ITEM_MAX_ETHER
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0856:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_086A:
    SetVar VAR_0x8008, ITEM_GRIP_CLAW
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_087E:
    SetVar VAR_0x8008, ITEM_POKE_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0892:
    SetVar VAR_0x8008, ITEM_REVIVE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_08A6:
    SetVar VAR_0x8008, ITEM_IRON
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_08BA:
    SetVar VAR_0x8008, ITEM_PROTEIN
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_08CE:
    SetVar VAR_0x8008, ITEM_DAWN_STONE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_08E2:
    SetVar VAR_0x8008, ITEM_CARBOS
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_08F6:
    SetVar VAR_0x8008, ITEM_GREAT_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_090A:
    SetVar VAR_0x8008, ITEM_ETHER
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_091E:
    SetVar VAR_0x8008, ITEM_TM45
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0932:
    SetVar VAR_0x8008, ITEM_TM43
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0946:
    SetVar VAR_0x8008, ITEM_SPOOKY_PLATE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_095A:
    SetVar VAR_0x8008, ITEM_TM11
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_096E:
    SetVar VAR_0x8008, ITEM_ROSE_INCENSE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0982:
    SetVar VAR_0x8008, ITEM_ELIXIR
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0996:
    SetVar VAR_0x8008, ITEM_TM87
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_09AA:
    SetVar VAR_0x8008, ITEM_LUXURY_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_09BE:
    SetVar VAR_0x8008, ITEM_FULL_HEAL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_09D2:
    SetVar VAR_0x8008, ITEM_TM84
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_09E6:
    SetVar VAR_0x8008, ITEM_TM62
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_09FA:
    SetVar VAR_0x8008, ITEM_ZINC
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0A0E:
    SetVar VAR_0x8008, ITEM_HYPER_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0A22:
    SetVar VAR_0x8008, ITEM_TM06
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0A36:
    SetVar VAR_0x8008, ITEM_REVIVE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0A4A:
    SetVar VAR_0x8008, ITEM_YELLOW_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0A5E:
    SetVar VAR_0x8008, ITEM_POKE_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0A72:
    SetVar VAR_0x8008, ITEM_BLUE_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0A86:
    SetVar VAR_0x8008, ITEM_POKE_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0A9A:
    SetVar VAR_0x8008, ITEM_GREAT_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0AAE:
    SetVar VAR_0x8008, ITEM_GREEN_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0AC2:
    SetVar VAR_0x8008, ITEM_GREAT_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0AD6:
    SetVar VAR_0x8008, ITEM_RED_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0AEA:
    SetVar VAR_0x8008, ITEM_MYSTIC_WATER
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0AFE:
    SetVar VAR_0x8008, ITEM_TM05
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0B12:
    SetVar VAR_0x8008, ITEM_TM40
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0B26:
    SetVar VAR_0x8008, ITEM_YELLOW_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0B3A:
    SetVar VAR_0x8008, ITEM_MAX_REVIVE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0B4E:
    SetVar VAR_0x8008, ITEM_WATER_STONE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0B62:
    SetVar VAR_0x8008, ITEM_PP_UP
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0B76:
    SetVar VAR_0x8008, ITEM_PROTEIN
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0B8A:
    SetVar VAR_0x8008, ITEM_PARLYZ_HEAL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0B9E:
    SetVar VAR_0x8008, ITEM_TM85
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0BB2:
    SetVar VAR_0x8008, ITEM_ULTRA_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0BC6:
    SetVar VAR_0x8008, ITEM_ETHER
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0BDA:
    SetVar VAR_0x8008, ITEM_GREAT_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0BEE:
    SetVar VAR_0x8008, ITEM_HYPER_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0C02:
    SetVar VAR_0x8008, ITEM_CALCIUM
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0C16:
    SetVar VAR_0x8008, ITEM_TM47
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0C2A:
    SetVar VAR_0x8008, ITEM_TM19
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0C3E:
    SetVar VAR_0x8008, ITEM_OVAL_STONE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0C52:
    SetVar VAR_0x8008, ITEM_LUNAR_WING
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0C66:
    SetVar VAR_0x8008, ITEM_REVIVE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0C7A:
    SetVar VAR_0x8008, ITEM_TM27
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0C8E:
    SetVar VAR_0x8008, ITEM_MIND_PLATE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0CA2:
    SetVar VAR_0x8008, ITEM_ODD_INCENSE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0CB6:
    SetVar VAR_0x8008, ITEM_NUGGET
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0CCA:
    SetVar VAR_0x8008, ITEM_HM05
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0CDE:
    SetVar VAR_0x8008, ITEM_SUPER_REPEL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0CF2:
    SetVar VAR_0x8008, ITEM_MAX_REPEL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0D06:
    SetVar VAR_0x8008, ITEM_PURE_INCENSE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0D1A:
    SetVar VAR_0x8008, ITEM_NEST_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0D2E:
    SetVar VAR_0x8008, ITEM_HYPER_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0D42:
    SetVar VAR_0x8008, ITEM_FIST_PLATE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0D56:
    SetVar VAR_0x8008, ITEM_HYPER_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0D6A:
    SetVar VAR_0x8008, ITEM_MAX_ETHER
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0D7E:
    SetVar VAR_0x8008, ITEM_FULL_HEAL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0D92:
    SetVar VAR_0x8008, ITEM_TM34
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0DA6:
    SetVar VAR_0x8008, ITEM_FULL_INCENSE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0DBA:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0DCE:
    SetVar VAR_0x8008, ITEM_DUSK_STONE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0DE2:
    SetVar VAR_0x8008, ITEM_BIG_ROOT
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0DF6:
    SetVar VAR_0x8008, ITEM_RED_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0E0A:
    SetVar VAR_0x8008, ITEM_MAX_REPEL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0E1E:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0E32:
    SetVar VAR_0x8008, ITEM_TM28
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0E46:
    SetVar VAR_0x8008, ITEM_SMOKE_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0E5A:
    SetVar VAR_0x8008, ITEM_WAVE_INCENSE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0E6E:
    SetVar VAR_0x8008, ITEM_TM30
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0E82:
    SetVar VAR_0x8008, ITEM_TM35
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0E96:
    SetVar VAR_0x8008, ITEM_ROCK_INCENSE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0EAA:
    SetVar VAR_0x8008, ITEM_CALCIUM
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0EBE:
    SetVar VAR_0x8008, ITEM_FIRE_STONE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0ED2:
    SetVar VAR_0x8008, ITEM_ANTIDOTE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0EE6:
    SetVar VAR_0x8008, ITEM_SPLASH_PLATE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0EFA:
    SetVar VAR_0x8008, ITEM_REPEL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0F0E:
    SetVar VAR_0x8008, ITEM_CARBOS
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0F22:
    SetVar VAR_0x8008, ITEM_MAX_REPEL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0F36:
    SetVar VAR_0x8008, ITEM_ULTRA_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0F4A:
    SetVar VAR_0x8008, ITEM_PROTEIN
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0F5E:
    SetVar VAR_0x8008, ITEM_TM81
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0F72:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0F86:
    SetVar VAR_0x8008, ITEM_HYPER_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0F9A:
    SetVar VAR_0x8008, ITEM_TM89
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0FAE:
    SetVar VAR_0x8008, ITEM_PROTECTOR
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0FC2:
    SetVar VAR_0x8008, ITEM_ESCAPE_ROPE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0FD6:
    SetVar VAR_0x8008, ITEM_MAX_REPEL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0FEA:
    SetVar VAR_0x8008, ITEM_ELIXIR
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_0FFE:
    SetVar VAR_0x8008, ITEM_TM23
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1012:
    SetVar VAR_0x8008, ITEM_DUSK_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1026:
    SetVar VAR_0x8008, ITEM_MAX_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_103A:
    SetVar VAR_0x8008, ITEM_ULTRA_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_104E:
    SetVar VAR_0x8008, ITEM_HP_UP
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1062:
    SetVar VAR_0x8008, ITEM_SHINY_STONE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1076:
    SetVar VAR_0x8008, ITEM_SUPER_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_108A:
    SetVar VAR_0x8008, ITEM_MIRACLE_SEED
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_109E:
    SetVar VAR_0x8008, ITEM_TM29
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_10B2:
    SetVar VAR_0x8008, ITEM_TM69
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_10C6:
    SetVar VAR_0x8008, ITEM_ESCAPE_ROPE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_10DA:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_10EE:
    SetVar VAR_0x8008, ITEM_SOFT_SAND
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1102:
    SetVar VAR_0x8008, ITEM_LIGHT_CLAY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1116:
    SetVar VAR_0x8008, ITEM_ULTRA_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_112A:
    SetVar VAR_0x8008, ITEM_FULL_RESTORE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_113E:
    SetVar VAR_0x8008, ITEM_MAX_ELIXIR
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1152:
    SetVar VAR_0x8008, ITEM_REVIVE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1166:
    SetVar VAR_0x8008, ITEM_TM13
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_117A:
    SetVar VAR_0x8008, ITEM_MENTAL_HERB
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_118E:
    SetVar VAR_0x8008, ITEM_FULL_HEAL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_11A2:
    SetVar VAR_0x8008, ITEM_TM07
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_11B6:
    SetVar VAR_0x8008, ITEM_HM08
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_11CA:
    SetVar VAR_0x8008, ITEM_IRON
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_11DE:
    SetVar VAR_0x8008, ITEM_ULTRA_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_11F2:
    SetVar VAR_0x8008, ITEM_TM36
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1206:
    SetVar VAR_0x8008, ITEM_TM49
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_121A:
    SetVar VAR_0x8008, ITEM_TM21
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_122E:
    SetVar VAR_0x8008, ITEM_MAX_REVIVE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1242:
    SetVar VAR_0x8008, ITEM_MAX_ELIXIR
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1256:
    SetVar VAR_0x8008, ITEM_BIG_PEARL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_126A:
    SetVar VAR_0x8008, ITEM_MAX_REVIVE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_127E:
    SetVar VAR_0x8008, ITEM_TM80
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1292:
    SetVar VAR_0x8008, ITEM_MAX_REPEL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_12A6:
    SetVar VAR_0x8008, ITEM_ESCAPE_ROPE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_12BA:
    SetVar VAR_0x8008, ITEM_TM02
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_12CE:
    SetVar VAR_0x8008, ITEM_CARBOS
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_12E2:
    SetVar VAR_0x8008, ITEM_FULL_RESTORE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_12F6:
    SetVar VAR_0x8008, ITEM_THUNDERSTONE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_130A:
    SetVar VAR_0x8008, ITEM_ULTRA_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_131E:
    SetVar VAR_0x8008, ITEM_DIVE_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1332:
    SetVar VAR_0x8008, ITEM_TM18
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1346:
    SetVar VAR_0x8008, ITEM_TM41
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_135A:
    SetVar VAR_0x8008, ITEM_MAX_REPEL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_136E:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1382:
    SetVar VAR_0x8008, ITEM_ZINC
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1396:
    SetVar VAR_0x8008, ITEM_RAZOR_CLAW
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_13AA:
    SetVar VAR_0x8008, ITEM_MAX_ELIXIR
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_13BE:
    SetVar VAR_0x8008, ITEM_FULL_RESTORE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_13D2:
    SetVar VAR_0x8008, ITEM_TM79
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_13E6:
    SetVar VAR_0x8008, ITEM_TM71
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_13FA:
    SetVar VAR_0x8008, ITEM_TM59
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_140E:
    SetVar VAR_0x8008, ITEM_FULL_RESTORE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1422:
    SetVar VAR_0x8008, ITEM_DUSK_STONE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1436:
    SetVar VAR_0x8008, ITEM_NUGGET
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_144A:
    SetVar VAR_0x8008, ITEM_RAZOR_CLAW
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_145E:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1472:
    SetVar VAR_0x8008, ITEM_DESTINY_KNOT
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1486:
    SetVar VAR_0x8008, ITEM_LEFTOVERS
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_149A:
    SetVar VAR_0x8008, ITEM_RAZOR_FANG
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_14AE:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_14C2:
    SetVar VAR_0x8008, ITEM_HP_UP
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_14D6:
    SetVar VAR_0x8008, ITEM_LAX_INCENSE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_14EA:
    SetVar VAR_0x8008, ITEM_DUBIOUS_DISC
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_14FE:
    SetVar VAR_0x8008, ITEM_DAWN_STONE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1512:
    SetVar VAR_0x8008, ITEM_REVIVE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1526:
    SetVar VAR_0x8008, ITEM_TM53
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_153A:
    SetVar VAR_0x8008, ITEM_LAGGING_TAIL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_154E:
    SetVar VAR_0x8008, ITEM_CARBOS
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1562:
    SetVar VAR_0x8008, ITEM_CHARCOAL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1576:
    SetVar VAR_0x8008, ITEM_ZINC
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_158A:
    SetVar VAR_0x8008, ITEM_MAX_ELIXIR
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_159E:
    SetVar VAR_0x8008, ITEM_LIFE_ORB
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_15B2:
    SetVar VAR_0x8008, ITEM_FULL_HEAL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_15C6:
    SetVar VAR_0x8008, ITEM_ESCAPE_ROPE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_15DA:
    SetVar VAR_0x8008, ITEM_PP_UP
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_15EE:
    SetVar VAR_0x8008, ITEM_FULL_RESTORE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1602:
    SetVar VAR_0x8008, ITEM_TM50
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1616:
    SetVar VAR_0x8008, ITEM_IRON_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_162A:
    SetVar VAR_0x8008, ITEM_MAX_ELIXIR
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_163E:
    SetVar VAR_0x8008, ITEM_NUGGET
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1652:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1666:
    SetVar VAR_0x8008, ITEM_ULTRA_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_167A:
    SetVar VAR_0x8008, ITEM_MAX_REVIVE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_168E:
    SetVar VAR_0x8008, ITEM_CALCIUM
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_16A2:
    SetVar VAR_0x8008, ITEM_PROTECTOR
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_16B6:
    SetVar VAR_0x8008, ITEM_IRON
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_16CA:
    SetVar VAR_0x8008, ITEM_SHINY_STONE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_16DE:
    SetVar VAR_0x8008, ITEM_SHED_SHELL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_16F2:
    SetVar VAR_0x8008, ITEM_TM37
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1706:
    SetVar VAR_0x8008, ITEM_REAPER_CLOTH
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_171A:
    SetVar VAR_0x8008, ITEM_PROTEIN
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_172E:
    SetVar VAR_0x8008, ITEM_FULL_RESTORE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1742:
    SetVar VAR_0x8008, ITEM_NUGGET
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1756:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_176A:
    SetVar VAR_0x8008, ITEM_LEAF_STONE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_177E:
    SetVar VAR_0x8008, ITEM_POKE_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1792:
    SetVar VAR_0x8008, ITEM_HM02
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_17A6:
    SetVar VAR_0x8008, ITEM_GALACTIC_KEY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_17BA:
    SetVar VAR_0x8008, ITEM_STORAGE_KEY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_17CE:
    SetVar VAR_0x8008, ITEM_TM38
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_17E2:
    SetVar VAR_0x8008, ITEM_TM25
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_17F6:
    SetVar VAR_0x8008, ITEM_TM14
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_180A:
    SetVar VAR_0x8008, ITEM_CALCIUM
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_181E:
    SetVar VAR_0x8008, ITEM_FULL_HEAL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1832:
    SetVar VAR_0x8008, ITEM_ZINC
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1846:
    SetVar VAR_0x8008, ITEM_RAZOR_FANG
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_185A:
    SetVar VAR_0x8008, ITEM_HP_UP
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_186E:
    SetVar VAR_0x8008, ITEM_DREAD_PLATE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1882:
    SetVar VAR_0x8008, ITEM_TM90
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1896:
    SetVar VAR_0x8008, ITEM_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_18AA:
    SetVar VAR_0x8008, ITEM_AMULET_COIN
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_18BE:
    SetVar VAR_0x8008, ITEM_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_18D2:
    SetVar VAR_0x8008, ITEM_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_18E6:
    SetVar VAR_0x8008, ITEM_SUPER_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_18FA:
    SetVar VAR_0x8008, ITEM_AWAKENING
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_190E:
    SetVar VAR_0x8008, ITEM_X_DEFENSE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1922:
    SetVar VAR_0x8008, ITEM_X_ACCURACY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1936:
    SetVar VAR_0x8008, ITEM_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_194A:
    SetVar VAR_0x8008, ITEM_X_ATTACK
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_195E:
    SetVar VAR_0x8008, ITEM_DIRE_HIT
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1972:
    SetVar VAR_0x8008, ITEM_YELLOW_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1986:
    SetVar VAR_0x8008, ITEM_ICE_HEAL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_199A:
    SetVar VAR_0x8008, ITEM_X_SPEED
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_19AE:
    SetVar VAR_0x8008, ITEM_X_SPECIAL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_19C2:
    SetVar VAR_0x8008, ITEM_BLUE_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_19D6:
    SetVar VAR_0x8008, ITEM_UPGRADE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_19EA:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_19FE:
    SetVar VAR_0x8008, ITEM_BIG_PEARL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1A12:
    SetVar VAR_0x8008, ITEM_ETHER
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1A26:
    SetVar VAR_0x8008, ITEM_PP_UP
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1A3A:
    SetVar VAR_0x8008, ITEM_HP_UP
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1A4E:
    SetVar VAR_0x8008, ITEM_STAR_PIECE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1A62:
    SetVar VAR_0x8008, ITEM_IRON
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1A76:
    SetVar VAR_0x8008, ITEM_GREEN_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1A8A:
    SetVar VAR_0x8008, ITEM_BLUE_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1A9E:
    SetVar VAR_0x8008, ITEM_ELIXIR
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1AB2:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1AC6:
    SetVar VAR_0x8008, ITEM_REVIVE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1ADA:
    SetVar VAR_0x8008, ITEM_RED_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1AEE:
    SetVar VAR_0x8008, ITEM_ZINC
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1B02:
    SetVar VAR_0x8008, ITEM_BLUE_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1B16:
    SetVar VAR_0x8008, ITEM_RED_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1B2A:
    SetVar VAR_0x8008, ITEM_GREEN_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1B3E:
    SetVar VAR_0x8008, ITEM_YELLOW_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1B52:
    SetVar VAR_0x8008, ITEM_ULTRA_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1B66:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1B7A:
    SetVar VAR_0x8008, ITEM_RED_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1B8E:
    SetVar VAR_0x8008, ITEM_YELLOW_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1BA2:
    SetVar VAR_0x8008, ITEM_MAGNET
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1BB6:
    SetVar VAR_0x8008, ITEM_REVIVE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1BCA:
    SetVar VAR_0x8008, ITEM_MAX_POTION
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1BDE:
    SetVar VAR_0x8008, ITEM_REVIVE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1BF2:
    SetVar VAR_0x8008, ITEM_BLUE_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1C06:
    SetVar VAR_0x8008, ITEM_ULTRA_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1C1A:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1C2E:
    SetVar VAR_0x8008, ITEM_PROTEIN
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1C42:
    SetVar VAR_0x8008, ITEM_FULL_RESTORE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1C56:
    SetVar VAR_0x8008, ITEM_DUBIOUS_DISC
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1C6A:
    SetVar VAR_0x8008, ITEM_GREEN_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1C7E:
    SetVar VAR_0x8008, ITEM_QUICK_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1C92:
    SetVar VAR_0x8008, ITEM_PP_UP
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1CA6:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1CBA:
    SetVar VAR_0x8008, ITEM_UPGRADE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1CCE:
    SetVar VAR_0x8008, ITEM_REPEAT_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1CE2:
    SetVar VAR_0x8008, ITEM_PP_MAX
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1CF6:
    SetVar VAR_0x8008, ITEM_ULTRA_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1D0A:
    SetVar VAR_0x8008, ITEM_GREEN_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1D1E:
    SetVar VAR_0x8008, ITEM_YELLOW_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1D32:
    SetVar VAR_0x8008, ITEM_BLUE_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1D46:
    SetVar VAR_0x8008, ITEM_REAPER_CLOTH
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1D5A:
    SetVar VAR_0x8008, ITEM_ULTRA_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1D6E:
    SetVar VAR_0x8008, ITEM_RED_SHARD
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1D82:
    SetVar VAR_0x8008, ITEM_ULTRA_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1D96:
    SetVar VAR_0x8008, ITEM_CALCIUM
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1DAA:
    SetVar VAR_0x8008, ITEM_RARE_CANDY
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1DBE:
    SetVar VAR_0x8008, ITEM_IRON
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1DD2:
    SetVar VAR_0x8008, ITEM_CARBOS
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1DE6:
    SetVar VAR_0x8008, ITEM_MAGMARIZER
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1DFA:
    SetVar VAR_0x8008, ITEM_ELECTIRIZER
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1E0E:
    SetVar VAR_0x8008, ITEM_DRAGON_FANG
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1E22:
    SetVar VAR_0x8008, ITEM_TIMER_BALL
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1E36:
    SetVar VAR_0x8008, ITEM_GRISEOUS_ORB
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1E4A:
    SetVar VAR_0x8008, ITEM_METAL_COAT
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1E5E:
    SetVar VAR_0x8008, ITEM_NEVERMELTICE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1E72:
    SetVar VAR_0x8008, ITEM_HARD_STONE
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1E86:
    SetVar VAR_0x8008, ITEM_NUGGET
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1E9A:
    SetVar VAR_0x8008, ITEM_NUGGET
    SetVar VAR_0x8009, 1
    GoTo _1EAE
    End

_1EAE:
    PlayFanfare SEQ_SE_CONFIRM
    LockAll
    FacePlayer
    WaitFanfare SEQ_SE_CONFIRM
    SetVar VAR_0x8004, VAR_0x8008
    SetVar VAR_0x8005, VAR_0x8009
    CanFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT
    GoToIfEq VAR_RESULT, 1, _1EF0
    GoToIfEq VAR_RESULT, 0, _20A8
    End

_1EEA:
    CloseMessage
    ReleaseAll
    End

_1EF0:
    CallCommonScript 0x7D1
    RemoveObject VAR_LAST_TALKED
    AddItem VAR_0x8004, VAR_0x8005, VAR_RESULT
    TrySetUnusedUndergroundField VAR_0x8004
    CallIfEq VAR_0x8004, 0x1CF, _20C0
    IsItemTMHM VAR_0x8004, VAR_RESULT
    GoToIfEq VAR_RESULT, TRUE, _207D
    GoToIfEq VAR_RESULT, FALSE, _2095
    End

_1F33:
    WaitSound
    ScrCmd_2A7 VAR_0x8004, VAR_RESULT
    CallIfEq VAR_RESULT, 1, _20C6
    BufferPlayerName 0
    BufferItemName 1, VAR_0x8004
    GetItemPocket VAR_0x8004, VAR_RESULT
    SetVar VAR_0x8008, VAR_RESULT
    GoToIfEq VAR_0x8008, POCKET_KEY_ITEMS, _1FD9
    GoToIfEq VAR_0x8008, POCKET_ITEMS, _1FC6
    GoToIfEq VAR_0x8008, POCKET_BERRIES, _2025
    GoToIfEq VAR_0x8008, POCKET_MEDICINE, _2012
    GoToIfEq VAR_0x8008, POCKET_BALLS, _2038
    GoToIfEq VAR_0x8008, POCKET_BATTLE_ITEMS, _204B
    GoToIfEq VAR_0x8008, POCKET_MAIL, _1FFF
    GoToIfEq VAR_0x8008, POCKET_TMHMS, _1FEC
    End

_1FC6:
    GetItemPocket VAR_0x8004, VAR_RESULT
    BufferPocketName 2, VAR_RESULT
    GoTo _205E
    End

_1FD9:
    GetItemPocket VAR_0x8004, VAR_RESULT
    BufferPocketName 2, VAR_RESULT
    GoTo _205E
    End

_1FEC:
    GetItemPocket VAR_0x8004, VAR_RESULT
    BufferPocketName 2, VAR_RESULT
    GoTo _205E
    End

_1FFF:
    GetItemPocket VAR_0x8004, VAR_RESULT
    BufferPocketName 2, VAR_RESULT
    GoTo _205E
    End

_2012:
    GetItemPocket VAR_0x8004, VAR_RESULT
    BufferPocketName 2, VAR_RESULT
    GoTo _205E
    End

_2025:
    GetItemPocket VAR_0x8004, VAR_RESULT
    BufferPocketName 2, VAR_RESULT
    GoTo _205E
    End

_2038:
    GetItemPocket VAR_0x8004, VAR_RESULT
    BufferPocketName 2, VAR_RESULT
    GoTo _205E
    End

_204B:
    GetItemPocket VAR_0x8004, VAR_RESULT
    BufferPocketName 2, VAR_RESULT
    GoTo _205E
    End

_205E:
    CreateJournalEvent LOCATION_EVENT_ITEM_WAS_OBTAINED, VAR_0x8004, 0, 0, 0
    Message 9
    WaitABXPadPress
    SetVar VAR_RESULT, 1
    GoTo _1EEA
    End

_207D:
    BufferPlayerName 0
    ScrCmd_33C 1, VAR_0x8004
    BufferTMHMMoveName 2, VAR_0x8004
    Message 6
    GoTo _1F33
    End

_2095:
    BufferPlayerName 0
    ScrCmd_33C 1, VAR_0x8004
    Message 3
    GoTo _1F33
    End

_20A8:
    BufferItemName 0, VAR_0x8004
    Message 4
    WaitABXPadPress
    SetVar VAR_RESULT, 0
    GoTo _1EEA
    End

_20C0:
    SetFlag FLAG_ALT_MUSIC_GALACTIC_HQ_1F
    Return

_20C6:
    CallCommonScript 0x7F6
    Return
