BotanCity_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1

	dbw 5, .set_fly_flag

.set_fly_flag
	setflag ENGINE_FLYPOINT_BOTAN_CITY
	return

BotanCity_GoldToken:
	dw EVENT_BOTAN_CITY_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

BotanCityCitySign:
	db TX_COMPRESSED, $29, $27, $19, $1d, $82, $81
	db $c2, $9e, $11, $02, $8b, $de, $f2, $3d
	db $a6, $80

BotanCityStationSign:
	db TX_COMPRESSED, $12, $0d, $e9, $23, $68, $ec
	db $15, $3c, $25, $17, $b6, $30
	db $92, $9a

BotanCityQRCode:
	opentext
	qrcode 1
	checkitem QR_READER
	sif false
		closetextend
	farwritetext UsingQRScannerText
	playwaitsfx SFX_CALL
	jumptext .text

.text
	db TX_COMPRESSED, $51, $a2, $04, $24, $6b, $38, $2e, $e7, $98
	db $05, $e7, $20, $5a, $b3, $94, $f4, $5b
	db $55, $ca, $f5, $08, $82, $36, $d9
	db $4d, $34

BotanCityNPC1:
	db TX_COMPRESSED, $29, $27, $39, $48, $51, $68, $8d, $08, $96
	db $17, $ad, $27, $08, $15, $da, $62, $91, $98
	db $80, $02, $3b, $a0, $86, $4e, $61, $35, $16
	db $09, $e1, $0b, $d2, $29, $22, $04, $90, $41, $84, $47, $4f

	db $c0, $1d, $4a, $86, $84, $cb, $49, $82, $c6, $8f, $8c, $99
	db $7a, $d2, $63, $5c, $7f, $48, $43, $5a, $38
	db $d3, $40

BotanCityNPC2:
	db TX_COMPRESSED, $72, $85, $a8, $ac, $ee, $cd, $70, $81, $b8, $ac
	db $de, $c1, $61, $7e, $03, $f7, $b4, $e0
	db $7d, $4d

BotanCityNPC3:
	db TX_COMPRESSED, $07, $2b, $e1, $24, $6d, $32, $59, $ad
	db $0f, $6a, $cc, $94, $c9, $bd, $e8, $6a, $3c, $cb
	db $0a, $a3, $a7, $46, $8b, $89, $35, $9d, $3c

	db $00, $1d, $5e, $29, $b1, $16, $b0, $93
	db $97, $95, $9f, $46, $78, $4b, $4e, $dd, $3c
	db $00, $29, $e0, $13, $59, $ed, $a4, $c1, $09, $ac, $f6, $9e

	db $00, $19, $09, $29, $93, $a3, $52, $38, $0e, $57, $c2
	db $47, $ac, $31, $59, $c4, $9e, $f4, $f3, $2d, $3b
	db $6a, $aa, $d0, $5e
	db $a6, $80

BotanCityNPC4:
	db TX_COMPRESSED, $6e, $65, $c7, $2d, $27, $02, $4e, $82
	db $7a, $c3, $51, $25, $a7, $6e, $22, $c7, $de
	db $aa, $56, $1b, $49, $ad, $12, $c3, $30, $d5, $bf
	db $ea, $68

BotanCityNPC5:
	db TX_COMPRESSED, $75, $2a, $d4, $4d, $8c, $84, $88, $b5, $b4, $c8
	db $17, $ac, $61, $24, $a8, $2b, $52, $35, $cc, $02
	db $b5, $42, $6b, $3d, $b4, $ed, $89, $ac, $f6, $2b, $68, $7d, $c8, $c9, $cf

	db $80, $3a, $84, $0d, $51, $67, $ca, $ce, $e0, $ef
	db $d4, $d0

BotanCityNPC6:
	db TX_COMPRESSED, $13, $53, $5a, $bd, $25, $8c, $87, $9f
	db $bc, $08, $ee, $6f, $3a, $32

	db $78, $02, $81, $f2, $9a, $78
	db $29, $a0

