RuinsOutside_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

RuinsOasis:
	opentext
	writetext RuinsOutsideSignpost1_Text_24dcd5
	yesorno
	iftrue RuinsOutside_24dcbf
	closetext
	end

RuinsOutsideNPC1:
	faceplayer
	opentext
	checkitem PRISM_JEWEL
	iftrue RuinsOutside_24f28b
	checkitem RED_JEWEL
	iftrue RuinsOutside_24f285
	checkitem BLUE_JEWEL
	iftrue RuinsOutside_24f285
	checkitem BROWN_JEWEL
	iftrue RuinsOutside_24f285
	checkitem WHITE_JEWEL
	iftrue RuinsOutside_24f285
	writetext RuinsOutsideNPC1_Text_24f2ab
	endtext

RuinsOutsideNPC2:
	jumptextfaceplayer RuinsOutsideNPC2_Text_24f1a1

RuinsOutside_24dcbf:
	special ClearBGPalettes
	special HealParty
	playwaitsfx SFX_HEAL_POKEMON
	special FadeInPalettes
	jumptext RuinsOutside_24dcbf_Text_24dd01

RuinsOutside_24f28b:
	writetext RuinsOutside_24f28b_Text_24f482
	playwaitsfx SFX_DEX_FANFARE_50_79
	takeitem PRISM_JEWEL, 1
	giveitem FAKE_ID, 1
	writetext RuinsOutside_24f28b_Text_24f4fc
	waitbutton
	setevent EVENT_RUINS_OUTSIDE_NPC_1
	special Special_BattleTowerFade
	disappear 2
	special Special_FadeInQuickly
	playwaitsfx SFX_EXIT_BUILDING
	reloadmap
	end

RuinsOutside_24f285:
	writetext RuinsOutside_24f285_Text_24f3f3
	endtext

RuinsOutsideSignpost1_Text_24dcd5:
	db TX_COMPRESSED, $75, $78, $a6, $92, $07, $50, $34, $71

	db $00, $df, $49, $72, $c3, $2f, $54, $8e
	db $6b, $cb, $3e, $ed, $3a, $32, $73, $32, $31, $14
	db $b4, $d0

RuinsOutsideNPC1_Text_24f2ab:
	db TX_COMPRESSED, $62, $7d, $e8, $7f, $12, $7d, $e8
	db $7e, $f2, $4f, $bd, $08, $43

	db $c4, $03, $a9, $af, $cd, $8b, $30, $63, $59
	db $e5, $ed, $5b, $29, $d3, $0f, $43, $c8, $d1, $7c

	db $40, $03, $f7, $b4, $e0, $62, $75, $11, $0d, $32
	db $97, $b7, $bd, $69, $63, $27, $31, $23, $45, $85, $60

	db $bc, $03, $80, $79, $80, $82, $d4, $52, $20, $6a

	db $e2, $00, $a4, $9a, $0e, $2d, $a1, $91, $11, $a4, $1e
	db $5e, $b0, $c5, $67, $36, $59, $be, $23, $a7

	db $e0, $02, $e0, $63, $58, $20, $90, $e0, $c9, $01, $fb, $da, $70
	db $2f, $54, $16, $bb, $98, $c8, $5f, $38, $93, $59
	db $80, $b0, $ca, $82, $b4, $24, $62, $25, $a4
	db $de, $c0, $2d, $2e, $30, $9a, $d5, $e4, $7a, $44

	db $7c, $02, $b6, $ae, $0e, $f1, $42, $06, $a8, $32
	db $3d, $b1, $17, $b6, $70, $38, $4c, $9b, $3a
	db $08, $02, $b3, $67, $5a, $41, $c2, $05, $58, $72, $0a, $0d
	db $0f, $34, $81, $93, $98, $3b, $9a, $40, $4f, $85, $67

	db $e0, $0e, $b0, $80, $82, $d4, $56, $b1, $93, $98, $f9
	db $bc, $80, $be, $76, $91, $93, $99, $6b, $6b, $a0
	db $80, $1d, $3a, $c8, $ec, $64, $e6, $60, $b0, $bf, $2d
	db $26, $f0, $c8, $81, $e4, $ff, $1f, $d0, $4a, $ce, $3a, $70
	db $f5, $57, $23, $06, $38, $08, $2d, $4d, $8b, $3a, $b5, $79
	db $f5, $34

