Route49_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1
	dbw MAPCALLBACK_NEWMAP, Route49BikeCheck

Route49BikeCheck:
	checkcode VAR_XCOORD
	if_equal 33, Route49PutOnBike
	clearflag ENGINE_ALWAYS_ON_BIKE
	return

Route49PutOnBike:
	setflag ENGINE_ALWAYS_ON_BIKE
	return

Route49HiddenItem_1:
	dw EVENT_ROUTE_49_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

Route49Signpost1:
	db TX_COMPRESSED, $13, $59, $d8, $9a, $cf, $23, $90, $2d, $59, $ca, $7f, $4f, $80, $89
	db $53, $c2, $13, $5a, $bc, $77, $52, $35, $a5, $8e, $36, $8e, $c1
	db $53, $40

Route49_Trainer_1:
	trainer EVENT_ROUTE_49_TRAINER_1, BIRD_KEEPER, 5, Route49_Trainer_1_Text_2f0de0, Route49_Trainer_1_Text_2f0e01, $0000, .Script

.Script:
	end_if_just_battled
	jumptext Route49_Trainer_1_Script_Text_2f0e23

Route49_Trainer_2:
	trainer EVENT_ROUTE_49_TRAINER_2, BIKER, 1, Route49_Trainer_2_Text_2f0e91, Route49_Trainer_2_Text_2f0eba, $0000, .Script

.Script:
	end_if_just_battled
	jumptext Route49_Trainer_2_Script_Text_2f0eec



Route49_Trainer_1_Text_2f0de0:
	db TX_COMPRESSED, $53, $3d, $5c, $7c, $14, $c0, $d6, $16, $46, $16
	db $90, $f2, $99, $ea, $c3, $54, $c0, $2b, $64, $f8
	db $d3, $40

Route49_Trainer_1_Text_2f0e01:
	db TX_COMPRESSED, $29, $60, $a2, $34, $10, $c9, $cc, $b4, $ed
	db $bd, $80, $c1, $8e, $58, $df, $34, $4c, $35, $17
	db $c6, $9a

Route49_Trainer_1_Script_Text_2f0e23:
	db TX_COMPRESSED, $15, $05, $14, $cf, $56, $1a, $a2, $13, $bd
	db $eb, $dc, $ac, $35, $44, $5a, $c2, $4e, $4d, $7c
	db $69, $a0

Route49_Trainer_2_Text_2f0e91:
	db TX_COMPRESSED, $72, $85, $a9, $90, $92, $99, $13, $a0
	db $c6, $f5, $a4, $e7, $4f, $94, $4b, $0c, $e4
	db $ed, $55, $86, $09, $90, $a6, $c3
	db $c6, $9a

Route49_Trainer_2_Text_2f0eba:
	db TX_COMPRESSED, $ae, $e7, $4f, $51, $71, $d4, $4e, $83
	db $1b, $cf, $82, $8f, $86, $c2, $b6, $41, $33, $d3, $96
	db $15, $4f, $84, $18, $e3, $e7, $35, $61, $68, $99
	db $f5, $34

Route49_Trainer_2_Script_Text_2f0eec:
	db TX_COMPRESSED, $61, $1d, $c4, $05, $f3, $95, $24, $cf, $a8
	db $e3, $4d

Route49_MapEventHeader ;filler
	db 0, 0

;warps
	db 4
	warp_def $d, $2e, 1, ROUTE_50_GATE
	warp_def $7, $21, 2, ROUTE_49_GATE
	warp_def $d, $2f, 2, ROUTE_50_GATE
	warp_def $7, $28, 4, ROUTE_49_GATE

	;xy triggers
	db 0

	;signposts
	db 2
	signpost 5, 41, SIGNPOST_LOAD, Route49Signpost1
	signpost 9, 26, SIGNPOST_ITEM, Route49HiddenItem_1

	;people-events
	db 2
	person_event SPRITE_SUPER_NERD, 6, 45, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_BLUE, 2, 1, Route49_Trainer_1, -1
	person_event SPRITE_BIKER, 8, 13, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_OW_BLUE, 2, 3, Route49_Trainer_2, -1