BotanCityNPC7:
	db TX_COMPRESSED, $e1, $e9, $ea, $0e, $64, $24, $a6, $4b, $3e
	db $f5, $ed, $20, $25, $61, $c8, $29, $aa, $c2, $d5
	db $aa, $b4, $8d, $10, $47, $75, $93
	db $f5, $34

BotanCityNPC8:
	db TX_COMPRESSED, $29, $23, $44, $64, $76, $0a, $27
	db $50, $f5, $86, $2b, $38, $e4, $1d, $38, $12, $62
	db $54, $8b, $5e, $93, $93, $45, $c6, $47, $60

	db $bc, $00, $1e, $18, $1b, $49, $ae, $32, $3b, $19
	db $a1, $e4, $e8, $31, $cb, $0c, $c9, $ef, $65, $43, $b4
	db $80, $b4, $9c, $43, $4b, $10, $b1, $a0, $d1, $2a
	db $37, $b7, $b5, $68, $24, $4e, $4e
	db $fd, $4d

BotanCity_MapEventHeader:: db 0, 0

.Warps
	db 7
	warp_def 5, 15, 1, BOTAN_HOUSE
	warp_def 9, 6, 4, ROUTE_59_GATE
	warp_def 17, 19, 1, BOTAN_MART
	warp_def 13, 36, 1, BOTAN_PACHISI
	warp_def 19, 37, 1, BOTAN_POKECENTER
	warp_def 3, 22, 3, HAUNTED_FOREST_GATE
	warp_def 25, 6, 1, BOTAN_MAGNET_TRAIN

.CoordEvents
	db 0

.BGEvents
	db 6
	signpost 11, 25, SIGNPOST_LOAD, BotanCityCitySign
	signpost 27, 9, SIGNPOST_LOAD, BotanCityStationSign
	signpost 19, 38, SIGNPOST_JUMPSTD, pokecentersign
	signpost 8, 18, SIGNPOST_ITEM, BotanCity_GoldToken
	signpost 11, 17, SIGNPOST_READ, BotanCityQRCode
	signpost 17, 20, SIGNPOST_JUMPSTD, martsign

.ObjectEvents
	db 8
	person_event SPRITE_POKEFAN_F, 20, 19, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 1, -1, -1, PAL_OW_RED, PERSONTYPE_TEXTFP, 0, BotanCityNPC1, -1
	person_event SPRITE_FISHING_GURU, 29, 11, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 1, -1, -1, PAL_OW_GREEN, PERSONTYPE_TEXTFP, 0, BotanCityNPC2, -1
	person_event SPRITE_ROCKER, 12, 23, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 1, -1, -1, PAL_OW_BROWN, PERSONTYPE_TEXTFP, 0, BotanCityNPC3, -1
	person_event SPRITE_POKEFAN_F, 11, 10, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 1, -1, -1, PAL_OW_GREEN, PERSONTYPE_TEXTFP, 0, BotanCityNPC4, -1
	person_event SPRITE_FISHER, 12, 27, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_TEXTFP, 0, BotanCityNPC5, -1
	person_event SPRITE_YOUNGSTER, 28, 3, SPRITEMOVEDATA_WALK_UP_DOWN, 1, 1, -1, -1, PAL_OW_RED, PERSONTYPE_TEXTFP, 0, BotanCityNPC6, -1
	person_event SPRITE_YOUNGSTER, 22, 38, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_YELLOW, PERSONTYPE_TEXTFP, 0, BotanCityNPC7, -1
	person_event SPRITE_SAGE, 8, 15, SPRITEMOVEDATA_SPINRANDOM_SLOW, 1, 1, -1, -1, PAL_OW_BLUE, PERSONTYPE_TEXTFP, 0, BotanCityNPC8, -1