RuinsOutsideNPC2_Text_24f1a1:
	db TX_COMPRESSED, $29, $26, $b3, $c5, $10, $60, $c6, $bd
	db $eb, $c9, $1e, $72, $64, $82, $07, $68, $83, $22, $07, $93
	db $55, $69, $38, $0f, $de, $d3, $81, $8b, $68, $64, $47

	db $80, $39, $42, $d4, $67, $49, $29, $c6, $9f, $11, $02, $0c, $6b
	db $78, $40, $ed, $10, $81, $b8, $12, $74, $14, $b0
	db $aa, $59, $eb, $29, $84, $3a, $a6, $ac, $f5, $1f

	db $00, $ad, $ab, $80, $82, $d4, $67, $49, $37, $a8
	db $0b, $d4, $e3, $4f, $88, $81, $06, $35, $c1, $03, $b4
	db $2a, $b4, $ed, $c4, $e8, $31, $92, $99, $15, $99
	db $91, $53, $44, $64, $20, $c6, $b3, $cc, $04, $77

	db $e0, $05, $27, $6f, $14, $a7, $1a, $45, $c1
	db $91, $e6, $75, $07, $01, $05, $a9, $56, $92, $e5
	db $85, $52, $b3, $8c, $ea, $cf, $06, $bb
	db $ea, $68

RuinsOutside_24dcbf_Text_24dd01:
	db TX_COMPRESSED, $29, $3b, $72, $ad, $44, $40, $43, $69, $19, $39

	db $e2, $01, $ca, $16, $97, $01, $ca, $f8, $49, $35
	db $66, $f1, $03, $54, $c1, $ae, $f4, $14, $49, $ef, $4f, $3c
	db $69, $a0

RuinsOutside_24f28b_Text_24f482:
	db TX_COMPRESSED, $15, $05, $2a, $0a, $f3

	db $c4, $03, $a6, $03, $84, $30, $63, $5c, $41, $99
	db $1e, $56, $7a, $d5, $82, $9d, $1a, $91, $cb, $48
	db $d0, $a9, $59, $e0, $15, $9c, $19, $23, $e0, $a7, $47, $81, $f1

	db $01, $c3, $d3, $d4, $1d, $3c, $12, $f5, $48, $e5, $a4, $68

	db $f0, $06, $e3, $b4, $cb, $48, $d1, $f8, $ea, $64, $24, $a6
	db $3c, $43, $3c, $c1, $dc, $d2, $02, $7c, $2b, $3f

	db $00, $29, $27, $1f, $d2, $44, $e9, $32, $79
	db $78, $10, $5a, $9b, $14, $f5, $48, $e3, $ae, $0e
	db $34, $d0

RuinsOutside_24f28b_Text_24f4fc:
	db TX_COMPRESSED, $ad, $13, $0d, $5c, $d4, $43, $06, $35, $82, $09
	db $0d, $e3, $ea, $0e, $0d, $11, $90, $91, $93, $59, $0f, $3f

	db $00, $08, $2d, $4d, $59, $c2, $06, $a9, $b2, $d6, $d1
	db $bc, $0f, $de, $d3, $81, $8c, $8e, $c6, $26, $cc, $9e

	db $00, $ea, $27, $73, $2c, $31, $a4, $1c, $1d
	db $bd, $61, $88, $bd, $05, $06, $49, $69, $1a
	db $00, $2c, $f9, $18, $49, $1a, $26, $4e, $cd, $9b, $3c
	db $bc, $ac, $14, $64, $d7, $7a, $32, $41, $06, $11, $1d
	db $30, $15, $24, $31, $1a, $0a, $5a, $4c, $14, $ab, $49
	db $6f, $5a, $4e, $08, $d4, $5c, $0e, $12, $d2, $34
	db $2a, $ee, $93, $33, $26, $8b, $58, $41, $1e

	db $7c, $00, $49, $ab, $84, $0d, $53, $6e, $77, $51, $7f
	db $7a, $d2, $73, $85, $63, $43, $f0, $4c, $9d, $47
	db $d5, $43, $44, $19, $23, $e0, $a2, $74, $99, $47

	db $c0, $69, $33, $1d, $46, $74, $93, $01, $93, $7b, $d0
	db $4f, $2c, $ed, $a5, $92, $24, $2f, $9f

	db $10, $0c, $20, $87, $2a, $c1, $1f
	db $1a, $68

RuinsOutside_24f285_Text_24f3f3:
	db TX_COMPRESSED, $72, $9a, $20, $23, $47, $e5, $38, $75, $1f
	db $50, $f3, $3a, $48, $ac, $e0, $b3, $68, $76, $74, $f0
	db $00, $19, $2c, $d6, $68, $b1, $93, $9f, $c5, $6d
	db $5b, $d6, $93, $41, $cc, $84, $94, $c8, $83, $37
	db $d5, $58, $60, $c9, $66, $b3, $45, $c7, $cf

	db $c0, $1d, $61, $01, $05, $a9, $80, $c9, $99
	db $af, $5a, $da, $e8, $29, $86, $a1, $91, $93, $6c, $64
	db $e4, $05, $38, $75, $1f, $7f, $02, $4e, $82, $96, $93
	db $23, $ce, $9c, $3d, $8b, $3a, $b5, $79, $80, $82, $d7
	db $a9, $a0

RuinsOutside_MapEventHeader:: db 0, 0

.Warps: db 6
	warp_def 17, 54, 2, RUINS_ENTRY
	warp_def 17, 55, 2, RUINS_ENTRY
	warp_def 5, 30, 1, RUINS_F1
	warp_def 17, 6, 4, CLATHRITE_1F
	warp_def 17, 7, 4, CLATHRITE_1F
	warp_def 5, 31, 2, RUINS_F1

.CoordEvents: db 0

.BGEvents: db 36
	signpost 2, 7, SIGNPOST_READ, RuinsOasis
	signpost 3, 7, SIGNPOST_READ, RuinsOasis
	signpost 4, 7, SIGNPOST_READ, RuinsOasis
	signpost 5, 7, SIGNPOST_READ, RuinsOasis
	signpost 6, 7, SIGNPOST_READ, RuinsOasis
	signpost 6, 8, SIGNPOST_READ, RuinsOasis
	signpost 6, 9, SIGNPOST_READ, RuinsOasis
	signpost 6, 10, SIGNPOST_READ, RuinsOasis
	signpost 6, 11, SIGNPOST_READ, RuinsOasis
	signpost 6, 12, SIGNPOST_READ, RuinsOasis
	signpost 6, 13, SIGNPOST_READ, RuinsOasis
	signpost 6, 14, SIGNPOST_READ, RuinsOasis
	signpost 6, 15, SIGNPOST_READ, RuinsOasis
	signpost 6, 16, SIGNPOST_READ, RuinsOasis
	signpost 6, 18, SIGNPOST_READ, RuinsOasis
	signpost 6, 17, SIGNPOST_READ, RuinsOasis
	signpost 3, 18, SIGNPOST_READ, RuinsOasis
	signpost 2, 18, SIGNPOST_READ, RuinsOasis
	signpost 2, 41, SIGNPOST_READ, RuinsOasis
	signpost 3, 41, SIGNPOST_READ, RuinsOasis
	signpost 4, 41, SIGNPOST_READ, RuinsOasis
	signpost 4, 41, SIGNPOST_READ, RuinsOasis
	signpost 6, 43, SIGNPOST_READ, RuinsOasis
	signpost 6, 44, SIGNPOST_READ, RuinsOasis
	signpost 6, 45, SIGNPOST_READ, RuinsOasis
	signpost 6, 46, SIGNPOST_READ, RuinsOasis
	signpost 6, 47, SIGNPOST_READ, RuinsOasis
	signpost 6, 48, SIGNPOST_READ, RuinsOasis
	signpost 6, 49, SIGNPOST_READ, RuinsOasis
	signpost 6, 50, SIGNPOST_READ, RuinsOasis
	signpost 6, 51, SIGNPOST_READ, RuinsOasis
	signpost 6, 52, SIGNPOST_READ, RuinsOasis
	signpost 5, 52, SIGNPOST_READ, RuinsOasis
	signpost 4, 52, SIGNPOST_READ, RuinsOasis
	signpost 3, 52, SIGNPOST_READ, RuinsOasis
	signpost 2, 52, SIGNPOST_READ, RuinsOasis

.ObjectEvents: db 2
	person_event SPRITE_POKEFAN_M, 9, 6, SPRITEMOVEDATA_WANDER, 3, 3, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, RuinsOutsideNPC1, EVENT_RUINS_OUTSIDE_NPC_1
	person_event SPRITE_FISHER, 12, 46, SPRITEMOVEDATA_WANDER, 3, 3, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, RuinsOutsideNPC2, -1

